Ramp to value tracking

From CraftOS-dev/craftbot-agent-bundles · View interactive version

Ramp to value tracking is an AI agent skill from the GitHub repository CraftOS-dev/craftbot-agent-bundles. Source: https://posthog.com/docs/product-analytics/funnels + https://help.pendo.io/resources/support-library/analytics/index + https://amplitude.com/docs/apis/analytics

How to use this skill

Skill file

<!--

Source: https://posthog.com/docs/product-analytics/funnels + https://help.pendo.io/resources/support-library/analytics/index + https://amplitude.com/docs/apis/analytics

-->

Ramp-to-Value — TTFV / TTRV — SKILL

Track Time-to-First-Value (TTFV: days from signup to first aha event) and Time-to-Repeat-Value (TTRV: days from first aha to second meaningful event). PostHog HogQL funnel queries primary; Mixpanel/Amplitude/Pendo alts. Per-customer + per-cohort. Intervention triggers: Day 5 no TTFV -> CSM outreach; Day 7 -> Pendo card; Day 10 -> 1:1 call.

When to use

This skill complements customer-onboarding-day-0-90 (which schedules milestones; this skill measures whether they hit) and adoption-metric-feature-usage (which measures sustained adoption beyond first value).

Trigger phrases: "TTFV", "TTRV", "time to first value", "ramp to value", "first aha", "activation funnel", "second value event".

Setup

# Product analytics MCPs already in agent.yaml
# posthog-mcp, mixpanel-mcp, amplitude-mcp

# Pendo (alt + Adopt analytics)
export PENDO_API_KEY="<key>"

# Heap
export HEAP_APP_ID="<id>"

# Postgres warehouse for cohort math - postgresql-mcp wired

Workspace prerequisites:

Definitions

Common recipes

Recipe 1: PostHog HogQL - per-customer TTFV

SELECT
  properties.customer_id AS customer_id,
  min(timestamp) FILTER (WHERE event = 'signup') AS signup_at,
  min(timestamp) FILTER (WHERE event = 'first_aha_event') AS first_aha_at,
  dateDiff('day',
    min(timestamp) FILTER (WHERE event = 'signup'),
    min(timestamp) FILTER (WHERE event = 'first_aha_event')
  ) AS ttfv_days
FROM events
WHERE event IN ('signup', 'first_aha_event')
GROUP BY properties.customer_id
HAVING min(timestamp) FILTER (WHERE event = 'first_aha_event') IS NOT NULL;

Via posthog-mcp query. Doc: https://posthog.com/docs/api/queries

Recipe 2: PostHog HogQL - per-customer TTRV

SELECT
  properties.customer_id AS customer_id,
  min(timestamp) FILTER (WHERE event = 'first_aha_event') AS first_aha_at,
  min(timestamp) FILTER (WHERE event = 'second_aha_event') AS second_aha_at,
  dateDiff('day',
    min(timestamp) FILTER (WHERE event = 'first_aha_event'),
    min(timestamp) FILTER (WHERE event = 'second_aha_event')
  ) AS ttrv_days
FROM events
WHERE event IN ('first_aha_event', 'second_aha_event')
GROUP BY properties.customer_id;

Recipe 3: Cohort TTFV by signup month

SELECT
  date_trunc('month', signup_at) AS cohort_month,
  count(*) AS customers_signed,
  count(*) FILTER (WHERE first_aha_at IS NOT NULL) AS reached_first_value,
  percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50_ttfv,
  percentile_cont(0.75) WITHIN GROUP (ORDER BY ttfv_days) AS p75_ttfv,
  percentile_cont(0.9) WITHIN GROUP (ORDER BY ttfv_days) AS p90_ttfv,
  100.0 * count(*) FILTER (WHERE first_aha_at IS NOT NULL) / count(*)::numeric AS reached_pct
FROM customer_ramp
WHERE signup_at >= now() - INTERVAL '12 months'
GROUP BY cohort_month
ORDER BY cohort_month;

Recipe 4: Cohort TTFV by acquisition channel

SELECT
  acquisition_channel,
  count(*) AS customers,
  percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50_ttfv,
  count(*) FILTER (WHERE ttfv_days <= 7) * 1.0 / count(*) AS pct_under_7d
FROM customer_ramp r
JOIN customers c USING (customer_id)
WHERE r.signup_at >= now() - INTERVAL '90 days'
GROUP BY acquisition_channel
ORDER BY p50_ttfv ASC;

Recipe 5: Cohort TTFV by tier

SELECT
  tier,
  count(*) AS customers,
  percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50_ttfv,
  count(*) FILTER (WHERE ttfv_days <= 7) * 1.0 / count(*) AS pct_under_7d
FROM customer_ramp r
JOIN customers c USING (customer_id)
WHERE r.signup_at >= now() - INTERVAL '90 days'
GROUP BY tier;

Starter typically < 5d (simple); Enterprise 15-30d (complex setup).

Recipe 6: Pre-aha intervention queue (Day 5+)

SELECT customer_id, signup_at, days_since_signup
FROM (
  SELECT customer_id, signup_at,
         dateDiff('day', signup_at, now()) AS days_since_signup,
         first_aha_at
  FROM customer_ramp
) x
WHERE first_aha_at IS NULL
  AND days_since_signup BETWEEN 5 AND 10;

