Skill deps graph
Skill roronoazoroshao369/vibe-coding-os/skills/core/skill-deps-graph
Build a dependency graph of skills based on cross-reference extraction. Outputs JSON, Mermaid diagram, or stats. Identifies orphan skills and most-referenced skills.From its SKILL.md
npx -y skills add roronoazoroshao369/vibe-coding-os --skill skill-deps-graphAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.1 KB, 920 tokens by cl100k_base, as published. Nobody here has run it
Skill: Skill Deps Graph
Purpose
Map how skills reference each other so you can identify orphan skills (no incoming refs), find foundational skills (most referenced), and visualize the dependency structure for docs, audits, and refactor planning.
The graph is derived from cross-reference links in skill content (e.g. See skills/core/quality-execution-contract/SKILL.md), not from a separate manifest. This keeps the graph in sync with what skills actually say about their dependencies.
When to use
- Auditing which skills are foundational vs. leaf
- Identifying orphan skills for retirement or promotion
- Planning refactors (what breaks if X is renamed?)
- Writing docs that show the skill ecosystem
- Detecting circular dependencies
Do NOT use for:
- Runtime dependency resolution (skills are markdown, not code)
- Build graph (no build step in this repo)
- Test execution order (tests run independently)
Inputs
- All SKILL.md files under
skills/ - Optional: format specifier (json | mermaid | stats)
Workflow
- Run stats:
node scripts/skill-deps-graph.mjs stats— see node count, edge count, top references, orphans - Inspect orphans: list of skills with 0 incoming refs — candidates for retirement or promotion
- Inspect foundations: top in-degree skills — usually safe to refactor carefully (lots of dependents)
- Generate Mermaid:
node scripts/skill-deps-graph.mjs mermaid— paste into docs/README for ecosystem map - Generate JSON:
node scripts/skill-deps-graph.mjs json > deps.json— feed to other tools - Compare over time: run before/after refactor; diff JSON to see what changed
Example: Find orphans before refactor
node scripts/skill-deps-graph.mjs stats | grep -A 20 "Orphan"
Example: Embed Mermaid in docs
node scripts/skill-deps-graph.mjs mermaid > /tmp/deps.md
echo "## Skill Dependency Graph" >> docs/architecture.md
cat /tmp/deps.md >> docs/architecture.md
Outputs
jsonformat: full{nodes: [], edges: []}graphmermaidformat: Mermaidgraph TDsyntax, paste into any markdown viewerstatsformat: summary with most-referenced skills + orphan list- Exit code 0 on success (this skill never fails — just reports)
Failure modes
- Many orphans — normal for a young ecosystem; review each before retiring (some may be intentional "leaf" skills)
- No edges — if regex fails to match cross-references, edges will be empty; check format with
node scripts/skill-deps-graph.mjs json - Circular references — possible but not harmful; the graph handles cycles (Mermaid renders them)
- Path normalization mismatches — refs like
skills/core/foo/may not matchskills/core/goal-driven-execution/SKILL.md; script normalizes both - Large graphs — 100+ skills may produce unreadable Mermaid; use stats first
Verification checklist
- Stats output shows non-zero nodes (or zero if no skills)
- At least one edge detected (if skills reference each other)
- Orphan list matches manual spot-check of 3-5 skills
- Mermaid output renders in a Markdown viewer (paste into GitHub README preview)
- JSON output is valid (
jq . deps.json) - No false edges from regex over-matching (review edges by hand for 5)
Cross-references
- See
skills/core/skill-content-search/SKILL.md— for finding related skills before checking deps - See
skills/core/docs-author/SKILL.md— for documenting the dependency graph - See
scripts/build-reference-index.mjs— for the broader reference index - See
scripts/skill-deps-graph.mjs— source code
Review cadence
- Quarterly: run stats, review orphan count and top references
- On skill retirement: rerun graph to confirm no broken edges remain
- On major refactor: archive the previous graph JSON for diff comparison
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most diagrams charts skills give in 920 tokens
Counted across 397 of the 418 authors here whose files we hold, read 2026-09-06
- Quote labels containing special charactersin 18 of 397, across 17 files
- Choose the right diagram type for the datain 15 of 397, across 13 files
- Create a detailed Mermaid diagramin 12 of 397, across 11 files
- Validate Mermaid syntax before outputin 11 of 397, across 9 files
- Wrap diagrams in fenced Mermaid code blocksin 11 of 397
- Read the reference file for the chosen diagram typein 10 of 397, across 6 files
- Label every connection descriptivelyin 8 of 397, across 7 files
- Use stateDiagram-v2 for state diagramsin 7 of 397
- Declare the diagram type on the first linein 7 of 397
- Keep one concept per diagramin 7 of 397
- Cap diagrams at 15 nodes and split over 20in 7 of 397
- Describe the diagram before generating itin 7 of 397
Said here and by no other author read
- Run stats to see node, edge, and orphan counts
- Inspect orphans as candidates for retirement or promotion
- Inspect top in-degree skills before refactoring them
- Generate JSON output to feed other tools
- Diff graph JSON before and after refactors
- Check JSON output when edges come back empty
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.