GROWTH PATTERN

Building Activity Tracking for Redis

Redis excels at user management, but there's no built-in way to detect when users transition from 'registered' to 'activated.'

Redis

Last updated:

What's Missing in Standard Redis Architecture

Redis creates user sessions, but lacks the infrastructure to detect when users first achieve value in your application without custom implementation.

Standard Redis Flow vs Optimized Skene Flow

Standard Flow
1

User signs up via authentication

2

User record created in Redis

3

No automatic trigger - manual follow-up required

Skene Flow
1

Watch Redis 'users' table for new signups using standard API

2

Detect when user completes first key action (e.g., connecting their first integration) using Redis queries

3

Trigger activation email sequence via Resend with personalized onboarding

4

Track activation completion and send milestone emails

Visual comparison of the flows:

Loading diagram...

How Skene Fixes This

This Skene Prompt installs activation detection that bridges authentication authentication events with Redis data changes. It watches for specific actions (like connecting their first integration) and automatically triggers personalized onboarding sequences.

Implementation Comparison

Using Skene Infrastructure

Install via Prompt

cursor.mdc
@task: Initialize Skene.
@action: Analyze my local code, validating subscription via `npx skene login`, and generate `skene.config.ts` to implement the Retention Loop pattern for Redis.

Copy Skene Prompt for Cursor

Generated skene.config.ts

skene.config.ts
// skene.config.ts - The Automated Way
import { defineLoop } from '@skene/sdk';

export default defineLoop({
  type: 'retention',
  opinion: 'Detect dormant users and trigger personalized re-engagement campaigns',
  steps: [
    {
      trigger: {
        type: 'schedule',
        cron: '0 9 * * *' // Daily at 9 AM
      },
      condition: {
        type: 'query',
        query: `SELECT * FROM users WHERE last_activity_at < NOW() - INTERVAL '7 days' AND re_engagement_sent = false`,
        timeout: '10m'
      },
      action: {
        type: 'email',
        provider: 'resend',
        template: 're_engagement',
        personalization: {
          name: '{{user.name}}',
          lastActivity: '{{user.last_activity_at}}'
        }
      }
    }
  ],
  recovery: {
    retries: 3,
    backoff: 'exponential'
  }
});

Frequently asked questions