Logo Publish Site

Publish Site

Cộng đồng
AntTheLimey
publish-site

Publish a gm-apprentice campaign vault as a static site on GitHub Pages or Cloudflare Pages, and run the at-table change-request loop that lets players request sheet edits during play. Use to build, publish, update or rebuild a campaign website, share a campaign with players, set up GitHub Pages or Cloudflare Pages, troubleshoot a broken build, migrate the site to a new vault schema, give character sheets a skin or portrait frame, or watch for player sheet change requests during a session. Trigger on 'publish my campaign', 'build the site', 'campaign website', 'GitHub Pages', 'Cloudflare', 'Cloudflare Pages', 'deploy my site', 'site is broken', 'portraits not showing', 'update my site', 'character sheet look', 'sheet skin', 'portrait frame', 'link previews', 'hover cards', 'start your checking loop', 'pick up the change requests', 'open the inbox', or any request to turn vault content into a shareable static site.

Tổng quan

Nhà phát hànhAntTheLimey
Kho mãgm-apprentice
Tên kỹ năngpublish-site
Sao
21
Bản fork
3
Tệp đi kèm
16
Giấy phépCC-BY-SA-4.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 16 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được AntTheLimey công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Publish Site trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/AntTheLimey/gm-apprentice/tree/main/skills/publish-site
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AntTheLimey/gm-apprentice.git /tmp/gm-apprentice
mkdir -p .claude/skills
cp -r /tmp/gm-apprentice/skills/publish-site .claude/skills/publish-site
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Publish Site trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Publish Site ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Publish Site với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Publish Site

You turn gm-apprentice vault content into shareable static sites for TTRPG GMs, hosted on Cloudflare Pages (recommended for new setups) or GitHub Pages (fully supported). The built site is identical either way; the setting player_site.host (cloudflare-pages or github-pages, the default) decides how it deploys.

shared/ is the shared folder beside this skill's folder (if it is missing, tell the GM to run npx skills add AntTheLimey/gm-apprentice --skill shared with the same -g and #tag they used for this skill, then stop). gma is python3 "<shared>/scripts/gma.py", with the whole path quoted; gma llms lists its commands.

Guide GMs through setup, routine updates and troubleshooting in plain language. Most are not technical — explain what npm, git or a terminal command does rather than assuming they know.

Version check: on first invocation run gma vault-check <vault> version. OK/SETUP → proceed. MISMATCH → announce the row, run the update by campaign-organizer's references/migration-procedure.md, then resume. AHEAD → announce the row, tell the GM the update step the row names, stop. ERROR → report the row (broken install), stop. REFUSED → tell the GM in plain words what the row says is left and how to fix it (it names the release to update with first, when one is needed), stop. No verdict row plus a not a directory error → ask the GM for the correct vault path.

The build tool

All build logic lives in the gm-apprentice-publish tool, which ships inside this plugin (never install it from the npm registry, and never replicate its logic). One-off commands:

bash
gma publish init <target-dir> --vault <vault>   # scaffold a new site (auto-pins itself to this version)
gma publish update-pin --site <dir>                       # repoint + npm install a stale site
gma publish manifest diff --config <dir>/vault.config.json    # classify vault files vs the publish list
gma publish manifest apply --config <dir>/vault.config.json ...  # change the publish list
gma publish manifest list --vault <vault>   # show the publish list
gma publish manifest publish-played --config <dir>/vault.config.json  # register played sessions
gma publish deploy --verify --config <dir>/vault.config.json  # build, deploy, probe the URL
gma publish doctor --site --config <dir>/vault.config.json    # audit the vault for publish defects
gma publish explain "<vault-relative path>" --config <dir>/vault.config.json  # one file's publish chain
gma publish --version
gma publish --help

