src/autoskillit/skills_extended/verify-diag/SKILL.md
Verify an architecture diagram against the actual codebase. Checks component existence, connection accuracy, and read/write directionality. Use when user says "verify diagram", "verify diag", "check diagram", or wants to validate diagram accuracy.
npx skillsauth add talont-org/autoskillit verify-diagInstall 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.
Verify an architecture diagram's factual accuracy against the actual codebase. Adapted from the dry-walkthrough methodology for diagram validation.
NEVER:
run_in_background: true is prohibited)ALWAYS:
This step runs BEFORE semantic verification. Extract every mermaid code block and check for syntax errors that would prevent rendering.
For each ```mermaid block, validate:
1. Node label quoting:
[...] node content must NOT contain unescaped double quotesA["value = "hello""] — inner quotes break the parserA["value = hello"] or A[value = hello][...] and (...) node definitions for " inside content2. Bracket balance:
[ has a matching ] on the same line (for node definitions)( has a matching ) on the same line([...]) stadium shapes have nested brackets — count outer pair3. Special characters in node labels:
() inside [...] labels break parsing — rephrase or remove| inside node labels conflicts with edge label syntax{} inside node labels conflict with rhombus/decision syntax# at start of label can be misinterpreted4. Edge label syntax:
-->|"label"| or -->|label| format5. Subgraph naming:
subgraph NAME ["Display Title"] — the ["..."] is valid mermaid syntaxsubgraph NAME [Display Title] without quotes is NOT valid if title has spaces6. Class definition syntax:
classDef lines must end with semicolons only if using shorthandclass A,B,C className; — verify referenced node IDs exist in the diagram7. Node ID rules:
end, subgraph, graph, flowchart) cannot be node IDsQuick validation approach:
For each mermaid block:
1. Extract all node definitions (ID[label], ID(label), ID{label}, ID([label]))
2. Check each label for unescaped quotes, pipes, unbalanced brackets
3. Extract all edge definitions, verify pipe-delimited labels are balanced
4. Extract all node IDs, check for reserved words and invalid characters
5. Extract all class assignments, verify referenced IDs exist as nodes
If syntax errors are found: Report them in a ### Rendering Errors section BEFORE the semantic findings. These are blocking — a diagram that won't render is worse than one with inaccurate connections.
Read the diagram file. Extract every verifiable claim:
For each named component, check the codebase:
Flag phantom components — things in the diagram that don't exist as discrete entities in code (e.g., showing an inline dict lookup as a separate "BuildKey" node).
This is the most important step. For EVERY arrow/connection in the diagram:
| Type | Description | Example | |------|-------------|---------| | READ | A reads/queries/receives from B | A calls B.get(), B returns data | | WRITE | A writes/mutates/sends to B | A calls B.save(data) | | READ+WRITE | Bidirectional data exchange | A calls B.process(input) → B returns output | | CALL | A invokes B, no significant data transfer | A calls B.init() |
Check arrow direction matches reality:
Assess relevance: Does the read/write distinction matter for this connection?
Report findings to terminal only. Use this structure:
## Diagram Verification: {diagram name}
**Status:** PASS | RENDER ERROR | NEEDS CORRECTIONS
**Mermaid Syntax:** {PASS | X errors found}
**Components:** {X}/{Y} verified
**Connections:** {X}/{Y} accurate
### Rendering Errors (if any — BLOCKING)
| Line | Error | Fix |
|------|-------|-----|
| {line in mermaid block} | {what breaks} | {how to fix} |
### Corrections Needed
1. **{Component/Connection}**: {what's wrong} → {what it should be}
2. ...
### Directionality Findings
| Connection | Diagram Shows | Actual | Impact |
|------------|--------------|--------|--------|
| A → B | A flows to B | A calls B, B returns result (bidirectional) | Low/Medium/High |
### Missing
- {significant omissions}
### Phantom Components
- {things in diagram that aren't discrete code entities}
Common patterns and how to represent them:
| Code Pattern | Correct Arrow | Why |
|-------------|---------------|-----|
| result = B.process(data) | A →|"calls"| B | Call direction; data flows both ways but call initiates from A |
| A.save(data, B) | A →|"writes"| B | A produces, B stores |
| data = B.read() | A →|"reads"| B | A consumes from B |
| for x in generator() | Gen →|"yields"| Consumer | Data flows from generator |
| A imports B | A →|"imports"| B | Dependency direction (module diagrams) |
| A.callback(B.on_event) | B -.->|"notifies"| A | Event/callback reverses apparent direction |
Spawn one Explore subagent per diagram. Each agent:
For multiple diagrams, launch agents in parallel.
development
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
data-ai
Create Uncertainty Representation visualization planning spec showing error bar definitions, distribution-aware alternatives, and multi-seed variance protocols. Statistical lens answering "How is uncertainty honestly represented?"
data-ai
Create Temporal Dynamics visualization planning spec showing axis scaling (linear vs log), smoothing disclosure, epoch/step alignment, run aggregation (mean + variance bands), early-stopping markers, and wall-clock vs step-count x-axis. Temporal lens answering "Are training dynamics shown clearly and honestly?"
data-ai
Create Narrative Story Arc visualization planning spec showing visual consistency across the report (same color = same model everywhere), logical figure progression, redundant figure detection, and narrative dependency between figures. Narrative lens answering "Do the figures tell a coherent story across the report?"