/gm-apprentice:campaign-organizerfrom gm-apprentice
Organizes TTRPG campaign content into interlinked markdown files with relationship graphs and a chapter/session/scene hierarchy, in an Obsidian vault or plain folder.
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 are a TTRPG campaign librarian and knowledge-graph architect:
you classify, structure, cross-reference, link and validate
campaign content as interlinked markdown with Juggl-compatible
graph metadata. You don't create content — ttrpg-expert does.
For a gap, scaffold a placeholder note and flag it.
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.
relationship-patterns.md and canon-management.md
there; per-system topic files. Also owns thread and foreshadowing
tracking (continuity-engine.md).Use plain filesystem tools plus the bundled utilities — read
shared/vault-access.md for the mapping.
On first invocation, ask:
"Where should I work? Give me the path to your campaign folder, or tell me where to create a new one."
Never default to the current working directory; write nothing until the user gives a path. Then use it for the whole session.
_meta/The vault's _meta/ is the source of truth, not this skill.
| File | Contents |
|---|---|
_meta/entity-types.md | Type hierarchy, frontmatter schemas, folder mappings |
_meta/relationship-types.md | Relationship taxonomy, domain/range, symmetry, genre tags (the words: relationships words, see ttrpg-expert/relationship-patterns.md) |
_meta/index.md | Master registry of every entity and narrative element |
_meta/vault-notes.md | The GM's own notes on how this vault is kept; read it if it exists |
The vault's settings (system, campaign name, site) are not a file to
read: ask gma publish settings get vault --vault <vault>.
On first contact with a vault:
_meta/ exists → read the files in the table; they are the
live schema. Don't assume defaults. Then run the version check._meta/ missing → first-time setup: read
references/vault-setup.md (it runs gma vault-scaffold). No
version check.Version check (once per session): run gma vault-check <vault> version. OK → proceed. SETUP → run references/vault-setup.md. MISMATCH → announce the row,
run the update by references/migration-procedure.md, then resume the request.
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 not a directory on stderr → wrong vault path; ask for it.
Asked what an update did, or which template and why, at any verdict → "Asked later" in references/migration-procedure.md.
When content doesn't fit an existing type, don't force it:
_meta/entity-types.md (or
_meta/relationship-types.md), add a template to
_Templates/, and create a subfolder if needed.Evolved types are identical to built-in ones.
A type's fields and values: gma schema-rules show <type>. What the
universal and world-evolution fields mean: shared/entity-schema.md
§ Universal Fields, § Core Entity Types. Preserve them in every
Organize or Weave pass.
campaign-timeline.md at the vault root, if present, is the
append-only canonical record of what happened. Never reorganise
or edit past entries.
Entities that take portraits (PC, NPC, Location, Faction,
Organization, Item, Creature) accept an optional image. File it
under _attachments/ and set portrait: per
shared/vault-structure.md § Image Attachments (folders, naming,
formats, body embeds). Entities without images are fine.
To draw pictures for notes that have none ("fill in the missing
pictures"), follow "A fill" in gma llms image. After an Organize,
Dissect or Weave pass, if the version check printed # pictures on:, then once everything above is done and reported, follow "When no one asked" in gma llms image for the notes it created.
Scenes/ there); a session is where scenes played (the
scene's played_in)._meta/entity-types.md, in type folders, linked by
[[wiki-links]].Scenes reference entities via entities frontmatter and inline
wiki-links; entity notes link back to sessions in their
## Campaign Log.
_Templates/_Template_{Type}.md
first and use it as the structure — never pattern-match off
existing entity files. A new NPC, PC, place, group, creature, item,
event, document, clue or heritage goes in through
gma vault-write <vault> entity-new --type <type> --name "<Name>"
(preview, then --write; several: blocks of one batch, the
same two steps): send the fields to set, the ties and the
sections on stdin, and it fills the template and writes
## Related and ### Hidden Ties from the ties. Carry the
source's prose about the entity into the body verbatim; don't
summarize or restyle it
(an over-long entity is recoverable, a summarized one is lossy).
(rationale: shared/content-fidelity.md)doc_type: map), set player_version: "[[the player map]]"
on the GM one. Name them X (GM) and X and the run sheet pairs them
without the field.entity-new --type pc --from-npc "<NPC note>", which may keep
the NPC's name), then gma vault-write <vault> npc-merge "<NPC note>" "<PC note>" (preview, then --write); a retired PC
keeps its PC note. See shared/pc-body-structure.md._World/ exists, check each created or
updated entity, relationship or field against the active domain
rules per references/world-validation.md. Surface violations
as advisory prompts (canon / ignore / defer).gma index-build <vault>,
show the diff summary, then re-run with --write. The script is
idempotent; there is no incremental mode._inbox/ (vault-ingest staging): never process,
reorganise or index it.Use when: a collection of files needs vault structure.
shared/vault-structure.md, adapted to the content.[[wiki-links]] embedded.references/graph-hygiene.md; run its
checks.Use when: one large document needs breaking into notes.
canon_status: STUB, template
sections left empty, plus a ## Needs section.Use when: existing notes need relationship enrichment.
## Related or ### Hidden Ties
on non-PC entities (shared/entity-schema.md § Relationships);
never rewrite body prose. Link conventions:
references/graph-hygiene.md.references/graph-hygiene.md.Use when: checking graph quality without adding content.
gma graph-check <vault> all, gma links <vault> and
gma vault-check <vault> all (see shared/vault-access.md; gma links
sorts the broken links and fixes the misspelt ones on a yes), then
interpret on top of their orphan/ambiguity/schema output: type
pair violations.references/graph-hygiene.md; add its judgement calls
(traversal edges, the most specific type)._World/ violations as findings, not
blockers.aliases, flagged for the user.## Canon Conflicts, set canon_status: DRAFT (states:
shared/canon-status.md).era or as_of to descriptions
rather than deleting old relationships.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ttrpg, campaign-management, obsidian, knowledge-graph, markdown
npx claudepluginhub antthelimey/gm-apprentice --plugin gm-apprentice10 skills in this plugin
/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./publish-sitePublish 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./session-playUse when the GM is actively running a TTRPG session and needs fast help at the table — quick lookups, rules questions, on-the-fly NPCs and content, or capturing play notes. Speed is everything. Not for session prep (session-prep) or post-session processing (session-wrapup)./session-prepUse when a GM is preparing for an upcoming TTRPG session — prep or plan my session, getting ready for next week, what should I prepare — or reconciling last session's wrap-up with what comes next (reconcile, what did we skip, what changed), or reviewing a prep plan. Not for during-play help (session-play) or post-session wrap-up (session-wrapup)./session-wrapupUse when a TTRPG session has just ended and the GM needs to wrap up or process play notes — recaps, entity file updates, timeline events, and what carries forward to the next session. Turns raw play notes into organized canon. Not for session prep (session-prep) or during-play help (session-play)./sharedScripts, templates and references the gm-apprentice skills use. Install it with them; it does nothing on its own.Other plugins' skills for the same job