Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

omm-scan奥姆扫描

Agent Skill

omm-scan 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

1,023

下载量

169
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:omm-scan(奥姆扫描)
来源仓库:https://github.com/oh-my-mermaid/oh-my-mermaid
仓库路径:skills/omm-scan
安装命令:
npx skills add https://github.com/oh-my-mermaid/oh-my-mermaid --skill omm-scan
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oh-my-mermaid/oh-my-mermaid --skill omm-scan

简介

omm-scan 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。
  • omm-scan 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

omm-scan — Perspective-Based Architecture Scanner

Purpose

Analyze the codebase and generate .omm/ architecture documentation using perspective-driven recursive analysis.

  • A perspective is a top-level element — a distinct way to look at the architecture.
  • Each element in a diagram gets analyzed recursively. If it has internal structure, it becomes a child element (subdirectory with its own diagram). If not, it stays a leaf.
  • The filesystem determines nesting. Element IDs in diagrams match child directory names. The viewer resolves groups from the filesystem.

Prerequisites

command -v omm || npm install -g oh-my-mermaid

If the install fails, tell the user: "Please run npm install -g oh-my-mermaid in your terminal, then try again."


Step 0: Check Language

omm config language

Write field content (description, context, constraint, concern, todo, note) in the configured language. Default is English. Element IDs, directory names, and diagram node IDs are always English kebab-case.

Step 1: Explore the Codebase

Use Glob and Read to understand the project:

  • Read package.json, pyproject.toml, or equivalent manifests
  • List top-level directories to identify module boundaries
  • Read key entry points (main, index, app files)
  • Look for route definitions, service layers, database connections, external integrations

Step 2: Select Perspectives

From the catalog below, choose which perspectives are meaningful for this codebase.

Perspective Catalog

PerspectiveWhen to createWhat it answers
overall-architectureAlwaysWhat exists and how pieces relate
request-lifecycleAny server/APIHow a request enters and gets handled end-to-end
data-flowAny data processing, DB usageWhere data comes from, transforms, and lands
dependency-mapComplex module graphWhat depends on what, what's shared
external-integrationsExternal APIs/servicesWhat the system connects to and why
state-transitionsStateful features (frontend or backend)How state changes and what triggers it
route-page-mapFrontend with routingPage structure and navigation flow
command-surfaceCLI toolsCommand hierarchy and dispatch
extension-pointsPlugin/extension systemsExtension architecture and registry
pipelineML/data pipelinesStage topology and data flow
orchestrationEvent-driven/queue systemsPublisher, subscriber, broker topology
storage2+ storage systemsStorage topology (DB, cache, queue, object store)

Don't force perspectives that don't exist in the code.

Step 3: Generate Perspectives with Recursive Drill-Down

For each selected perspective, follow this recursive process:

3a. Write the perspective diagram

Element IDs match child directory names. The viewer resolves nesting from the filesystem.

omm write <perspective> diagram - <<'MERMAID'
graph LR
    renderer["Renderer\nsrc/renderer/"]
    renderer -->|"IPC invoke/on"| main-process["Main Process\nsrc/main/"]
    main-process -->|"spawn PTY"| engine-system["Engine System\nsrc/main/engine/"]
    main-process -->|"read/write JSON"| data-store["Data Store\nsrc/main/store.ts"]
    main-process -->|"xterm.js"| terminal-dock["Terminal Dock\nsrc/renderer/src/panel/"]
MERMAID

3b. Write the other 6 fields

Each as a separate omm write command: description, context, constraint, concern, todo, note.

3c. Recursive drill-down: analyze every element

For every element in the diagram:

  1. Analyze the code it represents (Glob + Read the relevant files/directories)
  2. Write description for every node — no exceptions. This creates the element directory. Optionally write other fields (context, constraint, concern, todo, note) if relevant — Write in the configured language. omm write <perspective>/<element-name> description - <<'EOF' (what this element does, which files/dirs it covers) EOF
  3. Decide leaf or group:

- Distinct internal components found → write a diagram and recurse deeper (it becomes a group) - No meaningful sub-components (single file, trivial wrapper, external system) → write remaining fields only (it stays a leaf)

  1. If group — write diagram and recurse: omm write <perspective>/<element-name> diagram - <<'MERMAID' graph LR (internal elements) MERMAID Then repeat step 3c for each element in this diagram.

Example recursion

overall-architecture (perspective)
  elements: renderer, main-process, engine-system, data-store, terminal-dock

  → analyze renderer (src/renderer/)
    → finds: App.tsx, components/, hooks/, stores/, world/
    → group → write diagram with: components, stores, world
      → analyze components → 15 .tsx files, no sub-structure → leaf
      → analyze stores → 4 zustand stores → leaf
      → analyze world → OfficeCanvas + PixiJS logic → leaf

  → analyze main-process (src/main/)
    → finds: ipc.ts, auth/, engine/, terminal-session-service.ts, store.ts
    → group → write diagram with: auth, engine, terminal-session
      → analyze auth → auth-service.ts, callback-server.ts → leaf
      → analyze engine → claude-code.ts, codex.ts → leaf

  → analyze data-store (src/main/store.ts)
    → single file → leaf

  → analyze terminal-dock (src/renderer/src/panel/)
    → TerminalDock.tsx, DockManager → leaf

Step 4: Summarize

Report what was created/updated and suggest omm view to view.

Diagram Rules

  • Element IDs must match the child directory name. Use kebab-case: main-process, data-store, terminal-dock.
  • Element labels use two-line format: name + file path, separated by \n: main-process["Main Process\nsrc/main/"] auth-service["Auth Service\nsrc/auth/service.ts"]
  • Every edge must have a meaningful label: A -->|"why this connection exists"| B
  • More elements in one diagram means you should recurse deeper.
  • Use graph LR for most diagrams, graph TD for hierarchies.
  • Use classDef for visual distinction when helpful: Style Color When to use external #585b70 Third-party services outside your codebase concern #f38ba8 Known risk or bottleneck entry #89b4fa Entry points (HTTP handler, CLI, queue consumer) store #a6e3a1 Persistent storage (DB, cache, file system) classDef external fill:#585b70,stroke:#585b70,color:#cdd6f4 classDef concern fill:#f38ba8,stroke:#f38ba8,color:#1e1e2e classDef entry fill:#89b4fa,stroke:#89b4fa,color:#1e1e2e classDef store fill:#a6e3a1,stroke:#a6e3a1,color:#1e1e2e

General Rules

  • Write each field as a separate omm write command. Each omm write must be its own Bash tool call.
  • Do not rewrite elements that haven't changed.
  • Do not create circular references. A child element must never reference its parent.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.85%
按下载量换算62

Claude

29.81%
按下载量换算50

Cursor

19.51%
按下载量换算33

Gemini CLI

9.19%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/oh-my-mermaid/oh-my-mermaid --skill omm-scan 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills