Turn complex codebases into clear, navigable architecture diagrams with Claude Code.
# Add to your Claude Code skills
git clone https://github.com/oh-my-mermaid/oh-my-mermaidGuides for using cli tools skills like oh-my-mermaid.
Last scanned: 11/28/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@vitest/mocker: Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "esbuild: esbuild allows arbitrary file read when running the development server on Windows",
"severity": "low"
},
{
"type": "npm-audit",
"message": "nanoid: nanoid: non-secure generators can loop indefinitely with negative size",
"severity": "high"
},
{
"type": "npm-audit",
"message": "picomatch: Picomatch: Method Injection in POSIX Character Classes causes incorrect Glob Matching",
"severity": "high"
},
{
"type": "npm-audit",
"message": "postcss: PostCSS has XSS via Unescaped </style> in its CSS Stringify Output",
"severity": "high"
},
{
"type": "npm-audit",
"message": "source-map-js: source-map-js allows event-loop denial of service through indexed source-map section offsets",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vite: Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vitest: Vulnerability found",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-11-28T21:48:06.436Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}oh-my-mermaid is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by oh-my-mermaid. Turn complex codebases into clear, navigable architecture diagrams with Claude Code. It has 3,404 GitHub stars.
oh-my-mermaid returned warnings in AgentsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/oh-my-mermaid/oh-my-mermaid" and add it to your Claude Code skills directory (see the Installation section above).
oh-my-mermaid is primarily written in TypeScript. It is open-source under oh-my-mermaid on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh oh-my-mermaid against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
English | Türkçe | 한국어 | 日本語 | 中文
Paste this in your terminal:
npm install -g oh-my-mermaid && omm setup
Then open your AI coding tool and use the /omm-scan skill:
/omm-scan
That's it. View the result:
omm view
omm scanned itself. This is what it found.
Integrating oh-my-mermaid into your project is designed to be frictionless and part of your daily AI coding workflow.
Whenever you start working on a project, ask your AI assistant to run /omm-scan. The agent will analyze your codebase and generate a .omm/ directory containing the architecture diagrams and descriptions.
Commit the .omm/ directory to your repository (e.g., via Git). This allows your entire team—and their respective AI assistants—to share a unified understanding of the architecture.
As you add new features or refactor code, periodically ask your AI to /omm-scan again to update the architecture. This ensures your documentation never drifts from reality.
Whenever you need to understand a subsystem or onboard a new team member, run omm view in your terminal to explore the architecture interactively.
Your AI analyzes the codebase and generates perspectives — different lenses on your architecture (structure, data flow, integrations...). Each perspective contains a Mermaid diagram and documentation fields.
Every node gets recursively analyzed. Complex nodes become nested child elements with their own diagrams. Simple ones stay as leaves. The filesystem reflects the tree:
.omm/
├── overall-architecture/ ← perspective
│ ├── description.md
│ ├── diagram.mmd
│ ├── context.md
│ ├── main-process/ ← nested element
│ │ ├── description.md
│ │ ├── diagram.mmd
│ │ └── auth-service/ ← deeper nesting
│ │ └── ...
│ └── renderer/
│ └── ...
├── data-flow/
└── external-integrations/
The viewer auto-detects nesting from the filesystem — elements with children render as expandable groups, others as nodes.
Each element carries up to 7 fields: description, diagram, context, constraint, concern, todo, note.
omm setup # Register skills with your AI tools
omm view # Open interactive viewer
omm export [path] -o architecture.md # Export diagrams as Markdown or Mermaid
omm config language ko # Set content language
omm update # Update to latest version
Run omm help for the full command list.
Add .omm/viewer.css to override viewer styles for a project. The file is optional and is served only by the local viewer. For example:
.node-path {
opacity: 1;
}
Skills are commands you run inside your AI coding tool (not the terminal). They start with /.
| Skill | What it does |
|---|---|
/omm-scan |
Analyze codebase → generate architecture docs |
/omm-push |
Login + link + push to cloud in one step |
You can store your architecture in the cloud via ohmymermaid.com.
omm login && omm link && omm push
It's private by default. Share with your team, or make it public like this example.
| Platform | Setup |
|---|---|
| Claude Code | omm setup claude |
| Codex | omm setup codex |
| Cursor | omm setup cursor |
| OpenClaw | omm setup openclaw |
| Antigravity | omm setup antigravity |
| Gemini CLI | omm setup gemini |
Run omm setup to auto-detect and configure all installed tools.
See docs/ROADMAP.md.
git clone https://github.com/oh-my-mermaid/oh-my-mermaid.git
cd oh-my-mermaid
npm install && npm run build
npm test
Issues and PRs welcome. Use Conventional Commits.