Define north star + input metrics for a feature. Loop until metrics are measurable, attributed, and baselined.
Start the "Metric Definer" loop. - Goal: Feature has a north star metric and 2-4 input metrics, each with a measurement method, attribution plan, and current baseline value. - Max iterations: 6 - Between iterations run: `cat METRICS.md` - Exit when: METRICS.md contains north star + input metrics, each row has non-empty values for: metric name, measurement method, attribution, baseline, and target. Steps: 1. Read the feature spec/PRD to understand what outcome this feature drives 2. Identify the north star metric (the single outcome that proves the feature works) 3. Identify 2-4 input metrics (leading indicators you can measure sooner) 4. For each metric, define: how to measure it (event, query, tool), how to attribute it to this feature, current baseline 5. Write/update METRICS.md with a structured table 6. Review — any metric missing measurement method, attribution, or baseline? If so, research the codebase for existing instrumentation and fill gaps 7. Continue until all fields are complete Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.
How it works