From cortex
This skill should be used to generate a Mermaid diagram of the reference file knowledge graph from See Also metadata — visual navigation aid for the reference tree.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex:graphThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**TL;DR**: Generate a Mermaid diagram showing all reference files and their See Also connections. Output to `references/GRAPH.md`.
TL;DR: Generate a Mermaid diagram showing all reference files and their See Also connections. Output to references/GRAPH.md.
Read every references/*.md file. For each:
Create a Mermaid graph LR diagram where:
Write to references/GRAPH.md:
# Reference Knowledge Graph
> Auto-generated by `cortex:graph`. Do not edit manually.
> Last generated: YYYY-MM-DD
```mermaid
graph LR
scoring["scoring.md"]
signals["signals.md"]
pipeline["pipeline.md"]
database["database.md"]
api-routes["api-routes.md"]
frontend["frontend.md"]
data-sources["data-sources.md"]
auth["auth.md"]
github-actions["github-actions.md"]
scoring -->|upstream| signals
scoring -->|schema| database
scoring -->|execution| pipeline
...
### 4. Present Summary
Show the user:
- Total nodes and edges
- Average connections per node
- Any isolated nodes (structural gaps)
- Whether any reference file has fewer than 3 connections (below minimum density)
## Execution
Use Read tool to scan each reference file. Parse See Also sections with pattern matching. Build the Mermaid syntax. Write to references/GRAPH.md. GitHub renders Mermaid natively, so the graph is browsable in the repo.
---
## See Also
- [validate-refs](../validate-refs/SKILL.md) — Validates links that this skill visualizes [related]
- [plan-audit](../plan-audit/SKILL.md) — Gates 14-15 use the same reference graph for coverage checks [consumer]
npx claudepluginhub crombieman/undercurrent-cortex --plugin cortexCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.