skills/arch-mmd/SKILL.md
Creates/updates an ARCHITECTURE.mmd file mapping out the codebase/product. Use whenever the user asks to see the architecture of the codebase/product or when the architecture changes and the current ARCHITECTURE.mmd file is out of date.
npx skillsauth add aravhawk/claude-code-utils arch-mmdInstall 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.
Create or update an ARCHITECTURE.mmd Mermaid diagram that maps out the codebase's high-level architecture. The goal is a clean, readable overview — not an exhaustive map of every file.
Scan the project to understand its architecture at a high level:
Use graph TD (top-down) as the default direction. Use graph LR only if the architecture is clearly pipeline-shaped.
The diagram should be immediately readable on a single screen. Think of it as an architecture overview you'd sketch on a whiteboard — not a full system blueprint.
subgraph — they add visual clutter and nesting complexity. Use color coding to group related nodes instead.Include the file/module name and a brief description using <br/> for multi-line labels:
ENGINE["engine.py<br/>CodeLoader + Orchestrator"]
CLI["cli.py<br/>Arg parsing + validation"]
For simple/obvious nodes, a single-line label is fine:
DB[(PostgreSQL)]
Keep labels short — max ~5-6 words per line.
Use short, uppercase IDs: CLI, ENGINE, AUTH, DB, API
--> for standard flow-->|"REST"|, -->|"WebSocket"|& fan-in syntax when multiple nodes feed into one target:P1 & P2 & P3 --> AGENT
styleColor-code nodes by their role to make the diagram scannable at a glance. Pick a small, consistent palette (4-6 colors max). Always include color:#fff for readability.
Role-to-color suggestions (adapt to the project):
| Role | Color | Example |
|---|---|---|
| Entry point / user-facing | #e74c3c (red) | CLI, UI, API gateway |
| Core engine / orchestrator | #2980b9 (blue) | Main engine, coordinator |
| Agent / processor | #8e44ad (purple) | Workers, agents, handlers |
| External service / API | #e67e22 (orange) | Third-party APIs, LLMs |
| Output / result | #27ae60 (green) | Reports, exports, responses |
| Infrastructure / runtime | #16a085 (teal) | Runners, browsers, terminals |
Example:
style ENGINE fill:#2980b9,color:#fff
style REPORT fill:#27ae60,color:#fff
["Label"] — default rectangle for most components[(Database)] — databases and data stores only(["Label"]) — stadium shape for entry points (optional, use sparingly)ARCHITECTURE.mmd in the project rootARCHITECTURE.mmd already exists, read it first, then update it to reflect the current state — don't start from scratch unless the existing diagram is fundamentally wrongReadability over completeness — this is the #1 rule.
<br/> in labels so someone unfamiliar can understand each node's rolestyle directives is incompletedevelopment
Production-readiness audit covering linting, security, edge cases, and deployment checks. Only trigger when the user explicitly says "run prod-ready workflow" — do not run proactively.
development
Complete API for Google NotebookLM - full programmatic access including features not in the web UI. Create notebooks, add sources, generate all artifact types, download in multiple formats. Activates on explicit /notebooklm or intent like "create a podcast about X", "install notebooklm", "add notebooklm to cowork"
tools
Commits with perfect messages. Use when making a commit.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.