plugins/d-nd-core/skills/diagram-generator/SKILL.md
Generate conceptual diagrams from article content. Trigger when the operator says 'genera diagramma', 'diagram', 'visual spec', 'conceptual map', or when a page is created/updated and needs a structural visualization.
npx skillsauth add grazianoguiducci/d-nd-seed diagram-generatorInstall 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.
When an article is created or updated, this skill generates a conceptual diagram that captures the logical structure: key concepts, directional relations, and contextual copy for each node.
LLM mode (default): sends content to LLM API. Best results — understands narrative.
Requires: GODEL_API_KEY + GODEL_API_URL (or DIAGRAM_API_KEY + DIAGRAM_API_URL)
Structural mode: rule-based extraction from headers and text patterns. No API needed. Use when: offline, quick generation, or API unavailable.
# LLM mode
python diagram_generator.py --content article.md --json
# Structural mode
python diagram_generator.py --content article.md --structural --json
# From stdin
cat article.md | python diagram_generator.py --stdin --title "Article Title"
from diagram_generator import generate_diagram, generate_diagram_structural
spec = generate_diagram('Title', 'Content...', lang='it')
# spec = {type, entities: [{id, label, color, context, link}], interactions: [{from, to, type}]}
Every node's context field positions the observer:
Inclusive language: "we/our" not "you/tu". The visitor is on the same boat.
The first generation is a draft. Review, edit labels and relations, test with a fresh eye. 4 clear nodes > 7 cluttered nodes.
See DIAGRAM_GENERATOR_GUIDE.md in plugins/d-nd-core/scripts/.
$ARGUMENTS
testing
Closure reflection protocol. After a significant work block concludes (feature shipped, session ending, major commit landed, cross-node coordination resolved), runs a 10-question interview that extracts meaning, impact, and next questions — then emits multiple audience-specific artifacts (changelog, external editorial, AI integration docs, memory crystal, backlog seed). Turns implicit maturation into explicit narrative. Use at the end of meaningful work, not after trivial edits.
testing
The neutral form of the D-ND method. Meta-skill that recognizes context and orients toward the right specialization (cec, autologica, cascade, assertion-verifier, etc.). Activate at the start of a non-trivial work block or when input matches trigger words ('where are we', 'what here', 'orchestrate', 'connect', 'sieve this').
development
Five mechanical gates for any content publish pipeline with CMS + rendering layers. Prevents false security: 'API returned 200' does not mean 'visitor sees clean content'. Use when writing content to a multi-layer serving system (CMS API, static files, prerendered HTML, cached copies).
testing
Multi-node consultation protocol for high-leverage decisions. Dispatches the same question to N independent LLM/agent nodes in isolation, then synthesizes their responses into a summa that exposes convergence (high-confidence claims), dissensus (real uncertainty zones), and emergent points (insights no single node produced). Reduces single-node training bias. Supports recursive escalation for stable-state convergence. Use for decisions that propagate via A14 cascade — seed updates, crystallizations, advisory→mechanical promotions, high-visibility copy, lab result interpretation.