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.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
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.
中文简介正在准备中。当前显示原文说明。