A spec-first workflow for coderX agents that processes requirements and audits to generate verified code updates.
Install
mkdir -p .claude/skills/specx && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18259" && unzip -o skill.zip -d .claude/skills/specx && rm skill.zipInstalls to .claude/skills/specx
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Spec-driven coding workflow for coderX agents. Use this skill whenever implementing, fixing, refactoring, or iterating code from hybrid docs or specified requirements, especially when file index, knowledge index, or evaluator findings are present.Key capabilities
- →Read specifications and acceptance criteria
- →Read engineering file index and knowledge index
- →Fix issues based on audit reports
- →Implement code changes based on execution brief
- →Verify code changes against acceptance criteria
- →Output verifiable code changes
How it works
This skill executes development by first reading specifications and acceptance criteria, then consulting engineering documents and knowledge graphs. It prioritizes audit feedback and implements changes verifiable against declared criteria.
Inputs & outputs
When to use specX
- →Implement feature spec
- →Refactor based on audit
- →Iterate from requirements
About this skill
coderX: Spec-Driven Implementation Skill
Objectives
Enable coderX to execute development following a unified process:
- First read specifications and acceptance criteria
- Then read engineering file index and knowledge index
- Then read audit reports and fix by priority
- Finally submit verifiable code changes
Input Document Conventions
Prioritize the Type 0 Dispatch Payload handed off by Main Agent. In xwhole/xlocal, the payload must include explicit Parent and Child paths. If either path is missing, stop and return Dispatch Contract Missing instead of auto-locating a Hybrid document.
The payload's Execution Brief is the authoritative interpretation of the user requirement. coderX should not re-discover or re-argue the requirement from conversation history; it should implement the brief, then verify against the declared acceptance source. If the brief conflicts with current files or Child AC, stop and report the contradiction instead of guessing.
Auto-location of a [Feature Module]-hybrid.md document is allowed only as a direct-execution fallback when the user explicitly asks to skip WorkflowX orchestration, or when Main Agent has declared subagent dispatch degraded and the user approves fallback execution. If there is no active reference and no document record in context, coderX may continue directly only for xunit-style tasks.
Hybrid Tree: Reading Parent+Child Documents
coderX receives (Parent, Child) paths, reads corresponding Sections per .codex/skills/orchestrateX/SKILL.md Hybrid Tree Section Map.
Document permissions: coderX is a pure reader + implementer. Does not write to any document. If implementation involves new files, scope changes, or shared resource updates, mark in Change Summary's Directed Audit Points for Main Agent to decide whether to update.
Knowledge Graph
- Read Parent Section 8.2 to collect the exact entity names and relation summaries (the "trunk").
- Call
mcp__server-memory__open_nodeswith those exact names to retrieve detailed node facts. - Only fall back to
mcp__server-memory__search_nodesfor keyword discovery when an exact name is missing; do not rely on OR/Boolean semantics.
Namespace hygiene: diagnostic, test, sandbox or throw-away entities should be prefixed with
TEST_orDIAG_and deleted once validation is complete so they do not pollute the long-term project knowledge graph.
Execution Process
Step 1: Requirement Alignment
- Hybrid Tree Mode: Read the Type 0 Dispatch Payload first. Extract
Execution Brief,Context Manifest, andContext Budgetbefore loading documents. Then read the Child hybrid Section 7 for branch-specific AC. Read Parent Sections only as listed in theContext Manifestor required by the declared acceptance source. No Hybrid Tree: Read4/5/7, extract the functional points, acceptance criteria, and non-functional constraints that must be satisfied in this round. - Form the current round task list from the
Execution Briefand acceptance source; avoid implementing beyond scope.
Step 2: Context-Oriented Loading (MCP Deep Retrieval)
- Read
Context Manifest -> Read Firstbefore any repo-wide search. - Read
Context Manifest -> Read If Neededonly when the listed trigger applies. - Use
Context Budgetto cap broad searches and document reads. Do not scan unrelated modules just to rebuild confidence. - For MCP graph retrieval, use exact entity names from the manifest or Parent Section 8.2 trunk. Use
open_nodesfirst; only fall back tosearch_nodeswhen an exact name is missing. - If additional files or nodes are required, record each expansion and reason in the Change Summary.
Memory vs. Code Truth
If a memory observation contradicts the current file content, git diff, or actual code, the code/file truth wins. The agent must flag the discrepancy in the Change Summary Payload and must update or delete the stale memory observation using mcp__server-memory__add_observations or mcp__server-memory__delete_observations.
Step 3: Audit Feedback Handling (Combined with Bus Communication, Conditional Execution)
- Read Pipeline Payload: Prioritize reading the Evaluation Summary Bus Payload directly handed off by upstream evaluatorX in the conversation, quickly identifying the core issues and directions to fix in this round.
- Align Detailed Report: Read the
9evaluation report section in the hybrid document to obtain specific line numbers and code-level issue details. - If valid issues exist: Handle by severity and priority, in order of
P0/Red -> P1/Yellow -> P2/Green. - If no valid issues exist or empty: Skip the audit fix process and proceed directly to completing new implementation per specifications.
Step 4: Implementation & Verification
- Only modify the minimal file set related to the task; avoid unrelated refactoring.
- Map each change to acceptance criteria, ensuring verifiability.
- Execute necessary builds/tests/static checks and record results.
Step 5: Output Change Summary Payload
In xwhole/xlocal Hybrid Tree workflows, after implementation, proactively output a standardized Change Summary Payload. Do not write to any document; only output Payload for Main Agent to validate and forward to Agent(evaluatorX).
xunit does not load specX and does not output Bus Payload.
Format follows .codex/skills/orchestrateX/modules/02-bus-payload.md (Payload Type 1). Core fields:
Changed Files: list of modified files this round with summariesAffected ACs (claimed): ACs claimed affected (evaluatorX will cross-validate via diff)Directed Audit Points: highlight complex logic or shared resources for evaluatorX to focus on
Output Constraints
- Must not skip specification reading and directly code.
- Must not ignore the
Context Manifest; read indexed sections such as8.1/8.3when the manifest or acceptance source requires them. - Processing of
9must be conditional: if content exists, prioritize fixes; if empty, skip. - Must not fabricate test results or requirement completion status.
- Keep changes traceable: every change can be traced back to specification items or evaluation issues.
- Do not write to any document: coderX only outputs Change Summary Payload. All document writes are handled by Main Agent.
When not to use it
- →When the Type 0 Dispatch Payload is missing Parent or Child paths
- →When the execution brief conflicts with current files or Child AC
- →When there is no active reference and no document record in context for non-xunit tasks
Limitations
- →Does not write to any document directly
- →Must not skip specification reading and directly code
- →Must not ignore the `Context Manifest`
How it compares
This skill enforces a spec-driven workflow by requiring explicit requirement alignment and context-oriented loading before implementation, ensuring changes are verifiable against acceptance criteria, unlike direct coding.
Compared to similar skills
specX side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| specX (this skill) | 0 | 23d | No flags | Advanced |
| svelte-expert | 11 | 9mo | No flags | Intermediate |
| agent-implementer-sparc-coder | 1 | 5mo | Review | Intermediate |
| squirrel | 0 | 1mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
svelte-expert
Raudbjorn
Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.
agent-implementer-sparc-coder
ruvnet
Agent skill for implementer-sparc-coder - invoke with $agent-implementer-sparc-coder
squirrel
Youssef-Ashraf2099
Full-cycle AI coding skill: plans, builds, tests, lints, fixes bugs, and writes production-grade docs. Auto-detects project state and adapts its 8-phase pipeline.
scaffold-feature
niklasbrandt
Scaffold a complete full-stack feature: FastAPI endpoint, dashboard Web Component, i18n keys, test stubs, and documentation checks.
coder
eq-lab
Implement a planned Pipeline GitHub Issue by number. Use when Codex is asked to execute an active plan end-to-end, update code/tests/docs, mark plan steps complete, run the relevant verification commands, and report results without editing issue labels, closing the Issue, moving the plan, or committ
bdd-feature-generator
rdkcentral
Generate BDD (Behavior Driven Development) feature files from tr69hostif source code analysis. Use for creating Gherkin-format documentation of TR-181 parameter handlers, daemon lifecycle, WebPA/Parodus communication, HTTP server protocol, and RFC store behavior. Produces gap analysis between featur