/vibe-engineering:vibe-spec-syncfrom vibe-engineering
Audits or syncs specification documents against implementation code. Audit mode finds divergences when implementation is claimed complete; sync mode detects spec drift in staged changes and updates the spec after user approval.
Ships in vibe-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Code changes. Specs don't update themselves. This skill closes the loop.
vibe-decision-journal), to sync them back to the specvibe-doc-quality-gate to bootstrap)/vibe-spec-sync # Sync mode: staged changes vs spec (default)
/vibe-spec-sync --audit # Audit mode: full spec vs implementation, no edits
The project must have:
# req:[ID])Find the spec — Look for:
spec.md, SPEC.md, *_spec.md in project root or docs/docs/design/, docs/architecture/Find the implementation — The code files the spec describes
Find the decision log — docs/decisions/decisions.jsonl (from vibe-decision-journal)
--audit)Read-only. Nothing is edited.
GAP-[SECTION]-[NNN] (e.g., GAP-AUTH-001)file:linevibe-gap-closure-loop. To accept an Extra or Incorrect item as the new intended behavior, run sync mode on it.Sync mode (default) continues with Steps 2–5 below.
Run git diff --cached and analyze what changed relative to the spec:
Categorize each change:
For each drift item, produce:
DRIFT-[NNN]:
Type: extending | modifying | contradicting
Spec section: "## [Header]"
Current spec says: "[quoted text]"
Code now does: "[description of new behavior]"
Suggested spec update: "[proposed new text]"
Present drift items to the user for a decision (use the harness's structured question tool if it has one; otherwise ask in plain text and wait):
For each approved drift item:
Find the target section in the spec:
Apply the update:
Preserve spec structure:
<!-- Updated: [date] per DEC-[NNNN] -->Stage the spec changes: git add [spec file]
After applying updates:
Re-read the updated spec — verify it reads coherently (no dangling references, no contradictions between sections)
Cross-check with decision log — ensure approved decisions from vibe-decision-journal are reflected in the spec
Check test coverage — identify any updated spec sections that now lack test coverage:
# req:[ID] markers matching affected requirementsvibe-adversarial-test-generation in spec-driven mode."Spec: [path] · Implementation: [paths] Gaps found: X (Y critical, Z high)
| GAP ID | Type | Severity | Spec says | Code does |
|---|---|---|---|---|
| GAP-AUTH-001 | Missing | Critical | "Tokens expire after 24h" | No expiration logic (auth/token.go) |
Top risks: [the 1–3 most dangerous gaps] Recommended fix order: [critical first]
Spec: [path/to/spec.md] Staged Changes Analyzed: [N files, M insertions, K deletions]
| # | Type | Spec Section | Action | Status |
|---|---|---|---|---|
| 1 | modifying | ## Authentication | Updated: "JWT tokens" → "JWT tokens with 1h expiry" | Approved |
| 2 | extending | (new) ## Rate Limiting | Added new section | Approved |
| 3 | contradicting | ## Data Retention | Flagged: spec says "never delete", code adds TTL | Rejected — code needs fix |
| 4 | extending | ## Error Handling | Deferred | — |
docs/spec.md: 2 sections updated, 1 section added## Rate Limiting (no tests yet)## Rate Limiting section/vibe-spec-sync --audit to verify full alignmentvibe-decision-journal: Decisions feed into spec sync. When decisions are approved, this skill updates the spec to reflect them.vibe-gap-closure-loop: Closes large sets of audit-mode gaps in prioritized waves.vibe-adversarial-test-generation (spec-driven mode): Generate tests for requirements that were updated or added during sync.vibe-coverage-enforcer: Verify that test coverage still meets tier targets after spec-driven test additions.vibe-pre-commit-audit: Complementary — that skill checks for secrets/debug code; this skill checks for spec alignment. Both belong in a pre-commit workflow.<!-- DEC-NNNN -->What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ash1794/vibe-engineering --plugin vibe-engineering33 skills in this plugin
/vibe-acceptance-gateValidates completed work against defined acceptance criteria. Use after completing a task that has specific success criteria defined in issues, specs, or task descriptions./vibe-adversarial-test-generationGenerates edge case, failure mode, and spec-driven test cases. Covers boundary values, nil inputs, concurrency, resource exhaustion, malformed data, and requirement-linked traceability tests. Use after happy-path tests exist and before claiming coverage is complete, when requirements lack tests, or before a security review./vibe-anti-rationalization-checkCatches shortcuts and reward hacking — weakening or deleting tests to make them pass, hard-coding expected outputs, silently dropping requirements, or claiming work is done without running it. Use before declaring a task complete and whenever a test or requirement feels like it's in the way./vibe-cherry-pick-integrationSafely integrates commits from parallel agent branches using sequential cherry-pick. Use after parallel work completes in isolated branches or worktrees./vibe-concurrent-test-safetyAudits tests for concurrency safety — race conditions, shared mock state, cleanup ordering. Use when writing tests that involve goroutines, async operations, or shared mutable state./vibe-coverage-enforcerEnforces tiered test coverage standards with three dimensions — line coverage by tier, spec-to-test traceability, and spec-to-code implementation mapping. Use before claiming code is complete.Other plugins' skills for the same job