sync-spec-to-impl — community sync-spec-to-impl, dataspoke-baseline, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Essential for Documentation Integrity Agents maintaining alignment between technical specifications and code implementations. AI Data Catalog Starter

selhorys selhorys
[14]
[0]
Updated: 3/3/2026

Agent Capability Analysis

The sync-spec-to-impl skill by selhorys is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Essential for Documentation Integrity Agents maintaining alignment between technical specifications and code implementations.

Core Value

Enables automated synchronization between declarative specifications (spec/ directories, README.md, CLAUDE.md, SKILL.md frontmatter) and actual implementation code. It provides systematic gap analysis and reconciliation for documentation-complete systems.

Capabilities Granted for sync-spec-to-impl

Validating feature completeness against spec documents
Identifying undocumented implementation changes
Maintaining CLAUDE.md accuracy with current system behavior
Auditing README.md files for implementation drift

! Prerequisites & Limits

  • Requires filesystem access to spec/ and component directories
  • Depends on consistent YAML frontmatter structure in SKILL.md
  • Limited to declared specification formats (spec/, README.md, CLAUDE.md)
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

sync-spec-to-impl

Install sync-spec-to-impl, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Definitions

What counts as Specification

Specification is any document that describes what should exist and how it should behave:

  • Docs under spec/ and spec/feature/ directories
  • README.md files at each component directory and at the repository root
  • CLAUDE.md at the repository root
  • Declarations in SKILL.md files (YAML frontmatter + description/routing sections at the top — everything above the detailed workflow instructions)

What counts as Implementation

Implementation is the actual code, scripts, and configs that do things:

  • .prauto/ scripts, libraries, prompts, and config files
  • dev_env/ scripts, manifests, and helpers
  • helm-charts/ chart definitions, values, and templates
  • api/ OpenAPI spec (openapi.yaml)
  • src/ application code (api, backend, frontend) and tests/ directories
  • Detailed logic in SKILL.md files (the workflow instruction body — everything below the declarations)
  • ref/ system (reference materials and setup scripts)

The boundary inside SKILL.md

A single SKILL.md file straddles both sides:

PartCounts asWhat it contains
YAML frontmatter (name, description, argument-hint, allowed-tools, flags)SpecWhat the skill claims to do
Routing table / first overview sectionSpecHow the skill is invoked
Detailed step-by-step workflow instructionsImplHow the skill actually works

Routing & Scope Definitions

Parse $ARGUMENTS to determine the change scope. If no arguments are given or the scope is unclear, output the following scope menu and wait for the user to reply with their selection:

Select scopes to sync (comma-separated numbers or keywords):

  1. all          — All scopes that have both spec and impl files
  2. prauto       — .prauto scripts, prauto-related specs and skills
  3. ai-scaffold  — CLAUDE.md, .claude/ settings, hooks, agents, all skills
  4. dev-env      — dev_env/ scripts, DEV_ENV spec
  5. helm-charts  — Helm chart definitions and specs
  6. api          — API specs, OpenAPI, src/api/ code
  7. ref          — ref/ setup scripts and reference materials
  8. backend      — Backend services, Temporal workflows (TBD)
  9. frontend     — Next.js frontend code (TBD)

Example: "1" or "prauto, api" or "2,3,6"

Parse the user's reply into individual scope keywords. Accept numbers, keywords, or a mix.

The directories below are starting points — always glob the actual tree to discover what exists. If files have moved or been renamed, follow the real structure rather than these hints.

Scope keywordSpec sideImpl side
prautospec/AI_PRAUTO.md, prauto-related skill declarations, .prauto/README.md.prauto/ scripts and libs, prauto-related skill logic bodies
ai-scaffoldspec/AI_SCAFFOLD.md, CLAUDE.md, all skill declarations across .claude/skills/.claude/ settings/hooks/agents, all skill logic bodies
dev-envspec/feature/DEV_ENV.md, dev-env skill declaration, dev_env/README.mddev_env/ scripts and helpers, dev-env skill logic body
helm-chartsspec/feature/HELM_CHART.mdhelm-charts/ charts, values, and templates
apispec/feature/API.md, spec/API_DESIGN_PRINCIPLE_en.md, src/api/README.mdapi/ OpenAPI spec, src/api/ routers/schemas/auth/middleware
refspec/AI_SCAFFOLD.md (ref section), ref-setup skill declaration, ref/README.mdref/ setup scripts and reference materials, ref-setup skill logic body
backendTBDTBD
frontendTBDTBD
allAll of the aboveAll of the above
  • If the user selects all, expand to every scope that has both spec and impl files present.
  • For scopes marked TBD: inform the user that the mapping is not yet defined and skip with a note.

Step 1 — Collect inventory

For each selected scope:

  1. Glob for all spec-side and impl-side files using the areas in §Routing & Scope Definitions.
  2. Build a file inventory: {scope, side, path, exists}.
  3. If a scope has no spec files or no impl files, report it and skip with a warning.

Step 2 — Read and compare

For each scope, read files on both sides and identify discrepancies.

What to look for

CategoryExample discrepancies
Structural driftSpec lists components/scripts that don't exist in impl, or impl has components not mentioned in spec
Naming mismatchSpec uses one name for a concept; impl uses a different name
Behavioral driftSpec describes a workflow or protocol; impl does it differently
Missing documentationImpl has features/options not documented in spec or README
Stale referencesSpec references files, paths, or versions that have changed
Skill declaration driftSKILL.md declaration (frontmatter/routing) doesn't match the skill's logic body

