/gm-apprentice:publish-sitefrom gm-apprentice
Publishes a gm-apprentice TTRPG campaign vault as a static site on GitHub Pages or Cloudflare Pages. Guides non-technical GMs through setup, builds, updates, troubleshooting, and player change-request loops.
Ships in gm-apprentice. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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, the default, or github-pages) 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.
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:
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, the index itself Excluded, 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. A played session whose own index is Excluded is reported,
not asked about: excluding it may be deliberate. If the GM wants it
published, manifest apply --decide "<index>", then publish-played. 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):
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>.
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.player_site.folder: a site still to be set up. Run
capability 1.player_site.folder: capabilities 2 and 4 read the
folder from it; a relative value is relative to the vault.("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.
("update my site", "rebuild", "I've updated the vault")
gma publish update-pin --site <dir> — report its one line.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.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 save them, run
gma publish doctor --set-cloudflare-creds and hand the GM the line it
prints for their own terminal (never take the token in chat;
references/cloudflare-pages.md Step 2). 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.(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.
("I added a new entity type", "campaign-organizer was updated", "new folder in the vault", "pages missing after an update")
settings set the folder map whole and
settings add to the excluded folders, then npm run build.references/schema-reference.md).("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.
("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.
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.manifest diff).manifest apply (--publish, or --exclude
with a reason).Later publishes pick up new and removed files through capability
2's manifest diff.
("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.
("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/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/.gma table <vault> — runs tonight's session from the run sheet, a
page on the GM's computer (not a published site); gma llms table.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.
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.
references/change-request-coc.md (opens in a new tab)references/change-request-dnd.md (opens in a new tab)references/change-request-gurps.md (opens in a new tab)references/change-request-loop.md (opens in a new tab)references/cloudflare-pages.md (opens in a new tab)references/configuration.md (opens in a new tab)references/content-filtering.md (opens in a new tab)references/github-pages.md (opens in a new tab)references/gm-site.md (opens in a new tab)references/leak-findings.md (opens in a new tab)references/live-state-flush.md (opens in a new tab)references/prop-styles.md (opens in a new tab)references/schema-reference.md (opens in a new tab)references/setup-wizard.md (opens in a new tab)references/sheet-skins.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ttrpg, campaign-site, static-site, gm-apprentice, cloudflare-pages, github-pages
10 skills in this plugin
/campaign-organizerOrganize TTRPG campaign content into interlinked markdown files with relationship graphs and a chapter/session/scene hierarchy, in an Obsidian vault or plain folder. Use to organize campaign files, extract entities from campaign docs into linked notes, add wiki-links or relationship metadata, set up graph visualization, parse chapter outlines, or manage campaign structure. Trigger on 'organize my campaign', 'link my notes', 'graph my NPCs', 'campaign wiki', 'chapter structure', 'vault', 'fill in the missing pictures', or 'organize this' while working on TTRPG content./campaign-qaAudit and repair TTRPG campaign vault integrity: canon audits, timeline validation, name-similarity checks, clue redundancy, graph health and world-rule consistency, then a fix-or-dismiss decision with the GM on each finding. Use to check a campaign for contradictions, validate timeline consistency, find duplicate or confusingly similar names, verify the Three Clue Rule, audit graph health or orphans, run a full QA pass, fix canon errors, or clean up after a big session. Trigger on 'QA', 'audit', 'check for contradictions', 'timeline check', 'find duplicates', 'clue coverage', 'canon check', 'validate my vault', 'campaign health', 'integrity check', 'find plot holes', 'orphan check', 'world consistency', 'site faults', 'settings check', 'tidy the tones', 'tidy the threads', or 'anything broken in the vault?' while working on TTRPG content.npx claudepluginhub antthelimey/gm-apprentice --plugin gm-apprenticeOther plugins' skills for the same job