omm-view

GitHub

启动交互式 Web 查看器,用于在浏览器中探索 .omm/ 架构图表。支持验证依赖、检查文件存在性、指定端口及报告运行状态,辅助用户可视化系统架构。

skills/omm-view/SKILL.md oh-my-mermaid/oh-my-mermaid

Trigger Scenarios

omm view open viewer show diagrams view architecture open architecture

Install

npx skills add oh-my-mermaid/oh-my-mermaid --skill omm-view -g -y
More Options

Use without installing

npx skills use oh-my-mermaid/oh-my-mermaid@omm-view

指定 Agent (Claude Code)

npx skills add oh-my-mermaid/oh-my-mermaid --skill omm-view -a claude-code -g -y

安装 repo 全部 skill

npx skills add oh-my-mermaid/oh-my-mermaid --all -g -y

预览 repo 内 skill

npx skills add oh-my-mermaid/oh-my-mermaid --list

SKILL.md

Frontmatter
{
    "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>]"
}

omm-view — Architecture Viewer

Purpose

Launch the interactive web viewer so the user can explore .omm/ architecture diagrams in their browser.

Prerequisites

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."

Steps

Step 1: Verify .omm/ exists

omm list

If no classes found, tell the user: "No architecture docs found. Run /omm-scan first to generate them." Then stop.

Step 2: Start the viewer

omm view

If the user specified a port:

omm view --port <port>

Step 3: Report

Tell the user the viewer is running and provide the URL (default: http://localhost:3000).

The viewer auto-refreshes when .omm/ files change.

Rules

  • Always check for existing classes before starting the viewer
  • If no classes exist, suggest /omm-scan instead of starting an empty viewer
  • The viewer is read-only — it does not modify .omm/ files

Version History

  • 38ccdb6 Current 2026-07-25 05:49

Same Skill Collection

skills/omm-push/SKILL.md
skills/omm-scan/SKILL.md

Metadata

Files
0
Version
38ccdb6
Hash
5e1eb902
Indexed
2026-07-25 05:49

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 03:22
浙ICP备14020137号-1 $Carte des visiteurs$