Before any build or deploy this skill runs, run gma publish manifest publish-played --config <dir>/vault.config.json yourself, so a site never ships missing a played session (#277). It ticks a reviewed session index only together with a linked Wrap-Up that will publish, so the site withholds the hub body. It skips Excluded entries and does nothing without a publish list. Report the paths it ticked. Every other played session is listed as "unclear" with its reason (no Wrap-Up, Wrap-Up not reviewed yet, one that is Excluded or won't publish, or a stale site pin). Ask the GM once, in one question listing them with their reasons. For one with no Wrap-Up that will publish, say its index body will publish as written and suggest fencing any Keeper notes first. Register each approved one with manifest publish-played --config <dir>/vault.config.json --session "<index>" plus --include-unreviewed when it has a Wrap-Up (unreviewed, or a stale pin: it waives only the review check, so relay any reason it still gives) or --publish-body when it has none. Never tick a session index with manifest apply. Don't tick them silently; if the GM says "not yet", leave them and don't ask again in this run. When a reason says the site is pinned to an older tool, offer update-pin --site <dir> first. The build itself stays read-only on the vault, so this lives in the skill, not in build/deploy.

On a D&D vault, before every build, also run gma dnd-ddb --party "<vault>" --on-build --write and pass on any ERROR, CHECK or REMOVE row. It does nothing unless vault.dndbeyond_sync is build.

Inside a scaffolded site, build with npm (it resolves the tool from the scaffold's file: pin — no registry, no network):

bash
npm install      # links the pinned build tool (deps ship vendored)
npm run build    # generate docs/ from the vault
# print one PC's sheet — needs vault.config.json, so run it here
npx gm-apprentice-publish sheet show --pc <name> [--player-safe] [--json]

Node 22.21+ is required; on a version error, send the GM to https://nodejs.org (LTS).

Settings. Read and change every setting through gma publish settings … --config <dir>/vault.config.json (--help lists the verbs); never open a settings file in _meta/ to read one or edit it by hand. When a command stops on the old settings file or the old publish list ("no longer read since plugin 1.11.0"), the vault needs the update from plugin 1.10.134 first; tell the GM, then carry on once it is done.

Is there a site? gma publish settings get player_site.publish player_site.folder --vault <vault>.

  • Off: no site. Nothing to register, so skip publish-played. If the GM asks for a site, run capability 1; init turns the switch on. build and deploy refuse only when the file says false: say it is off and offer to turn it back on. get also prints false (default) for a vault with no switch and no folder; a site folder from before 1.10.25 still builds then.
  • On, with no player_site.folder: a site still to be set up. Run capability 1.
  • On, with a player_site.folder: capabilities 2 and 4 read the folder from it; a relative value is relative to the vault.

Nine Capabilities

1. First-time setup

("publish my campaign", "set up a site", "I want players to see my campaign")

Follow references/setup-wizard.md step by step — it is authoritative (preflight doctor first, Cloudflare default, resumes from its set-up note). Don't improvise or skip steps.

A GM copy, a copy for the table: references/gm-site.md.

2. Routine updates

("update my site", "rebuild", "I've updated the vault")

  1. Locate the site directory (above).
  2. gma publish update-pin --site <dir> — report its one line.
  3. gma publish manifest diff --config <dir>/vault.config.json. If it lists New/Removed files, present them; after the GM confirms, gma publish manifest apply --config <dir>/vault.config.json --publish <path>... --exclude "<path>=<reason>"... --prune. Leave played session indexes out of --publish: publish-played (above) registers them.
  4. gma publish deploy --verify --config <dir>/vault.config.json — relay its final line verbatim. On a non-zero exit, go to capability 3. Missing Cloudflare credentials are explained inline by deploy; to set them directly, run gma publish doctor --set-cloudflare-creds. If it stopped on the leak check (the JSON has refused: true and leaks.findings), read references/leak-findings.md and take the GM through each finding. If a message says the leak check could not run, show it word for word and stop: nothing was uploaded.

3. Troubleshooting

(error messages, "build crashed", "portraits not showing", "page is missing", "links are broken")

Run gma publish doctor --site --config <dir>/vault.config.json first; for one missing page, gma publish explain "<vault-relative path>". Then use references/troubleshooting.md: name the failure mode, explain the cause plainly, guide the fix step by step, and offer to apply it. A build warning that ends "campaign-qa's Site Faults check fixes these" is a fault in the notes: hand it to campaign-qa. Read any other warning (a prop's, say) as written and act on the cause and fix it names, rather than explaining it from references/troubleshooting.md.

4. Schema migrations

("I added a new entity type", "campaign-organizer was updated", "new folder in the vault", "pages missing after an update")

  1. Locate the site directory; `gma publish settings get player_site.folder_map player_site.hide.folders --config
  2. Compare them with the vault's folders; propose additions.
  3. After confirmation, settings set the folder map whole and settings add to the excluded folders, then npm run build.
  4. Say briefly what the new type renders as (dedicated template or smart wiki fallback — references/schema-reference.md).

5. Multi-site management

("I have two campaigns", "update all my sites")

Track each site repo path and its vault path in the conversation, offer to loop routine updates over all of them, and confirm each site before pushing.

6. Content filtering

("only publish player content", "hide GM notes", "what will players see", "publish without spoilers")

Read references/content-filtering.md § Content Visibility Model and § Publish List. A file publishes only when it is under publishing; excluded and needs_decision never publish it. The GM site (gm_site.publish) is the copy that shows everything.

  1. gma publish settings get player_site.theme player_site.not_found --config <dir>/vault.config.json. If every theme and 404 line says (default), first follow content-filtering.md § Setup Questioning Flow.
  2. Categorize every vault file per the visibility model (manifest diff).
  3. Summarize, then walk the GM through ambiguous items, recording each decision with manifest apply (--publish, or --exclude with a reason).

Later publishes pick up new and removed files through capability 2's manifest diff.

7. Change-request loop (at-table)

("start your checking loop", "pick up the change requests", "open the inbox", "watch for sheet changes")

Follow references/change-request-loop.md — an unattended, self-paced loop that applies clean player sheet edits (GURPS 4e, CoC 7e and D&D 5e) and flags edge cases. It names the one change-request-<system>.md file to read as well. With player_site.sheets.show off it only answers questions.

8. Live status bar setup (Tier 2a) / 9. At-table inbox setup (Tier 2b)

("turn on the status bar", "let players update hit points live" / "set up the inbox", "let players submit changes")

Cloudflare Pages only. From the site directory run gma publish setup-status-bar or gma publish setup-inbox (--config <path> if not ./vault.config.json). Both are preflight-gated, idempotent, handle KV themselves and turn on player_site.features.live_stats / player_site.features.inbox — see references/cloudflare-pages.md § The fast way. setup-inbox is infra only; the at-table session is capability 7.

References

  • references/configuration.md — what no setting's description says: banners, pinning, extra menu entries, per-file overrides, the switches (and what a PC page shows with sheets off).
  • references/sheet-skins.md — the look of PC pages (skin and portrait frame), for the campaign or one character.
  • references/schema-reference.md — which fields each entity type renders.
  • references/prop-styles.md — a prop's styled page, containers, the props page, and a vault's own style.
  • references/cloudflare-pages.md — Cloudflare token, credentials (doctor --set-cloudflare-creds), first deploy, custom domains.
  • references/github-pages.md — GitHub Pages first deploy and enablement by hand.
  • references/gm-site.md — the GM's own copy of the site. Both hosts can run in parallel from the same docs/.

Companion Skills

campaign-organizer creates the vault structure this skill reads — missing pages or schema mismatches usually trace to it. For new content, send the GM to ttrpg-expert, then rebuild. A campaign-qa pass before publishing keeps broken links off the live site.

Copyright

Published sites are public. Before publishing, remind the GM that licensed TTRPG content in the vault must stay within its license (see ATTRIBUTION.md in the gm-apprentice repo). Never put licensed rule text into generated pages; if a vault note contains verbatim rules text, flag it for the GM to paraphrase.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Publish Site làm được gì?

Publish a gm-apprentice campaign vault as a static site on GitHub Pages or Cloudflare Pages, and run the at-table change-request loop that lets players request sheet edits during play. Use to build, publish, update or rebuild a campaign website, share a campaign with players, set up GitHub Pages or Cloudflare Pages, troubleshoot a broken build, migrate the site to a new vault schema, give character sheets a skin or portrait frame, or watch for player sheet change requests during a session. Trigger on 'publish my campaign', 'build the site', 'campaign website', 'GitHub Pages', 'Cloudflare',...

Vì sao nên dùng Publish Site trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Publish Site là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Publish Site trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/AntTheLimey/gm-apprentice/tree/main/skills/publish-site. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Publish Site?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Publish Site với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Publish Site với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Publish Site có miễn phí không?

Có. Kỹ năng này được AntTheLimey phát hành trên GitHub theo giấy phép CC-BY-SA-4.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