spec-sync
Maintains bidirectional synchronization between module markdown specs and source code.
Install
mkdir -p .claude/skills/spec-sync-corvidlabs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18906" && unzip -o skill.zip -d .claude/skills/spec-sync-corvidlabs && rm skill.zipInstalls to .claude/skills/spec-sync-corvidlabs
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.
Keep markdown module specs in specs/<module>/ synchronized with source code using spec-sync. Use this whenever creating, editing, or reviewing code in a module that has (or should have) a spec, or whenever the user mentions specs, spec-sync, companion files (tasks.md/requirements.md/context.md/testing.md/design.md), or asks to add/update a module's documentation.Key capabilities
- →Run `specsync change new` to conduct an interview
- →Use `specsync change answer` to respond to questions
- →Complete adaptively selected artifacts and semantic deltas
- →Run `specsync change approve` after definition approval
- →Run `specsync change start` before editing implementation code
- →Run `specsync change verify` after keeping tasks and artifacts current
How it works
The skill uses `spec-sync` commands to manage a verified change lifecycle, including interviews, artifact completion, and approval steps.
Inputs & outputs
When to use spec-sync
- →Syncing specs with implementation
- →Managing module documentation
- →Validating code against requirements
About this skill
Spec-Sync Workflow
This project uses spec-sync for bidirectional spec-to-code validation. Specs live in specs/<module>/<module>.spec.md.
Verified SDD change lifecycle (5.0)
For every meaningful source, test, public documentation, schema, or configuration change:
- Run
specsync change new "<intent>" --jsonand conduct the returned interview with the user. - Use
specsync change answer <id> <question-id> <answer> --jsonuntil no questions remain. - Complete the adaptively selected artifacts and semantic deltas. Requirements use stable
REQ-<module>-<number>IDs, a normative SHALL statement, and acceptance criteria. - Ask the user for the definition approval, then run
specsync change approve <id>. - Run
specsync change start <id>before editing implementation code. - Keep tasks and artifacts current, then run
specsync change verify <id>. - Present verification evidence and ask for closing approval. Only after explicit approval,
run
specsync change accept <id>; archive separately withspecsync change archive <id>.
Never invent or self-grant either human approval. If an approved definition changes, its digest
becomes stale and must be approved again. specsync check validates canonical specs plus approved
active deltas, requirement-to-test evidence, change coverage, and CI gates.
Each canonical spec may have policy-selected companion files. Read and update the ones present; do not create empty companions only for ceremony:
tasks.md— Work items for this module. Check off tasks (- [x]) as you complete them. Add new tasks if you discover work needed.requirements.md— Acceptance criteria and user stories. These are permanent invariants, not tasks — do not check them off. Update if requirements change.context.md— Architectural decisions, key files, and current status. Update when you make design decisions or change what's in progress.testing.md— Test strategy: automated test locations, manual QA checklists, and edge cases/boundary conditions.design.md(opt-in) — Layout, component hierarchy, design tokens, and asset references. Present whencompanions.designis enabled in config.
Before modifying any module
- Read the relevant spec in
specs/<module>/<module>.spec.md - Read whichever companion files are present (
requirements.md,tasks.md,context.md,testing.md,design.md, or project-defined files) - After changes, run
specsync checkto verify specs still pass
After completing work
- Mark completed items in
tasks.md— check off finished tasks, add new ones discovered - Update
context.md— record decisions made, update current status - If requirements changed, update
requirements.mdacceptance criteria - If test coverage changed, update
testing.mdwith new test files or edge cases - If UI/layout changed, update
design.mdwith revised layout, components, or tokens
Before creating a PR
Run specsync check --strict — all specs must pass with zero warnings.
When adding new modules
Run specsync scaffold <module-name> to create a spec, companion files, a registry
entry, and auto-detected source files — or specsync new <module-name> for a
minimal spec-only draft. Complete the spec before writing code. The
/specsync:create-spec command (or tool-equivalent) runs this for you, and
accepts either a bare module name or a natural-language feature description
(e.g. /specsync:create-spec "I want a feature that lets users export their data as CSV") — pass a description and it will pick a module name and use
the description to draft the spec's Purpose and Requirements.
Key commands
specsync check— validate all specs against source codespecsync check --json— machine-readable validation outputspecsync coverage— show which modules lack specsspecsync score— quality score for each spec (0-100)specsync scaffold <name>— full scaffold: spec + companions + registry entry + source detectionspecsync new <name>— quick-create a minimal spec (add--fullfor companions)specsync resolve --remote— verify cross-project dependencies
Limitations
- →Never invent or self-grant human approval.
- →If an approved definition changes, its digest becomes stale and must be approved again.
How it compares
This skill enforces a structured, tool-driven workflow for spec-to-code synchronization, unlike manual documentation updates.
Compared to similar skills
spec-sync side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| spec-sync (this skill) | 0 | 14d | No flags | Advanced |
| svelte-expert | 11 | 9mo | No flags | Intermediate |
| home-assistant-integration-knowledge | 8 | 2mo | No flags | Advanced |
| writing-skills | 4 | 4mo | 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.
home-assistant-integration-knowledge
home-assistant
Everything you need to know to build, test and review Home Assistant Integrations. If you're looking at an integration, you must use this as your primary reference.
writing-skills
obra
Use when creating new skills, editing existing skills, or verifying skills work before deployment
obsidian-hello-world
jeremylongshore
Create a minimal working Obsidian plugin with commands and settings. Use when building your first plugin feature, testing your setup, or learning basic Obsidian plugin patterns. Trigger with phrases like "obsidian hello world", "first obsidian plugin", "obsidian quick start", "simple obsidian plugin".
code-review-checklist
vudovn
Code review guidelines covering code quality, security, and best practices.
openspec-verify-change
studyzy
验证实现是否与变更产出物匹配。当用户想要在归档前验证实现是否完整、正确且一致时使用。