Mofa publish

From mofa-org/mofa-skills · View interactive version

Mofa publish is an AI agent skill from the GitHub repository mofa-org/mofa-skills. Deploy static sites to GitHub Pages or Mac Mini hosting. Triggers: mofa publish, deploy site, publish website, 发布网站, 部署网页, github pages, deploy to mini, host website, 上线, push to pages, mofa deploy, 发布到GitHub.

How to use this skill

Skill file

mofa-publish

Deploys a built static site to GitHub Pages or Mac Mini local hosting. Handles the full workflow: repo creation, branch setup, Pages configuration, file transfer, and verification.

Use the bundled helper for deterministic deployments:

bash mofa-publish/scripts/publish_site.sh \
  --site-dir ./docs \
  --target github-pages \
  --slug 3b1b-calculus \
  --repo ymote/3b1b-calculus

Targets at a glance

| Target | Invocation | URL shape |

|----------------|-----------------------------------------------------------------------------------|--------------------------------------------|

| github-pages | --target github-pages --slug <name> --repo <owner>/<name> | https://<owner>.github.io/<repo-name>/ |

| mini | --target mini --slug <name> --mini-host mini1\|mini3 | https://crew.ominix.io/sites/<slug>/ |

For GitHub Pages, the public path is derived from the repo name (not slug) — set slug to match the repo basename unless you have a reason not to. Mini deploys land under the Caddy file_server root and need no proxy config for static sites.

When to consult docs/

The skill ships with deeper references under docs/ — read them on demand:

Common pitfalls

Security

Bundled Assets

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.