funnel-analysis
Use when the user mentions funnel, conversion funnel, drop-off, drop off, conversion rate, conversion optimization, CRO, bottleneck, funnel analysis, checkout flow, signup flow, onboarding funnel, activation funnel, abandonment, cart abandonment, form abandonment, user flow, step completion, or funnel comparison. Also trigger on 'where are we losing people' or 'why is conversion low.' For site traffic sources and session behavior use web-analytics; for running the A/B test that validates a CRO fix use the experimentation skill; this skill measures step-by-step drop-off and prioritizes bottlenecks. It also builds funnel health scorecards from aggregate stage metrics when sources lack a shared entity key.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- funnel-analysis
- description
- Use when the user mentions funnel, conversion funnel, drop-off, drop off, conversion rate, conversion optimization, CRO, bottleneck, funnel analysis, checkout flow, signup flow, onboarding funnel, activation funnel, abandonment, cart abandonment, form abandonment, user flow, step completion, or funnel comparison. Also trigger on 'where are we losing people' or 'why is conversion low.' For site traffic sources and session behavior use web-analytics; for running the A/B test that validates a CRO fix use the experimentation skill; this skill measures step-by-step drop-off and prioritizes bottlenecks. It also builds funnel health scorecards from aggregate stage metrics when sources lack a shared entity key.
- disable-model-invocation
- false
02 资源文件 8
- 参考文档references/authoring-notes.md2.2 KB
- 参考文档references/cro_patterns.md7.1 KB
- 参考文档references/funnel_methodology.md4.8 KB
- 参考文档references/stage-health-scorecard.md3.1 KB
- 其他routing-eval.jsonl1.0 KB
- 脚本scripts/build_funnel.py23.1 KB
- 脚本scripts/funnel_stats.py27.9 KB
- 脚本scripts/revenue_impact.py19.7 KB
03 SKILL.md 正文
Funnel Analysis
Multi-step funnel construction, statistical drop-off analysis, bottleneck ranking, revenue-impact estimation, CRO hypothesis generation, and aggregate stage monitoring.
Choose the measurement path
- Linked journey: Use the event-based workflow below when stages can be linked at a verified user or session grain. Record the eligible entry population and verify identity coverage, event order, and observation windows.
- Stage health scorecard: Use the scorecard workflow for an operating view with independently measured stages, aggregate-only sources, or incomplete entity linkage. If both views are requested, give each its own inputs and report. Limit journey conversion to the population with verified linkage and disclose its coverage.
Contract
Role: Advisory analyst. Measures conversion and proposes CRO hypotheses; does not ship page changes or run the experiments. All statistics run in deterministic Python scripts.
Mode:
quick— construct funnel + stage conversion rates with CIs.standard(default) — add bottleneck ranking, revenue impact, CRO hypotheses.deep— add segment comparison and time-to-convert / survival analysis.
When to use: step-by-step drop-off, checkout/signup/onboarding funnels, bottleneck prioritization, CRO backlog generation.
When NOT to use: for traffic sources and session flows use web-analytics;
for running the A/B test that validates a fix use the experimentation skill;
for email-sequence conversion use email-analytics. See
../../references/skill-index.md for the portfolio map.
Evidence required for the linked journey:
workspace/raw/events.csv—user_id,event_name,timestamp(+ optional properties). Required. If absent, STOP and run data-extraction first.workspace/config/funnel_definition.json— step sequence, time windows, matching mode (optional; auto-inferred if absent).workspace/processed/segments.json— from audience-segmentation (optional; enables cohort comparison).workspace/raw/revenue.csv— revenue per converter (recommended; enables impact estimation).
Depends on: data-extraction, web-analytics (event stream). Feeds into:
experimentation, reporting, paid-media. Builder detail in
references/authoring-notes.md.
Linked journey stop condition: if events.csv is missing required columns, or
the inferred/declared funnel has a step with zero entering users, stop and report
— a funnel that can't be constructed yields meaningless conversion rates.
Parse $ARGUMENTS for inline paths, funnel definition, or window overrides.
Workflow
-
Validate inputs. Load
events.csv; verifyuser_id,event_name,timestamp. Apply the linked journey stop condition. -
Funnel-definition gate (AskUserQuestion). When no
funnel_definition.jsonis supplied and multiple plausible step sequences exist, ask before constructing:- Question: "Which funnel should I measure?"
- Options: (a) Provide the step sequence — user names ordered steps and time window; (b) Infer from top event sequences — I derive the dominant path and show it for confirmation; (c) A named standard funnel (checkout / signup / onboarding). Skip when a definition file is present.
-
Construct. Run
scripts/build_funnel.py: assign users to stages, apply the time-window filter (users who don't reach the next step within the window count as dropped), support strict (ordered) and relaxed (any-order) matching. -
Stage metrics. Run
scripts/funnel_stats.py: stage conversion rates with Wilson score CIs, absolute and relative drop-off, overall funnel conversion. -
Segment comparison (deep mode, if
segments.jsonpresent). Compute per- segment funnel metrics; chi-squared tests at each stage with Bonferroni correction across >2 segments. -
Rank bottlenecks. Composite score
drop_off_rate * sqrt(volume) * revenue_proximity. Writeworkspace/analysis/bottleneck_ranking.json. -
Estimate revenue impact. Run
scripts/revenue_impact.pywith historical revenue-per-converter; project the gain from 1/5/10 pp conversion improvements at the 50th-percentile (conservative) estimate. -
Time-to-convert (deep mode). Median/percentile time between stages; right-censor users still in funnel; flag stages where dwell correlates with abandonment and bimodal distributions.
-
CRO hypotheses. For each bottleneck emit {observation, hypothesis, test type, expected impact, priority} to
workspace/analysis/cro_hypotheses.json. -
Report. Write outputs and the interactive HTML funnel report.
Output Format
Artifacts:
| File | Contents |
|---|---|
workspace/analysis/funnel_results.json |
Stage conversion rates, drop-offs, CIs |
workspace/analysis/bottleneck_ranking.json |
Priority-ranked bottlenecks with impact |
workspace/analysis/cro_hypotheses.json |
Test ideas linked to findings |
workspace/analysis/time_to_convert.json |
Per-stage time distributions and censoring |
workspace/reports/funnel_report.html |
Interactive funnel with drill-down |
Financial services mode: account-opening funnels see 50–70% abandonment; KYC/AML and suitability steps are mandatory. Never recommend removing or shortening a compliance/disclosure/consent step. Regulated-step CRO must target UX clarity, progress indicators, and save-and-resume, not step elimination. CRO copy that will be published routes through compliance-review.
Completion status:
DONE— funnel constructed, metrics + bottlenecks + hypotheses written.DONE_WITH_CONCERNS— e.g., no revenue data (impact omitted), thin volume at a stage, inferred funnel unconfirmed.BLOCKED— bad or missing linked event data prevents construction; state the fix.NEEDS_CONTEXT— funnel definition unresolved by the user.
Anti-Patterns
- Quoting conversion rates from a funnel that couldn't be validly constructed.
- Normal-approximation CIs at low conversion rates instead of Wilson score.
- Optimistic revenue projections — always use the conservative 50th-percentile estimate.
- Ranking bottlenecks by raw drop-off alone, ignoring volume and revenue proximity.
- Recommending removal of a regulated step to lift conversion.
- Segment chi-squared tests across many segments without Bonferroni correction.
- Letting the model estimate conversion rates or p-values instead of the scripts.
04 同仓库更多 Skills
minimal-skill
Minimal shared skill fixture for marketplace renderer and validator examples.
roadmap
Use this skill when the user wants a product roadmap, initiative sequencing, Now/Next/Later plan, quarterly roadmap, release theme map, product strategy-to-roadmap translation, or executive roadmap narrative. Trigger on phrases like "build a roadmap", "roadmap these initiatives", "what should be now next later", "sequence this backlog", "quarterly product roadmap", "theme-based roadmap", or "plan the next two quarters". Do NOT trigger for drafting or reviewing a single PRD (use prd-writer or prd-review), converting a PRD into an agentic PLAN.md (use prd-to-plan), or scoring/ranking a set of options without a time horizon (use prioritization).
prioritization
Use this skill when the user wants to rank, score, triage, or compare product opportunities, features, PRD requirements, backlog items, roadmap candidates, or initiatives using RICE, impact-effort, confidence, reach, value, effort, risk, or tradeoff analysis. Trigger on phrases like "prioritize these features", "rank this backlog", "RICE score", "impact effort matrix", "what should we build first", "compare these initiatives", or "stack rank product bets". Do NOT trigger for a time-based roadmap (use roadmap), writing or reviewing one PRD (use prd-writer or prd-review), turning a PRD into an agentic plan (use prd-to-plan), or analyzing experiment results (use ab-testing or experimentation skills).
prd-writer
Use this skill whenever the user wants to write, draft, create, or scaffold a PRD (Product Requirements Document), spec, product brief, one-pager, or "working backwards" PR/FAQ from an idea, rough notes, discovery inputs, or an existing partial draft that needs authoring. Trigger on phrases like "write a PRD", "draft a spec", "product doc for X", "one-pager", "PR/FAQ", "feature brief", or when the user describes a feature/product idea and asks for it to be turned into a written requirements document. Do NOT trigger for critique or approval-readiness review of an existing PRD (use prd-review), engineering design docs, RFCs, ADRs, prioritization, roadmaps, or technical architecture documents. The output of this skill is always a markdown file (or section thereof) that a real product team could ship from.
prd-to-plan
Use this skill when the user has a PRD (Product Requirements Document), spec, or product brief and wants to turn it into an executable plan for agentic development — a plan that AI coding agents (Claude Code, sub-agents, orchestrators) can actually run. Trigger on phrases like "turn this PRD into a plan", "agentic plan", "execution plan", "task graph", "break this down for Claude Code", "decompose this spec", "build plan", "implementation plan from PRD", "scrum-master plan", or when the user provides a PRD/spec and asks "what's next" or "how do we build this with agents". The output is always a structured `PLAN.md` artifact with phases, tasks, dependencies, validation gates, sub-agent assignments, and context bundles. Do NOT trigger for: writing the PRD itself (use prd-writer), pure engineering design / RFC / ADR (architecture is a separate artifact), or generic project management plans without an agentic execution model.
prd-review
Use this skill when the user has an existing PRD, product spec, one-pager, or PR/FAQ and wants critique, approval-readiness review, quality-bar scoring, required changes, or a red-team pass. Trigger on phrases like "review this PRD", "critique my product spec", "is this PRD ready", "PRD quality bar", "red-team this requirements doc", "find gaps in this PR/FAQ", or "what would block approval". Do NOT trigger for drafting a new PRD from an idea (use prd-writer), converting an approved PRD into an agentic implementation plan (use prd-to-plan), building a roadmap (use roadmap), or ranking multiple initiatives (use prioritization).