gm-apprentice
TTRPG Game Master skills for Claude Code, Codex and other AI agents.
An apprentice that helps GMs run tabletop role-playing games -- from a
first spark of an idea through content generation, live play, and
campaign management.
Guides, tutorials and a gallery of campaign sites: https://gmapprentice.com
Installation
Handing the install to your AI agent
Your agent can do the install for you. It checks Python and Node,
installs gm-apprentice the way your agent takes plugins or skills, then
checks the install. Paste this line into Claude Code, Codex, Cursor or
any other coding agent:
Fetch https://raw.githubusercontent.com/AntTheLimey/gm-apprentice/main/INSTALL.md with curl and follow it.
The steps it follows are in INSTALL.md: read them first if
you like to know what an agent will run.
To do it by hand instead, use the section for your agent below.
Claude Code (CLI)
/plugin marketplace add AntTheLimey/gm-apprentice
/plugin install gm-apprentice
/reload-plugins
Claude Desktop (Mac / Windows)
- Open Claude Desktop and switch to the Cowork tab
- Click Customize
- Under Personal plugins, click + (Add plugin)
- Select Create plugin > Add marketplace
- Enter:
https://github.com/AntTheLimey/gm-apprentice
- Once synced, click Install on the gm-apprentice plugin
Codex
gm-apprentice is a Codex plugin marketplace as well. In a terminal:
codex plugin marketplace add AntTheLimey/gm-apprentice
codex plugin add gm-apprentice@gm-apprentice
This installs the whole plugin, publish tool included, as Claude Code
does. To update, run codex plugin marketplace upgrade gm-apprentice,
then the codex plugin add line again.
Other agents (npx skills)
For Cursor's own agent, Gemini CLI, OpenCode and the other agents the
skills installer supports:
npx skills add AntTheLimey/gm-apprentice --all -g
--all matters: it brings the shared skill, the scripts and
templates the other nine use. -g installs for your user, so every
vault has them. To match a release, name it:
npx skills add "AntTheLimey/gm-apprentice#v1.12.0" --all -g. A
pinned install stays on that release; re-run it with a newer tag to
move on. An unpinned one updates with npx skills update -g.
These installs don't carry the publish tool that builds the campaign
site. The first command that needs it downloads it once (about 2 MB,
checked against the release's checksum). If a sandbox blocks that
download, allow the command the agent asks about (it prints the exact
line), or ask the agent for that line and run it once in a terminal.
Agents that sandbox their commands usually let them write only inside
the project folder. Two things gm-apprentice writes sit outside it: the
publish tool's download, and the backup the vault update takes before it
changes a vault (in ~/.gm-apprentice/backups/). When a sandbox blocks
either one, the agent should stop and ask you to allow that one command
outside the sandbox.
Codex (the plugin) and Cursor (npx skills) were tested end to end on
1.12.0: create a vault, prep a session, wrap it up, build the site
locally and update the vault. Cursor's agent is slower: a prep or
wrap-up took 15 to 20 minutes, against 5 to 7 on Codex. The other
agents install through npx skills but have not been tested yet.
Requirements
- Python 3.10 or newer, for the vault scripts.
- Node 22.21 or newer, for the campaign site, the site's settings and
the checks that ask what a note would publish. A vault with no site
needs no Node.
After an update
When the skills are newer than a vault, the version check asks for
an update of that vault, and the skills run it for you.
VS Code / Cursor
- Install the Claude Code extension
(Cursor: the Claude Code extension for Cursor)
- Open the Claude Code prompt and type
/plugins
- Go to the Discover tab, add the marketplace
AntTheLimey/gm-apprentice, and click Install
JetBrains IDEs
JetBrains IDEs (IntelliJ, PyCharm, WebStorm, etc.) have no plugin
management UI yet — install via the CLI method above.
Skills
You talk to your assistant normally; skills activate automatically from
what you ask. Say "build me an NPC" and it reaches for ttrpg-expert;
say "help me start a new campaign" and it reaches for the-midwife.