/qa:new-story <persona>/<slug> [--feature=<short-title>] OR <slug> --persona=<persona> [--feature=...]from qa
Authors a persona-aware Gherkin user story with structured questionnaire, parser validation, and saves to docs/user-stories/<persona>/<slug>.md. Compatible with /qa for end-to-end testing.
Ships in qa. Installing the plugin adds it to Claude Code.
Author a new Gherkin user story compatible with the /qa validator. Runs the qa-author agent (haiku) which asks a short questionnaire and writes a parser-valid file to docs/user-stories/<persona>/<slug>.md. The resulting story can be validated end-to-end against the running application by running /qa docs/user-stories/<persona>/<slug>.md.
What it does:
<persona>/<slug> shorthand or a bare <slug> paired with --persona=<name>. Validate persona against the repo's allowlist at .qa/personas.toml (fall back to a default set if absent). Validate slug against ^[a-z0-9]+(-[a-z0-9]+)*$.docs/user-stories/<persona>/<slug>.md. Slug uniqueness is scoped per-persona — the same slug under two different personas is allowed and produces two distinct files.qa-author — Reads the parser spec at /qa:qa references/gherkin-format.md and the skeleton at templates/user-story.md, then runs the questionnaire.AskUserQuestion when available. Persona is pre-filled; confirms only when ambiguous.@persona:<name> tag and a **Persona**: <name> prose line above the fence), re-checks it against the parser rules, and only writes the file when the output is valid.docs/user-stories/<persona>/<slug>.md. Refuses to overwrite if the file already exists.Arguments:
<persona>/<slug> (shorthand) or <slug> --persona=<name> — the persona segment selects the destination directory; the slug becomes the file name.--feature=<short-title> — optional default offer for the feature-title question.Examples:
/qa:new-story editor/cell-regenerate
/qa:new-story cell-regenerate --persona=editor --feature="Editor regenerates a presentation cell"
/qa:new-story owner/share-workbook
/qa:new-story administrator/audit-log --feature="Admin exports the audit log"
The same slug under two personas is valid:
/qa:new-story owner/cell-create # writes docs/user-stories/owner/cell-create.md
/qa:new-story editor/cell-create # writes docs/user-stories/editor/cell-create.md
Skills the author loads (no globs — explicit names):
/qa:qa/core:anti-fabrication/core:nushellTask instructions:
Use the qa-author subagent. Parse the argument:
/, split into PERSONA / SLUG. If it contains zero /, the first positional is SLUG; require --persona=<name>. Multiple / is an error.PERSONA against <REPO_ROOT>/.qa/personas.toml (or the default set {owner, editor, viewer, cross-persona, administrator} if the file is absent).SLUG against ^[a-z0-9]+(-[a-z0-9]+)*$.<REPO_ROOT>/docs/user-stories/<PERSONA>/<SLUG>.md.Verify the resolved target does not exist before spawning the agent — refuse to overwrite. Pass RAW_SLUG, PERSONA, the --feature value if provided, and the repo root (current working directory unless the path is in a subrepo) to the agent.
What the command file sets; muted values are Claude Code's defaults
gherkin, user-story, bdd, persona, qa
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub vinnie357/claude-skills --plugin qaOther plugins' commands for the same job