skills/vcsdd-coherence-validate/SKILL.md
# /vcsdd-coherence-validate — Coherence Graph Validation ## What Validate the CEG for structural integrity: 1. **Reference integrity** — all edge source/target IDs reference known nodes 2. **Cycle detection** — no circular dependencies in the dependency graph This is run automatically as part of the `GATE_PREREQUISITES['2a']` check when any spec frontmatter declares coherence metadata, or when `coherence.json` is already present. You can also invoke it manually at any time. ## When to use -
npx skillsauth add sc30gsw/vcsdd-claude-code skills/vcsdd-coherence-validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Validate the CEG for structural integrity:
This is run automatically as part of the GATE_PREREQUISITES['2a'] check
when any spec frontmatter declares coherence metadata, or when
coherence.json is already present. You can also invoke it manually at any time.
/vcsdd-coherence-scan to confirm graph integrityconst { refreshAndValidateCoherence } = require('./scripts/lib/vcsdd-coherence');
const featureName = /* active feature */;
const result = refreshAndValidateCoherence(featureName);
if (!result.active) {
// Coherence not active — nothing to validate
return;
}
const summary = result.summary;
If result.validation.ok === true:
✅ Coherence graph is valid
Nodes : <nodeCount> Edges : <edgeCount>
Green : <green> Amber : <amber> Gray : <gray>
If result.recoveredFromCorruption === true:
ℹ coherence.json was corrupted, so VCSDD saved coherence.json.bak and rebuilt the graph from current frontmatter before validating.
If result.validation.ok === false (cycles detected):
❌ Coherence validation failed: Circular dependency detected
Cycle: design:A -> design:B -> design:C -> design:A
To resolve:
1. Review the depends_on / depended_by declarations in the affected specs
2. Break the cycle by removing one of the edges or restructuring the dependency
3. Re-run /vcsdd-coherence-scan then /vcsdd-coherence-validate
If result.validation.ok === false (dangling references / placeholder nodes / invalid frontmatter):
❌ Coherence validation failed: Reference integrity errors
- Edge 3: unknown target node "design:missing-doc"
→ Add the missing node or fix the node_id reference in the spec frontmatter
result.validation.ok === true → proceed to Phase 2adocumentation
Use this skill when writing Phase 1b verification architecture documents. Provides purity boundary mapping, proof obligation design, and tier assignment guidance.
data-ai
Use this skill when creating or querying VCSDD Chainlink bead traceability. Provides bead creation patterns, chain traversal, and completeness validation.
data-ai
Display the full traceability chain for a VCSDD bead. Traverses the Chainlink graph from the given bead ID and shows all connected artifacts with status.
development
Run Phase 2a (test generation, Red phase) for the active VCSDD feature. Invokes vcsdd-builder to generate failing tests for all spec requirements. Records red phase evidence.