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".
Add this skill
npx mdskills install oh-my-mermaid/omm-pushWell-structured cloud deployment workflow with clear error handling and user guidance
1---2name: omm-push3description: 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".4---56# omm-push — Cloud Push Workflow78## Purpose910Automate the full workflow of pushing .omm/ architecture docs to the oh-my-mermaid cloud service.1112## Prerequisites1314Ensure the `omm` CLI is available:1516```bash17command -v omm || npm install -g oh-my-mermaid18```1920If the install command fails (permission denied), tell the user:21"Please run `npm install -g oh-my-mermaid` in your terminal, then try again."2223## Workflow2425### Step 1: Check Login Status2627Run `omm share` via Bash. If it errors with "not logged in":28- Tell the user: "You need to log in first."29- Run `omm login` — this opens a browser for GitHub OAuth30- Wait for the user to complete login3132### Step 2: Check Project Link3334Run `omm share` via Bash. If it errors with "no project slug":35- Run `omm link` — this sets the cloud project slug from the directory name36- Confirm: "Linked to {slug}"3738### Step 3: Push3940Run `omm push` via Bash.4142Handle errors:43- **401 Unauthorized**: "Login expired. Run `omm login` again."44- **403 Free plan limit**: "Free plan allows 1 project. Upgrade at https://ohmymermaid.com/pricing"45- **Network error**: "Cannot reach server. Check your connection."4647### Step 4: Report4849On success, output:50- Number of files uploaded51- View URL: `https://ohmymermaid.com/p/{slug}`52- Share URL (if Pro): "Run `omm share` to get the shareable link"5354## Rules5556- Always check login before pushing57- Always check link before pushing58- Do NOT skip steps — each depends on the previous59- If any step fails, stop and report the error with guidance60
Full transparency — inspect the skill content before installing.