mermaid-architecture-map
Skill0 starsChanged 4 months agoMITView on GitHub
Create concise Mermaid diagrams for architecture, data flow, request sequence, lifecycle state, dependencies, or trust boundaries in Markdown. Use when prose hides flow or ownership, user asks for Mermaid, repository needs GitHub-rendered diagram, or system boundary must be explicit.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- clear-explanationSkill
- creative-writingSkill
- dataset-triageSkill
- excalidraw-system-sketchSkill
- figma-to-uiSkill
- frontend-designSkill
- newsletter-growthSkill
- no-ai-slopSkill
- outreach-emailSkill
- presentation-builderSkill
- resume-helperSkill
- skill-authoringSkill
- stanford-researchSkill
- technical-writingSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Create smallest diagram that makes one relationship clear.
- Very specific: line 11
Use for exact flow, sequence, state, dependency, and boundary diagrams.
- Distinctive: line 33
Use short node labels and verb-led edges.
- Distinctive: line 51
No secrets or private values present.
- Distinctive: line 55
Use direct simple sentences.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create smallest diagram that makes one relationship clear.
Scope
Use for exact flow, sequence, state, dependency, and boundary diagrams. Use excalidraw-system-sketch for fuzzy spatial exploration, swimlanes, or rough before-and-after thinking.
Inputs
- Diagram question and audience.
- Verified components, actors, states, and edges.
- External systems, trust boundaries, secrets, and user-data paths.
- Target Markdown file or standalone
.mmdpath.
User or repository owns architecture facts. Label inference and unknowns.
Workflow
- State one question diagram answers.
- Pick simplest type:
flowchart LR: architecture, ownership, boundaries.sequenceDiagram: ordered request or agent flow.stateDiagram-v2: lifecycle and transitions.graph TD: dependency hierarchy.
- Include only nodes needed for question.
- Group system and trust boundaries.
- Label external services and secret/user-data entry points. Never include secret values.
- Use short node labels and verb-led edges.
- Save
.mmd; embed in Markdown when requested.
Fallbacks
- Missing facts: draw verified subset and list unknown edges.
- Diagram becomes dense: split by question, not arbitrary file count.
- Spatial grouping matters more than exact flow: route to Excalidraw.
- Renderer lacks feature: use simpler supported syntax.
Verify
- Mermaid syntax renders.
- Brackets and quotes balanced.
- Labels avoid unsupported Markdown.
- Direction and edge labels readable.
- Boundaries and external systems explicit.
- Diagram fits PR review without excessive detail.
- No secrets or private values present.
Writing
Use direct simple sentences. Skip rhetorical flourishes. Avoid X-not-Y contrasts, self-answering rhetorical questions, em dashes, alliterative three-part phrases, vague inspirational pivots, unsourced claims, and unverified quotes.
Output
Return .mmd or embedded Mermaid block plus short assumptions/open-questions note when needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

