with one click
omm-view
// Start the omm web viewer to explore architecture diagrams in the browser. Use when the user says "omm view", "open viewer", "show diagrams", "view architecture", or "open architecture".
// Start the omm web viewer to explore architecture diagrams in the browser. Use when the user says "omm view", "open viewer", "show diagrams", "view architecture", or "open architecture".
| name | omm-view |
| description | Start the omm web viewer to explore architecture diagrams in the browser. Use when the user says "omm view", "open viewer", "show diagrams", "view architecture", or "open architecture". |
| argument-hint | [--port <port>] |
Launch the interactive web viewer so the user can explore .omm/ architecture diagrams in their browser.
Ensure the omm CLI is available:
command -v omm || npm install -g oh-my-mermaid
If the install command fails (permission denied), tell the user:
"Please run npm install -g oh-my-mermaid in your terminal, then try again."
omm list
If no classes found, tell the user:
"No architecture docs found. Run /omm-scan first to generate them."
Then stop.
omm view
If the user specified a port:
omm view --port <port>
Tell the user the viewer is running and provide the URL (default: http://localhost:3000).
The viewer auto-refreshes when .omm/ files change.
/omm-scan instead of starting an empty viewer.omm/ filesScan codebase architecture and generate/update .omm/ documentation. Use when the user says "omm scan", "scan architecture", "update architecture", "refresh diagrams".
Push architecture docs to oh-my-mermaid cloud. Handles login, link, and push workflow with error guidance. Use when the user says "omm push", "push to cloud", "deploy architecture", or "share architecture".