AGENT SKILL

metric-contract

Use this skill when the user wants to define, document, reconcile, or review a KPI or metric. Trigger on phrases like "define this metric", "metric contract", "KPI definition", "source of truth", "North Star metric", "active user definition", "conversion definition", "retention metric", "metric governance", "semantic layer", or "why do dashboards disagree".

适用职业律师与法务
License 许可
MIT
最近更新
2026-11-11
Stars
★ 1
Forks
0

01 前言 Front Matter

name
metric-contract
description
Use this skill when the user wants to define, document, reconcile, or review a KPI or metric. Trigger on phrases like "define this metric", "metric contract", "KPI definition", "source of truth", "North Star metric", "active user definition", "conversion definition", "retention metric", "metric governance", "semantic layer", or "why do dashboards disagree".
disable-model-invocation
false

02 资源文件 1

03 SKILL.md 正文

Metric Contract

Contract

You are the metric steward for the analytics team. Your job is to make a metric precise enough that two analysts, a dashboard, and an executive review all mean the same thing.

This skill produces or reviews a metric contract. It may inspect schemas, tracking docs, dbt models, SQL, dashboards, notebooks, and prior reports. It must not bless a metric that lacks a numerator, denominator, grain, population, time window, and source of truth.

Read references/metric-contract-template.md when writing a durable contract. Use references/causal-claims-guide.md if the metric will be used for impact, incrementality, or causal claims.

Workflow

  1. Name the decision use. Ask what decision this metric informs. Metrics with no decision use become vanity metrics or dashboard clutter.
  2. Inventory existing definitions. Search docs, dashboards, SQL, dbt models, notebooks, and stakeholder notes for current variants. If definitions conflict, list the conflicts before proposing a canonical version.
  3. Define the metric. Specify numerator, denominator, grain, eligibility, exclusions, time zone, time window, attribution window, refresh cadence, and source of truth.
  4. Map edge cases. Name boundary cases: bots, employees, refunds, partial periods, multiple accounts, reactivations, duplicate events, late-arriving data, deleted users, and backfills.
  5. Design quality checks. Define freshness, duplicate-grain, missingness, denominator drift, event/schema drift, and reconciliation checks.
  6. State caveats and misuse. Say what the metric does not measure and which decisions it should not drive.
  7. Write or update the contract. Save a Markdown artifact when requested or when the metric will be reused.

Output Format

For a lightweight response:

# Metric Contract: <metric>

**Decision use:** ...
**Canonical definition:** ...
**Source of truth:** ...
**Owner:** ...

## Formal Definition
## Edge Cases
## Quality Checks
## Known Caveats
## Implementation Notes

For durable contracts, write to workspace/analysis/lead-analyst/metrics/ if workspace/ exists, otherwise analysis/lead-analyst/metrics/, using the filename format:

YYYYMMDD-HHMMSS-metric-<slug>.md

Use the template in references/metric-contract-template.md.

Close with a completion status block:

STATUS: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
Artifact: <path or "none — returned inline">
Canonical definition: <one line>
Next skill: /lead-analyst:metric-lineage | dashboard-spec | analysis-brief
Open concerns: <none or list — e.g. unresolved variant conflict, missing owner>

Use DONE_WITH_CONCERNS when a definition is proposed but variants remain unreconciled; BLOCKED when the metric lacks a numerator, denominator, grain, or source of truth and cannot be blessed; NEEDS_CONTEXT when the decision use of the metric is unknown.

Anti-Patterns

  • Accepting "active", "conversion", "qualified", "engaged", or "retained" without an event, entity, and window.
  • Defining a metric without a source of truth and owner.
  • Optimizing for what is easy to measure instead of what informs the decision.
  • Hiding dashboard disagreements instead of reconciling them.
  • Forgetting change control for metrics used in recurring reviews.

04 同仓库更多 Skills

weisberg
weisberg/agile_agentic_analytics

minimal-skill

Minimal shared skill fixture for marketplace renderer and validator examples.

Skill与智能体开发
★ 1
weisberg
weisberg/agile_agentic_analytics

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).

产品经理
★ 1
weisberg
weisberg/agile_agentic_analytics

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).

产品经理
★ 1
weisberg
weisberg/agile_agentic_analytics

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.

产品经理Skill与智能体开发
★ 1
weisberg
weisberg/agile_agentic_analytics

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.

产品经理Skill与智能体开发
★ 1
weisberg
weisberg/agile_agentic_analytics

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).

产品经理
★ 1