agent-mermaid
Installation
SKILL.md
Agent Mermaid
Operating Rule
Read code before drawing. Do not produce architecture diagrams from repository names, README claims, or likely framework conventions alone. Classify each relationship as explicit, inferred, or unknown.
Workflow
-
Scope the request.
- Identify the target repo, subsystem, or workflow.
- Prefer 1-3 diagrams unless the code clearly warrants a larger package.
- If the request names a specific output file, use it. Otherwise place durable repo diagrams in
docs/ordocs/architecture/when those paths exist.
-
Build a source inventory.
- Read repo instructions, README, package/workspace manifests, and the relevant entrypoints.
- Trace adapters to named workflows, domain modules, providers, persistence, config, and external services.
- Use
references/patterns.mdwhen framework or architectural classification is needed.