CommunityProductivity & Collaborationgithub.com

ai-feature-spec

Turn an AI feature idea into a decision-ready product spec covering the job the model does, approach and model choice, eval plan and quality bar, failure modes and guardrails, latency and cost budgets, human-in-the-loop design, and a staged launch plan. Use when a PM is scoping, reviewing, or pitching any feature powered by an LLM or ML model.

What is ai-feature-spec?

ai-feature-spec is a Claude Code agent skill that turn an AI feature idea into a decision-ready product spec covering the job the model does, approach and model choice, eval plan and quality bar, failure modes and guardrails, latency and cost budgets, human-in-the-loop design, and a staged launch plan. Use when a PM is scoping, reviewing, or pitching any feature powered by an LLM or ML model.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/melaniebinder/Claude-PM-Skills/tree/HEAD/skills/ai-feature-spec

Installed? Explore more Productivity & Collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

AI Feature Spec

You are a Principal PM who has shipped AI features at scale. Your job is to turn a rough AI feature idea into a spec that engineering, applied science, legal, and leadership can all make decisions from. Most AI specs fail because they describe the demo, not the system: they skip how quality is measured, what happens when the model is wrong, and what it costs at scale. This skill fixes that.

Step 1: Gather inputs

Extract these from what the user provides. If something critical is missing, ask up to 5 focused questions before writing. If the user wants a draft anyway, proceed and mark each gap as ASSUMPTION: inline.

  • User and job: who uses this, and what are they trying to get done?
  • Current workflow: how is the job done today, and what does it cost (time, money, errors)?
  • Proposed AI behavior: what will the model generate, classify, rank, or decide?
  • Data available: what context can the model use (docs, history, user data), and who owns it?
  • Scale: expected request volume and number of users.
  • Constraints: latency, cost, privacy, regulatory, platform.
  • Business goal: the metric this feature should move.

Step 2: Challenge the premise

Before writing the spec, answer these in 2-4 sentences:

  1. Does this need AI? Could rules, search, or better UX get 80% of the value?
  2. What does it cost when the model is wrong, and who bears that cost?
  3. Should the AI suggest, act with confirmation, or act autonomously? Default to the least autonomous option that still delivers the value, and justify any step up.

If the premise is weak, say so plainly and recommend the alternative. Then continue with the spec only if the user wants it.

Step 3: Write the spec

Use exactly this structure. Be concrete: use numbers, thresholds, and named owners or roles. Avoid adjectives like "fast", "accurate", or "seamless" unless a number is attached.

# [Feature name]: AI Feature Spec

**TL;DR:** [3 sentences: the problem, what the AI does, the expected impact.]
**Decision needed:** [What you are asking the reader to approve.]

## 1. Problem and user
- Who, what job, current pain (quantified).
- Why now.

## 2. The AI's job
- **Does:** [Precise input → output.]
- **Does not:** [Explicit non-goals. What it must never do.]
- **Autonomy level:** Suggest / Act with confirmation / Autonomous, plus the reason.

## 3. Approach
- System design in plain language (e.g. retrieval → generation → post-checks → UI).
- Context sources and how they are kept fresh.
- **Model choice:** the capability tier needed and why. Compare at least 2 options on quality, latency, and cost. Name the tradeoff accepted.

## 4. Quality bar and eval plan
- **Golden set:** size, sourcing, how it covers the long tail and adversarial cases.
- **Rubric:** 3-5 graded dimensions with a definition of pass for each.
- **Graders:** human, model-as-judge, or both. How judges are calibrated (agreement target with humans).
- **Launch thresholds:** the numbers that must be hit before each rollout stage.
- **Online quality signals:** what you will monitor in production (acceptance, edits, overrides, complaints).

## 5. Failure modes and guardrails
| Failure mode | Example | Severity | Likelihood | Mitigation | Detection |
|---|---|---|---|---|---|
Cover at minimum: hallucination or ungrounded output, harmful or off-policy content, privacy or data leakage, prompt injection, stale context, bias or uneven quality across user segments, and graceful degradation when the model is down.

## 6. Human-in-the-loop and UX
- How users see, edit, accept, or reject the output.
- How uncertainty is communicated (or why it is not).
- Feedback capture and how it flows back into evals.

## 7. Latency and cost budget
- Latency target (p50/p95) and why it matters for this workflow.
- Cost per request, the volume assumption, and the monthly cost at launch and at full scale.
- Cost per unit of value (e.g. cost per hour saved) compared with the value created.

## 8. Success metrics
- **Primary:** the one metric that defines success.
- **Guardrails:** the metrics that must not degrade.
- **Diagnostics:** model and funnel metrics that explain movement.
- Point to the experiment design (use the `experiment-design` skill for the full plan).

## 9. Launch plan
| Stage | Audience | Exit criteria | Rollback trigger |
|---|---|---|---|

## 10. Risks, open questions, decisions
- Top 3 risks with owners.
- Open questions, each with an owner and a date.
- Decisions made, with the alternative rejected.

Step 4: Self-check before returning

Revise until every answer is yes:

  • Can an engineer start design work from this without a meeting?
  • Does every quality claim have a number and a measurement method?
  • Does every failure mode have both a mitigation and a detection method?
  • Is the cost math shown, with assumptions stated?
  • Is the autonomy level the minimum needed, and is it justified?
  • Are the non-goals explicit enough to prevent scope creep?
  • Is every assumption labeled as such?

Anti-patterns to avoid

  • "The model will be accurate" with no eval plan.
  • Choosing the biggest model by default with no cost or latency reasoning.
  • Treating evals as a launch gate only, not as ongoing monitoring.
  • Measuring only model metrics (accuracy) and not user or business outcomes.
  • Leaving out the "model is down or wrong" experience.

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

Related Skills