/afpm:write-spec [feature idea, idea brief, insight file, or solutions file + tests file; defaults to picking from recent insights]from AI-First Product Manager
Drafts evidence-grounded feature specs from discovery artifacts like insights, personas, and tested solutions. Useful when moving from research to a structured spec with user stories and falsifiable hypotheses.
Ships in AI-First Product Manager. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Draft a feature spec from existing discovery artifacts, following the feature-specs skill.
Input: $ARGUMENTS
Resolve the bet. Three valid entries:
product/ideas/, a feature idea in one line, or an insight file — start there.product/solutions/ whose alternative has an analyzed tests file in product/tests/ (status: analyzed, decision continue and ready for spec), with no idea brief. The spec inherits from those two files the opportunity, the persona, the value proposition, what it replaces, and the version that was tested; it never re-asks them. Detail decisions that remain are asked one at a time, each with a recommended answer./design-solution-tests first; if the user continues, the spec records under Tested before spec that the riskiest belief was not tested (not tested (declared)).
Otherwise read the recent files in product/insights/, propose the insight that looks highest-impact as the one to bet on, and confirm with the user before proceeding.Load the evidence. Read product/overview.md (belief registry included — beliefs already registered for this feature or the product bear on the bet), the personas in product/personas/ relevant to the chosen insight, the interview transcripts the insight cites, and any market research in product/research/ that bears on the bet. When the idea brief carries solutions explored: {file}, or the bet is a tested alternative, read that file in product/solutions/ — the comparison and the value proposition are already settled; the spec links them, never rewrites them. When the spec is being revised and a metrics file names it in product/metrics/, keep (or add) its one Metrics: {file} line next to Tested before spec — never copy the metrics into the spec. When a tests file exists (solutions tested: {file} in the brief, or the solutions file's tests: line), read it too: what was tested is fixed. Note the mechanism, who does what, the behavior measured, and the segment of each test that passed. Identify the primary persona for the journey and confirm the choice if it isn't obvious.
Draft per the feature-specs skill: problem with cited evidence, user journey from the primary persona's point of view, 3–5 critical user stories with observable acceptance criteria, the falsifiable hypothesis block, and assumptions. When the idea comes from an exploration, add the short Alternatives considered section: a link to the solutions file and one line per discarded alternative with its reason — no re-evaluation. When a tests file exists, add the short Tested before spec section next to it: a link to the tests file and one line per test with its result and provenance — no re-analysis. Where the evidence is thin, the claim becomes an assumption — never invent quotes or journey steps.
Present and iterate. Before showing the draft, check its language: every heading, label, story, and the hypothesis are in the language of the conversation (per feature-specs, only the fixed tokens stay in English) — fix any English left over from the template. Show the draft; walk the user through the journey and the hypothesis in particular (those carry the most judgment). Adjust until they own it — the spec is their bet, not the agent's. If a decision changes something that was tested — the mechanism, who does what, the behavior measured, the segment — say so before applying it: "this changes what T{n} tested; that result no longer applies." The belief under that test is open again for the new version: the spec records the change under Tested before spec (which test, what changed, result no longer applies), the Assumptions section lists the belief as unverified for this version, and the close suggests /design-solution-tests for it. The user may continue; the spec never pretends the old result covers the new version.
Register the assumptions in the overview — the spec keeps no list of its own. product/overview.md is the single belief registry. Reuse the feature slug from the idea brief when the spec descends from one; otherwise use the spec's slug. For each assumption: already registered → the spec's Assumptions section references it; new → propose appending [feature: {slug}] [risk] {assumption} to the overview's unverified beliefs — risk classified per the feature-specs skill's four categories, with their default owners — and write nothing without the user's approval.
Save to product/specs/{YYYY-MM-DD-HHMM}-{slug}.md and suggest the natural next step in one line: run the critique panel over it (/critique-spec) — or, when a decision invalidated a test, /design-solution-tests for the changed version first.
Conversation and the saved spec in the language of the conversation — the one the user is writing in, even when the evidence files are in another language (quotes stay verbatim). The spec structure in feature-specs is translated in full, headings and story/hypothesis patterns included; only belief tags, risk tags, provenance labels, result tokens, and status keywords stay in English, like source: values.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alaimo-labs/ai-first-skills --plugin afpm41 skills in this plugin
/analyze-feedbackAnalyze post-launch feedback (reviews, tickets, in-app survey comments, CS notes, social mentions) — tag each entry, group into themes with counts, severity and verbatims, and, when a metrics analysis exists, say which of its hypotheses the feedback supports or contradicts. Works on its own too/analyze-metricsCompute the four AARS metrics of a feature from usage data with the definitions in its metrics file, plus the funnel and the retention curve, mark which metric is below target, and propose ranked hypotheses for why. Metrics are designed with /design-metrics; feedback is read next with /analyze-feedback/analyze-solution-testsAnalyze the results of solution tests against the thresholds set before they ran, decide per alternative whether it continues, changes, or is discarded, and update the tests file, the solutions file, and the belief registry with approval. Tests are designed with /design-solution-tests/analyze-surveyAnalyze survey results — quantitative summary by learning goal, coded open-ends, and actionable insights extracted from the data/build-solution-testBuild the material for one solution test already designed with /design-solution-tests — a prototype, a prompt with its input set and answer key, a facilitation script, a fake-door page, a capture sheet — exactly what the design asks for to produce its signal, and nothing more/clarify-ideaStarting from one idea already chosen (a solution, not a problem), get it clarified through evidence-grounded questioning, one question at a time — decisions stay yours, unknowns become assumptions. To compare alternatives for a problem first, use /explore-solutionsOther plugins' skills for the same job