lifecycle-metrics
Define stage metrics, instrumentation needs, and evidence gaps across onboarding, conversion, transaction, retention, and expansion
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- lifecycle-metrics
- type
- analysis
- version
- v0.4
- description
- Define stage metrics, instrumentation needs, and evidence gaps across onboarding, conversion, transaction, retention, and expansion
- visual_tier
- visual
- argument-hint
- [optional: app or lifecycle stage]
- interview_depth
- full
02 资源文件 1
- 参考文档agents/openai.yaml108 B
03 SKILL.md 正文
Pack Availability Guard
Before telling the user to run a skill from another project-local pack, check .agents/project.json.enabled_packs. If the target pack is not enabled, recommend $pack install <pack> inside Codex, or npx skillpacks install <pack> from the project shell, instead of the target skill.
Lifecycle Metrics
Invoke as $lifecycle-metrics.
Define measurable signals for each lifecycle stage. This complements $metrics: use this skill for stage instrumentation and handoff clarity, then use $metrics for the broader success framework, targets, and business metrics.
Process
0. Product-Path Scope Resolution
Resolve research scope by product path before using code or app structure as a hint:
- If
$ARGUMENTSnames a non-archivedresearch/{slug}/directory or a product-path ID whosescope_pathpoints there, use that path. Treat{slug}as the product/app name, not the ICP, audience, or segment label. - If
$ARGUMENTSnames onlyresearch/_archive/{slug}/or a manifest entry withstatus: archivedor legacystatus: abandoned, stop and warn that the path is archived; do not write or update scoped outputs there. - Read
research/.progress.yamlwhen present. Normalize legacyactive_pathtoactive_pathson read and write backactive_pathson manifest updates. Treat legacyabandonedasarchived; excludearchived,abandoned,deferred,revisit_candidate,promoted, and anyscope_pathunderresearch/_archive/from active target selection. - If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
- If no active manifest target exists, list non-archived product directories under
research/, excludingresearch/_archive/and dot directories. Auto-select only when exactly one exists; ask when multiple exist. - If no product directories exist, use flat
research/single-product mode. - Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing
research/{slug}/product path when code clearly exposes an app, but do not require code or monorepo detection before usingresearch/{slug}/.
When product path {slug} is active, read and write research under research/{slug}/, specs under specs/{slug}/, and treat top-level research/*.md files as flat-mode documents or cross-path summaries.
- Resolve product-path scope using
research/{slug}/when applicable. - Read
research/.progress.yamlwhen present. Normalizeactive_path(singular legacy) toactive_paths(plural list) when reading; treat legacyabandonedasarchivedand exclude archived/deferred/revisit/promoted paths plusresearch/_archive/scopes from active target selection. Scope lifecycle metrics to the active product path by default. - Require
research/journey-map.md; load any focused lifecycle maps that exist. - Load ICP, customer feedback, existing metrics, specs, README, and current analytics/instrumentation code when present.
- Interview and recommend around: stage entry/exit events, activation, conversion, payment success/failure, retention health, churn risk, expansion readiness, evidence quality, measurement owner, and instrumentation gaps.
- Present the lifecycle measurement model before writing.
- Write
research/lifecycle-metrics.mdandresearch/lifecycle-metrics-interview.mdin flat mode, orresearch/{slug}/lifecycle-metrics.mdandresearch/{slug}/lifecycle-metrics-interview.mdwhen product-path scope is active, after validation.
Output Shape
# Lifecycle Metrics
> Based on: research/journey-map.md[, lifecycle stage maps]
> Date: YYYY-MM-DD
## Summary
## Stage Metrics
## Event And Property Inventory
## Instrumentation Gaps
## Baselines And Targets To Define In Metrics
## Record-Todo Candidates
## Next Steps
Alignment Page
When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following ALIGNMENT-PAGE.md in this skill's directory. Output: alignment/lifecycle-metrics-{topic}.html.
Constraints
- Do not duplicate the full
$metricsframework; link unresolved targets to$metrics. - Put future, non-blocking measurements in
tasks/record-todo.mdwhen the skill is executed. - End with
## Next Steps, preferring$metrics,$roadmap,$exec, or$cohort-reviewas context dictates.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.