sync-spec-to-impl — community sync-spec-to-impl, dataspoke-baseline, selhorys, community, ai agent skill, ide skills, agent automation, AI agent skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Code Maintenance Agents requiring precise specification synchronization with implementation details. Synchronize DataSpoke specification documents with current implementation state. Use when specs and implementations have drifted and need reconciliation.

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

Quality Score

Top 5%
40
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add selhorys/dataspoke-baseline/sync-spec-to-impl
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

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

Ideal for Code Maintenance Agents requiring precise specification synchronization with implementation details.

Core Value

Empowers agents to synchronize specifications with implementations using YAML frontmatter, README files, and CLAUDE declarations, ensuring consistency across spec/ and feature/ directories, and facilitating accurate documentation and code alignment through SKILL.md files.

Capabilities Granted for sync-spec-to-impl

Synchronizing documentation with code changes
Validating implementation against specification declarations
Automating spec-to-impl consistency checks across repositories

! Prerequisites & Limits

  • Requires access to repository directories and files
  • Limited to repositories with specific directory structures (e.g., spec/, feature/)
  • Dependent on accurate and up-to-date specification documents
Project
SKILL.md
9.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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?

Ideal for Code Maintenance Agents requiring precise specification synchronization with implementation details. Synchronize DataSpoke specification documents with current implementation state. Use when specs and implementations have drifted and need reconciliation.

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: Synchronizing documentation with code changes, Validating implementation against specification declarations, Automating spec-to-impl consistency checks across repositories.

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 access to repository directories and files. Limited to repositories with specific directory structures (e.g., spec/, feature/). Dependent on accurate and up-to-date specification documents.

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

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

linear

Logo of lobehub
lobehub

Linear issue management. MUST USE when: (1) user mentions LOBE-xxx issue IDs (e.g. LOBE-4540), (2) user says linear, linear issue, link linear, (3) creating PRs that reference Linear issues. Provides

73.4k
0
Communication

testing

Logo of lobehub
lobehub

Testing guide using Vitest. Use when writing tests (.test.ts, .test.tsx), fixing failing tests, improving test coverage, or debugging test issues. Triggers on test creation, test debugging, mock setup

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication