Skip to main content
subagent CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/specification.md
Open on GitHub

What 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.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

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.

Specification official github Generates and updates formal specification files for new or existing features. Works directly with your codebase to structure requirements and contracts. CX Codex +1 298installs sparc-spec ruvnet sparc-spec runs the first SPARC phase: turns a feature description into requirements, acceptance criteria and constraints, then keeps the spec in ruflo memory. CX Codex +1 733installs technical-specification aj-geddes technical-specification gives your agent a structure for technical specs, PRDs, ADRs and RFCs: requirements, architecture, acceptance criteria. Useful before you start coding a feature. CX Codex +1 816installs create-specification official github The create-specification skill creates a structured Markdown specification with requirements, constraints, and interfaces. Use it when an AI agent needs a clear project contract. CX Codex +1 13,537installs create-github-action-workflow-specification official github The create-github-action-workflow-specification skill turns an existing GitHub Actions workflow into a formal specification for AI-assisted maintenance and review. CX Codex +1 10,745installs pptx-slide-specification kimtth pptx-slide-specification — a skill for writing and repairing coordinate-explicit JSON specs of slides, so an editable PPTX deck builds the same way every time. CX Codex +1 2,600installs specification-writing wanshuiyin specification-writing generates a structured multi-file patent specification from claims and disclosure materials. Useful when drafting patent filings for US, EP, or CN jurisdictions. CX Codex +1 515installs

From the same set76

The whole set →
release-swarm release-swarm is a Claude Code command for planning releases from commits and merged pull requests, preparing changelogs, and coordinating publication through GitHub CLI. CX Codex +1 ★ 850repo stars v3-performance-engineer v3-performance-engineer — a subagent that benchmarks claude-flow v3 and pushes it toward stated goals: Flash Attention, HNSW search, cold start, memory. Use it when the numbers are claimed and need proving. CX Codex ★ 850repo stars multi-repo-swarm multi-repo-swarm — a subagent for Claude Code that orchestrates multiple agents across your organization's repositories. Runs synchronized tasks, manages dependencies, and links pull requests between projects. CX Codex ★ 850repo stars consensus-coordinator consensus-coordinator — a Claude subagent that computes distributed consensus: Byzantine fault tolerance, voting and agreement across an agent swarm. CX Codex ★ 850repo stars pr-manager pr-manager coordinates pull request reviews, tests, and merge work through GitHub tools and a swarm of agents. It can also reuse patterns saved from earlier PR tasks. CX Codex ★ 850repo stars reviewer A reviewer persona for Claude that reads a change like a senior engineer: behaviour, security holes, slow paths, standards, docs. You get a summary with critical issues. CX Codex ★ 850repo stars refinement SPARC refinement phase agent for iterative code polish. Drives test-driven development: creates failing tests, satisfies them, and cleans up structure. CX Codex ★ 850repo stars release-swarm release-swarm coordinates release work from change analysis and changelog preparation to builds, tests, and deployment across configured targets. CX Codex ★ 850repo stars

Project sponsors

Companies that keep this analytics open