specification · ruvnet — Claude Code subagent: what it does, how to install
SPARC specification subagent for requirements analysis. Gathers acceptance criteria, outlines project scope, and learns from previous patterns via claude-flow.
no license ★ 850 updated 2026-10-26
.claude/agents/specification.mdWhat specification does
This analyst subagent covers the Specification phase of the SPARC framework. It breaks down raw task inputs into project scope, acceptance criteria, and technical constraints. Before processing, it queries the ReasoningBank memory to identify matching patterns from previous tasks.
Execution hooks rely on npx claude-flow@alpha. The pre hook searches past records with a minimum reward score of 0.8 and records the session start. Once done, the post hook logs token counts, latency, and quality scores, then triggers neural pattern training for 50 epochs on successful runs.
Hooks will fail silently or throw errors if Node.js and the claude-flow CLI are missing from your environment.
What it helps with
- extract functional requirements and project scope from raw task descriptions
- structure acceptance criteria before writing code
- retrieve proven specification patterns from previous runs
- track requirement quality metrics and latency across sessions
Example prompts for the agent
- Draft the specification and acceptance criteria for user authentication.
- Analyze project constraints and scope for our new billing service.
How to install specification
Manually: put the files in place
.claude/agents/specification.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/specification.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/specification.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about specification
How do I install specification in Claude Code?
Place the agent configuration file at .claude/agents/specification.md in your project repository.
What does the specification subagent do?
It handles the requirements analysis phase within the SPARC methodology. The subagent defines scope, establishes acceptance criteria, and stores structured specs into memory.
What dependencies are needed for the lifecycle hooks?
The pre and post hooks require Node.js and npx to execute commands from the claude-flow@alpha package.
Similar subagents
All subagents for Agent setup: memory, context, orchestration →specification by other authors comes first.