omm-push

GitHub

自动化将架构文档推送至 oh-my-mermaid 云端,涵盖登录、关联项目及推送全流程,并处理各类错误提示。

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

Trigger Scenarios

omm push push to cloud deploy architecture share architecture

Install

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

Use without installing

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

指定 Agent (Claude Code)

npx skills add oh-my-mermaid/oh-my-mermaid --skill omm-push -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-push",
    "description": "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\"."
}

omm-push — Cloud Push Workflow

Purpose

Automate the full workflow of pushing .omm/ architecture docs to the oh-my-mermaid cloud service.

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

Workflow

Step 1: Check Login Status

Run omm share via Bash. If it errors with "not logged in":

  • Tell the user: "You need to log in first."
  • Run omm login — this opens a browser for GitHub OAuth
  • Wait for the user to complete login

Step 2: Check Project Link

Run omm share via Bash. If it errors with "no project slug":

  • Run omm link — this sets the cloud project slug from the directory name
  • Confirm: "Linked to {slug}"

Step 3: Push

Run omm push via Bash.

Handle errors:

  • 401 Unauthorized: "Login expired. Run omm login again."
  • 403 Free plan limit: "Free plan allows 1 project. Upgrade at https://ohmymermaid.com/pricing"
  • Network error: "Cannot reach server. Check your connection."

Step 4: Report

On success, output:

  • Number of files uploaded
  • View URL: https://ohmymermaid.com/p/{slug}
  • Share URL (if Pro): "Run omm share to get the shareable link"

Rules

  • Always check login before pushing
  • Always check link before pushing
  • Do NOT skip steps — each depends on the previous
  • If any step fails, stop and report the error with guidance

Version History

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

Same Skill Collection

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

Metadata

Files
0
Version
38ccdb6
Hash
094efd4b
Indexed
2026-07-25 05:49

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 10:15
浙ICP备14020137号-1 $Гость$