For each row, fire intervention:

Recipe 7: Mixpanel funnel alt

curl -sS "https://mixpanel.com/api/2.0/funnels" \
  -u "$MIXPANEL_API_KEY:" \
  --data-urlencode 'events=["signup", "first_aha_event"]' \
  --data-urlencode 'from_date=2026-05-01' \
  --data-urlencode 'to_date=2026-05-31'

Doc: https://developer.mixpanel.com/reference/funnel-events

Recipe 8: Amplitude funnel alt

curl -sS "https://amplitude.com/api/2/funnels" \
  -u "$AMPLITUDE_API_KEY:$AMPLITUDE_SECRET" \
  --data-urlencode 'e={"event_type":"signup"}' \
  --data-urlencode 'e={"event_type":"first_aha_event"}' \
  --data-urlencode 'start=20260501' \
  --data-urlencode 'end=20260531'

Doc: https://amplitude.com/docs/apis/analytics

Recipe 9: Pendo Adopt funnel

Pendo "Funnels" feature surfaces TTFV natively when configured in UI. Read via:

curl -sS "https://app.engage.pendo.io/api/v1/funnels/$FUNNEL_ID/aggregations" \
  -H "X-Pendo-Integration-Key: $PENDO_API_KEY"

Recipe 10: Materialize customer_ramp view

CREATE OR REPLACE VIEW customer_ramp AS
SELECT
  customer_id,
  signup_at,
  first_aha_at,
  second_aha_at,
  EXTRACT(DAY FROM (first_aha_at - signup_at))::int AS ttfv_days,
  EXTRACT(DAY FROM (second_aha_at - first_aha_at))::int AS ttrv_days
FROM (
  SELECT customer_id,
         MIN(timestamp) FILTER (WHERE event = 'signup') AS signup_at,
         MIN(timestamp) FILTER (WHERE event = 'first_aha_event') AS first_aha_at,
         MIN(timestamp) FILTER (WHERE event = 'second_aha_event') AS second_aha_at
  FROM events
  GROUP BY customer_id
) e;

Refresh nightly.

Recipe 11: Weekly TTFV report

SELECT
  date_trunc('week', signup_at) AS week,
  count(*) AS signups,
  count(first_aha_at) AS reached_first_value,
  count(second_aha_at) AS reached_second_value,
  percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50_ttfv_days,
  percentile_cont(0.5) WITHIN GROUP (ORDER BY ttrv_days) FILTER (WHERE ttrv_days IS NOT NULL) AS p50_ttrv_days
FROM customer_ramp
WHERE signup_at >= now() - INTERVAL '12 weeks'
GROUP BY week
ORDER BY week;

Pipe to weekly Slack post via slack-mcp in #cs-ops.

Recipe 12: TTFV regression detection

WITH this_month AS (
  SELECT percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50
  FROM customer_ramp
  WHERE signup_at >= date_trunc('month', now())
),
last_month AS (
  SELECT percentile_cont(0.5) WITHIN GROUP (ORDER BY ttfv_days) AS p50
  FROM customer_ramp
  WHERE signup_at BETWEEN date_trunc('month', now()) - INTERVAL '1 month'
                     AND date_trunc('month', now()) - INTERVAL '1 day'
)
SELECT tm.p50 AS this_month_p50,
       lm.p50 AS last_month_p50,
       tm.p50 - lm.p50 AS regression_days
FROM this_month tm, last_month lm;

If regression_days > 1d, alert PM via Linear ("voice-of-customer" + "ttfv-regression" labels).

Recipe 13: Custom aha event definition per product

Document per-product (in Notion CS playbook):

| Product | First aha event | Second aha event |

|---|---|---|

| Workflow Builder | First workflow published | Workflow re-run within 7d |

| Analytics Tool | First dashboard saved | Second user invited to dashboard |

| API SaaS | First successful API call | 100+ API calls in same day |

Update event taxonomy + Recipe 1/2 queries when product changes.

Examples

Example 1: Weekly TTFV monitoring

Goal: CSM ops sees TTFV trend Monday morning.

Steps:

  1. Sunday 23:00 UTC: Recipe 10 materializes view.
  2. Monday 06:00 UTC: Recipe 11 weekly report.
  3. Monday 06:30 UTC: Recipe 12 regression check; if > 1d, alert PM.
  4. Monday 09:00 UTC: Slack post to #cs-ops with summary.

Result: TTFV health visible weekly; regressions flagged.

Example 2: TTFV intervention cascade

Goal: Acme signed up 2026-06-04; today's 2026-06-11 (Day 7); still no first_aha.

Steps:

  1. Recipe 6 - Acme in queue at Day 5; CSM outreach sent.
  2. Day 7 (today): still no first_aha. Pendo card enrollment via in-app-onboarding.
  3. Day 10 if still no first_aha: Calendly 1:1 invite.
  4. Day 14 if still no first_aha: escalate to CSM Lead; consider save play (early intervention).

Result: Progressive intervention; minimize abandonment.

Edge cases / gotchas

Sources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.