plugins/exploration-cycle-plugin/skills/user-story-capture/SKILL.md
Derives, groups, and refines user stories from exploration work, prototype behavior, and business context, with prioritization for the first implementation slice. Supports standard "As a / I want / So that" format and Gherkin "Given / When / Then" Acceptance Criteria format. Trigger with "generate user stories", "write acceptance criteria", "create Gherkin scenarios", "derive stories from requirements", or "create a backlog".
npx skillsauth add richfrem/agent-plugins-skills user-story-captureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Derive structured user stories and acceptance criteria from exploration session captures.
python ./scripts/execute.py \
--input <file> [<file2>...] \
--format <standard|gherkin> \
--output <output_file.md>
Formats:
standard (default): As a [user type], I want [goal], so that [benefit] — with priority table and gaps.gherkin: Standard + Given / When / Then Acceptance Criteria blocks per story.Flags:
--input PATH [PATH ...] : Session brief, BRD draft, prototype notes, or prior captures--output PATH : Destination file (default: exploration/captures/user-stories-draft.md)--format FORMAT : Output format (default: standard)When invoked interactively, follow this 3-stage pattern. Do not dump a full story list at once.
Ask all three questions in a single message before generating anything:
exploration/ — list what you find: session brief, BRD draft, prototype notes.) If no files exist, stop and ask for input before proceeding.As a / I want / So that) or Gherkin (Given / When / Then)? Default to standard unless Gherkin is requested.After the user responds: read each input file they identify.
Build the backlog in layers — do not jump straight to full Gherkin blocks.
Outline first: Based on the input files and primary actor, present a numbered list of lightweight story titles (one line each, no ACs yet). Ask: "Which of these should we keep, cut, or merge for the first slice?"
Curate: Apply changes. Mark any story derived from unclear or inferred source material as [UNCONFIRMED].
Draft approved stories: For each kept story, write the full format:
As a [actor], I want [goal], so that [benefit].Given / When / Then AC blocks after the story statement.Gherkin format rules:
Given = precondition or system state before the action (what is already true)When = the single action or event the actor performsThen = the observable, testable outcome (what changes or appears)When per scenario. Use And for additional Given or Then clauses.Present each story and ask: "Accurate? Anything to add or change?" Apply edits before the next story.
After all approved stories are drafted:
Given / When / Then blocks for the confirmed edge cases. Mark inferred edge cases [UNCONFIRMED] until the user confirms they are real scenarios.## Story Gaps section at the end.[UNCONFIRMED] — only promote to [CONFIRMED] after human sign-off.(source: brd-draft.md, Functional Requirements)). Stories with no traceable source must be marked [UNCONFIRMED — inferred, not in source].## Story Gaps section is mandatory — list every open decision or missing actor definition exactly once.testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).