Skip to content

feat: add c4-diagram skill#3

Merged
dimdasci merged 3 commits into
mainfrom
feat/c4-diagram-skill
Jun 19, 2026
Merged

feat: add c4-diagram skill#3
dimdasci merged 3 commits into
mainfrom
feat/c4-diagram-skill

Conversation

@dimdasci

Copy link
Copy Markdown
Owner

Summary

Adds a new Agent Skill for producing C4 software architecture diagrams in Mermaid notation.

What's included

  • skills/c4-diagram/SKILL.md — core instructions: rendering primitives, workflow, hard rules, anti-patterns
  • scripts/validate_mermaid.mjs — syntax validator using mermaid.parse() with loose security level
  • 6 validated diagram templates — context, container, component, deployment, dynamic, landscape
  • Reference docs — C4 abstractions, diagram selection guide, anti-patterns catalog, Mermaid gotchas

Key design decisions

  • Uses flowchart + subgraphs exclusively (not experimental C4* syntax which breaks across Mermaid versions)
  • HTML-label pattern encodes C4 metadata (stereotype, technology, responsibility) directly in nodes
  • Validation script catches syntax errors AND banned keywords (--strict mode)
  • Progressive disclosure — SKILL.md is 231 lines; heavy references load on demand

Also in this PR

  • README reframed as a multi-skill solution architecture repo
  • .gitignore updated for node_modules

dimdasci added 3 commits June 19, 2026 19:06
Agent skill for producing C4 architecture diagrams in Mermaid notation.
Uses flowchart + subgraphs (not experimental C4* syntax per bproxy lessons).

Includes:
- SKILL.md with rendering primitives, workflow, and hard rules
- validate_mermaid.mjs script (mermaid.parse with loose security)
- 6 validated diagram templates (context, container, component,
  deployment, dynamic, landscape)
- Reference docs: abstractions, diagram selection, anti-patterns,
  mermaid gotchas
Extends from single distill-knowledge skill to a collection of skills
for solution architecture tasks. Adds c4-diagram overview, shared design
principles, and per-skill quick examples.
@dimdasci
dimdasci merged commit ccc03bf into main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant