Validates completed work against defined acceptance criteria. Use after completing a task that has specific success criteria defined in issues, specs, or task descriptions.
日本語の概要は準備中です。原文の説明を表示しています。
Keeps specification documents and code in agreement. Audit mode finds every divergence when an implementation is claimed complete; sync mode detects spec drift in staged changes and updates the spec after user approval, so each commit is a reconciled snapshot of spec, tests, and code. Use when an implementation is claimed complete against a spec, before committing changes that may drift from the spec, or after approving decisions that must flow back into it.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
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 -->まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Validates completed work against defined acceptance criteria. Use after completing a task that has specific success criteria defined in issues, specs, or task descriptions.
日本語の概要は準備中です。原文の説明を表示しています。
Generates 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.
日本語の概要は準備中です。原文の説明を表示しています。
Catches 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.
日本語の概要は準備中です。原文の説明を表示しています。
Safely integrates commits from parallel agent branches using sequential cherry-pick. Use after parallel work completes in isolated branches or worktrees.
日本語の概要は準備中です。原文の説明を表示しています。
Audits tests for concurrency safety — race conditions, shared mock state, cleanup ordering. Use when writing tests that involve goroutines, async operations, or shared mutable state.
日本語の概要は準備中です。原文の説明を表示しています。
Enforces 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.
日本語の概要は準備中です。原文の説明を表示しています。