/specflow:specflow-simulatefrom specflow
Simulates end-to-end Specflow story usage across multiple personas and divergent routes to discover gaps, edge cases, and unhandled branches before building. Proposes concrete story additions like new REQs, negative-path ACs, Gherkin branches, or journey steps.
Ships in specflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When loaded as a native Claude plugin, framework assets are at ${CLAUDE_PLUGIN_ROOT} and project state is at ${CLAUDE_PROJECT_DIR}. Resolve framework node scripts/... examples at that installed root, with quoted paths; do not require PATH specflow or copied project scripts. Use this skill's shipped references at ${CLAUDE_PLUGIN_ROOT}/skills/specflow-simulate/references before any user-scope fallback. Outside native plugin loading, preserve the existing npm/Codex context and fallback rules below. Host identity and approved model routing remain authoritative; Recommended Model prose is advisory and grants no override. This path context grants no acceptance or release permission.
Read SPECIFICATION.md (source kit: templates/SPECIFICATION.md). Before
using the detailed procedure below, run
node scripts/specflow-tier.cjs inspect <record.json> specflow-simulate inspect.
Stop on exit 2 and report the returned blocker. Production work repeats the
check with resume at re-entry and finish before claiming completion.
A missing record cannot prove readiness; retrieve the current issue and scoped
evidence. Labels alone never grant build-ready status.
The detailed artifact/pre-flight requirements below apply to the selected build-ready slice and its relevant seams. Thin work reports planning state and the next justified decision without generating full schemas, fixture packages or simulations. Contracted work reviews applicable irreversible decisions and includes a paper persona walkthrough for UI flows. Reuse shared decisions; leave future siblings thin. Required privacy, permission, execution and release gates remain in force. Reconcile contradictory custom legacy instructions explicitly using the shared policy; do not claim they passed.
Run a story through realistic usage — multiple personas, multiple routes — to find the gaps and edges a single happy-path reading misses. The output is not commentary; it is a set of concrete, proposed additions that make the story sharper before any code is written.
When the story changes what a person reads (notices, digests, receipts, asks, card text, email, chat), add the
busy reader persona and run the real-sample gate: the last N (>= 10) real stored items through the new code,
one table row each (first line seen, pinged?, what must I do?, pass). The table goes in the PR; committed fixtures are
redacted or synthetic. Also walk the divergent route "the producer writes in another shape". Details:
references/simulation-method.md, "Reader-facing stories".
Trigger on: "simulate this story", "simulate usage end to end", "find gaps / edges", "run personas through this", "stress-test this story", or /specflow-simulate <file-or-issue>.
Position in the Specflow flow — this runs after create, before audit:
create (specflow-writer) → SIMULATE (this skill) → audit/uplift (specflow-audit) → pre-flight gate
It is generative (discover + propose). It is NOT the pre-flight gate (that verifies and blocks). Do not conflate the two.
Full method (persona archetypes, route taxonomy, gap→edit mapping, output format) is in references/simulation-method.md. Summary:
gh issue view <n> --json title,body,comments, or the file). Extract the intended outcome, the actors, and the surfaces.REQ-NN, a negative-path AC, a new Gherkin scenario/branch, a new journey step + data-testid, or a flagged open question. A gap with no proposed edit is incomplete.node scripts/specflow-publication.cjs <request.json>) or an appended ## Simulation Findings (proposed) section. The user (or the subsequent specflow-audit uplift) folds accepted items into the story body. Only edit the body directly if the user explicitly says to apply.For a deep simulation, fan out one agent per persona so each route is explored independently and blind to the others — this surfaces more than one sequential reading. The ux-critique skill already runs parallel persona agents against a live screen; reuse that pattern here, scoped to the story text rather than a running UI. Then dedupe and synthesize into the single findings block.
Report, and post as the findings block:
references/simulation-method.md — persona archetypes, route taxonomy, gap→edit mapping table, and the ## Simulation Findings (proposed) format.Scoped grading uses the shared specflow-reviews.cjs issue/tier ledger through Duo preparation (specification.targetTier). Continue while first-time verified evidence advances. Two no-progress reviews or three invalid responses require diagnosis. Further materially different recoveries need fresh stable executed observations not already used in the episode; a fixed recovery count does not end subscription work. Repeated facts, renamed notes or missing evidence retain their concrete diagnostic blocker. Do not reset history via host/run names. An ungraded fix remains ungraded until an independent current regrade passes. See duo-build for recover-review and optional execution checkpoints.
Publication: save the sanitized proposed comment in bodyFile, then write a request JSON with repo, issue, bodyFile, and all linkedFiles. Run node scripts/specflow-publication.cjs <request.json> and stop on non-zero exit. It requires the project mechanical scanner and private-baseline canary where applicable. Never publish private sources or raw provider records. Preserve concurrent issue-body edits: publish proposals instead of replacing a fetched body.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (hulupeep/specflow) — no native marketplace selected
npx claudepluginhub p/hulupeep-specflow4 skills in this plugin
/duo-buildBuild an issue or feature interactively toward an indexed shared goal, with automatic read-only peer review; resume the same run across Claude Code and Codex./specflow-auditAudits a Specflow story/ticket for spec-compliance and surgically uplifts it — adding only the missing executable contract sections (SQL/RLS, TypeScript interfaces, invariant codes, Gherkin, acceptance criteria, Definition of Done, data-testid coverage) — then runs a pre-flight gate that refuses to mark the ticket compliant while CRITICAL or P1 findings remain. This skill should be used when the user asks to "make specflow compliant", "specflow audit", "uplift this story", "run specflow auditor", "is this story compliant", or invokes /specflow-audit on a story file or GitHub issue. It is the reliable replacement for ad-hoc inline "make it compliant" edits, which skip the gap-analysis, the section templates, and the pre-flight gate. Scope is strictly Specflow story/contract work — do NOT trigger on generic "make this code/PR compliant" requests unrelated to Specflow specs./specflow-loop-selectorChoose the lightest Specflow workflow that covers an ask’s size, uncertainty and risk, then select a loop only when needed. Use for work triage, proportionate verification, loop selection, or explicit spec-build, feature-build and Gate D requests. A lightweight decision does not start a loop.Other plugins' skills for the same job