--- name: vcsdd-git-integration description: Use this skill when committing VCSDD pipeline artifacts to git. Provides conventional commit message format, phase tag patterns, and atomic staging strategies. origin: VCSDD --- # VCSDD Git Integration ## When to Activate - Running /vcsdd-commit command - Creating phase-completion commits - Tagging pipeline milestones ## Commit Message Format ``` vcsdd(): - Phase: Feature: Sprint: Gate: Beads: Iteration: Artifacts: - specs/behavioral-spec.md [modified] - evidence/sprint-1-red-phase.log [added] Traceability: - REQ-001 -> TEST-001 -> IMPL-001 [green] - REQ-002 -> TEST-002 [red, pending implementation] ``` ## Git Tag Format ``` vcsdd//phase-1a # Spec crystallization complete vcsdd//phase-1c # Spec gate passed vcsdd//phase-2a # Red phase complete vcsdd//phase-2b # Green phase complete vcsdd//phase-3-i1 # Adversary review iteration 1 vcsdd//phase-6 # Convergence achieved ``` ## Atomic Staging Stage all VCSDD artifacts atomically: ```bash git add -- .vcsdd/index.json .vcsdd/history.jsonl .vcsdd/active-feature.txt .vcsdd/features// [phase-scoped source/test/spec files] git commit -m "vcsdd(2b): my-feature - implementation (green phase)" git tag vcsdd/my-feature/phase-2b ``` Only stage files that belong to the active feature and current phase. If unrelated dirty files exist, stop and require a manual review instead of widening the stage set. ## Auto-Commit Safety Rules Auto-commit (VCSDD_AUTO_COMMIT=true) refuses to commit if: - Unrelated dirty files exist in worktree - Phase transition is invalid - No phase change detected since last commit