Reading strategy

  • Spec side: Read fully — these define the intended behavior.
  • Impl side: Focus on structure, exported functions/endpoints, CLI options, and high-level flow. Don't read every line of business logic unless the spec describes that level of detail.
  • SKILL.md: Read the declaration (frontmatter + routing) as spec; skim the logic body for workflow steps and behavioral contracts; compare the two sides against each other.

Step 3 — Classify and prioritize changes

High-level spec rules (spec hierarchy awareness)

Follow the spec hierarchy from CLAUDE.md. Higher-priority documents constrain lower ones.

PriorityDocumentsSync rule
1MANIFESTO_en/kr.mdNever modify. Only flag contradictions for user review.
2API_DESIGN_PRINCIPLE_en/kr.md, DATAHUB_INTEGRATION.mdFix factual inaccuracies only. Keep conventions abstract — no impl details.
3ARCHITECTURE.md, TESTING.md, USE_CASE_en/kr.mdUpdate component lists, tech stack, data flows if they've changed. Keep architectural level — no code-level detail.
4AI_SCAFFOLD.md, AI_PRAUTO.mdUpdate to reflect current scaffold structure and prauto behavior. May include moderate detail (file trees, config keys, workflow steps).
5–6feature/*.md, feature/spoke/*.mdFull detail allowed. These are the deep-dive specs.

Brevity rules

  • CLAUDE.md (root): Keep as brief as possible. Orientation document, not a reference. Only names, key commands, and pointers to detailed specs. Remove anything that belongs in AI_SCAFFOLD.md or feature specs.
  • README.md files: Quick-start focused. Prerequisites, install command, access details, link to spec. No architecture discussion.
  • SKILL.md declarations: description should be one sentence. argument-hint should match actual accepted arguments.
  • High-level specs (priority 1–3): Describe what and why, not how. Implementation details belong in priority 4–6 documents or in impl files.
  • Generally, all spec-side documents should stay brief. They exist to orient and constrain, not to replicate implementation details.
  • In spec, focus on architecture, decisions, and constraints. From spec, remove verbatim template code, full code blocks, and script snippets that duplicate the impl files.

Change direction heuristic

  • If impl is more recent (has features/options that spec doesn't mention) → propose updating spec to document the current state.
  • If spec has requirements that impl doesn't fulfill → flag as "spec gap in implementation" — do not auto-modify impl code (too risky without tests). Report it for the user to decide.
  • If both have drifted → propose spec update to match impl reality, and list impl gaps separately.

Step 4 — Present findings and apply changes

Report format

Present a structured summary before making changes:

## Sync Report — <scope(s)>

### Discrepancies Found

#### <Scope Name>

| # | File | Side | Issue | Proposed Action |
|---|------|------|-------|-----------------|
| 1 | spec/AI_PRAUTO.md | spec | Missing reference to new lib module | Add to file tree |
| 2 | .prauto/README.md | spec | Stale prerequisites list | Update to match reality |
| 3 | .claude/skills/dev-env/SKILL.md | spec (decl) | argument-hint missing new action | Update frontmatter |
| ... | ... | ... | ... | ... |

#### Spec Gaps in Implementation (not auto-fixed)
- spec/feature/API.md requires endpoint X, but src/api/routers/ doesn't implement it

### High-Level Spec Impact
- CLAUDE.md: <no change needed | brief update proposed>
- ARCHITECTURE.md: <no change needed | update proposed>

Apply changes

  1. Ask the user to confirm before applying. Show the proposed edits clearly.
  2. Apply edits using the Edit tool (prefer surgical edits over full rewrites).
  3. For high-level specs and CLAUDE.md, show the diff preview first — these files affect all agents.
  4. After applying, re-read modified files to verify consistency.

Cross-scope consistency check

When all is selected (or multiple scopes), perform an additional pass after the per-scope steps above:

  • Flag any contradictions between priority levels (e.g., a feature spec contradicting ARCHITECTURE.md, or a skill declaration contradicting its parent spec).
  • The spec hierarchy in §Step 3 determines which document is authoritative when there is a conflict — higher priority wins.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is sync-spec-to-impl?

Essential for Documentation Integrity Agents maintaining alignment between technical specifications and code implementations. AI Data Catalog Starter

How do I install sync-spec-to-impl?

Run the command: npx killer-skills add selhorys/dataspoke-baseline/sync-spec-to-impl. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for sync-spec-to-impl?

Key use cases include: Validating feature completeness against spec documents, Identifying undocumented implementation changes, Maintaining CLAUDE.md accuracy with current system behavior, Auditing README.md files for implementation drift.

Which IDEs are compatible with sync-spec-to-impl?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for sync-spec-to-impl?

Requires filesystem access to spec/ and component directories. Depends on consistent YAML frontmatter structure in SKILL.md. Limited to declared specification formats (spec/, README.md, CLAUDE.md).

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add selhorys/dataspoke-baseline/sync-spec-to-impl. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use sync-spec-to-impl immediately in the current project.

Related Skills

Looking for an alternative to sync-spec-to-impl or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI