From Agent Toolkit
Refines raw development tickets into validated, codebase-verified requirements documents — the 'what', not the 'how'. Useful when a ticket is ambiguous, stale, or contradicts existing code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-toolkit:refine-ticketThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The **Refine** phase of Refine → Plan → Act: turn a raw ticket into a validated requirements
The Refine phase of Refine → Plan → Act: turn a raw ticket into a validated requirements document a fresh session can plan from. Analysis only — it defines what must be true when the work is done, never how to build it, and never touches code.
You cannot define the "what" in a vacuum. Every requirement must be checked against the actual code, config, and design — a ticket may be stale, ambiguous, contradicted by the codebase, or depend on upstream work that isn't implemented yet (e.g. a prerequisite ticket still open). Reading the code here is for validating requirements, not for designing the solution.
After gathering and code-verifying, grill the user — interview relentlessly, never guessing what they could clarify — to close every remaining decision:
Separate two kinds of uncertainty:
The facts you confirm while reading the code are part of the output, not scratch work. Where the relevant code lives, the shape of the data, the existing patterns to reuse — record them so the planner builds on them instead of rediscovering. Keep these as anchors for the requirements, not a solution design: what is true today, not how to change it.
When the ticket says a capability exists or names something to reuse, find what's behind it (the service method, query, SP it calls) and anchor the requirement on the smallest extension — relax a parameter, widen a filter, lift a guard. "Not an exact match" doesn't license a net-new build: reuse-vs-build-new is a blocking question for the user, never a silent default.
When a ticket points at a design (mockup, screenshot, prototype, design-tool link), that design is part of the spec. Visual decisions made without seeing it lock in wrong defaults.
Must stand alone for a fresh session with no memory of this conversation and no access to the ticket — this is the single most important constraint. No "as discussed", "we agreed", or "see ticket".
Location:
.TICKET with .REQUIREMENTS (e.g. FOO.TICKET.md → FOO.REQUIREMENTS.md); if the
input doesn't follow that convention, append .REQUIREMENTS before .md.<slug> (prefix the tracker id when
the ticket is bound to one) and the target path, confirm both with the user, then write
<slug>.REQUIREMENTS.md there.Five parts (Overrides and Open questions may be empty — don't pad):
(Description), (Technical Detail), (AC)). Group by area when it aids reading. Cite the
concrete file path / identifier inline wherever a requirement touches code; cite a reused pattern
as path:line-range.Each requirement is self-contained; user-facing strings that must stay in a given language are quoted verbatim.
When done, state — in project-relative paths — that the requirements file is ready, then hand
off each next phase as a single copy-pasteable launch command — phase-prefixed session name and
prompt combined, so one paste starts the session. Use the launch syntax of the agent tool in use
(vendor-agnostic — claude below is only the example), naming the session with the phase prefix
plus the requirements file's slug:
claude --name create-manual-test-<slug> "/create-manual-test-instructions <path>.REQUIREMENTS.md" # QA manual test
claude --name create-plan-<slug> "/create-implementation-plan <path>.REQUIREMENTS.md" # Plan phase
The phase prefix (create-plan-, execute-plan-, …) keeps the pipeline phases distinguishable in
the session list.
npx claudepluginhub francescoborzi/agent-toolkit --plugin agent-toolkitFacilitates ticket refinement by fetching tickets, loading project skills, exploring affected code, and asking gap-analysis questions to produce Gherkin-format output.
Produces a structured implementation plan from refined requirements, resolving the "how" without changing code. Use when a clear, actionable plan is needed before execution.
Decomposes problems, scans stakeholders, and structures requirements into a Phase 1 lifecycle document (1-requirements.md). Use before tech spec or feasibility study.