grimoire-campaign-context

grimoire-campaign-context is a skill for Claude Code, Codex from zafety-vibin/grimoire-mcp. It costs 173 tokens per session (6,579 once invoked), scanned A, original, MIT.

Instructions for using Grimoire, a campaign manager for tabletop role-playing games, through its connected MCP server. They explain how to load the approved campaign's own facts before answering or changing anything.

In plain words
What is it for?
Use them when working with a Grimoire campaign's characters, places, factions, quests, sessions, plot threads, or wiki.
Why use it?
They help keep answers and edits consistent with the campaign's canon rather than generic RPG assumptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use them when working with a Grimoire campaign's characters, places, factions, quests, sessions, plot threads, or wiki.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zafety-vibin/grimoire-mcp --skill grimoire-campaign-context
Clone the repo
git clone --depth 1 https://github.com/zafety-vibin/grimoire-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grimoire-campaign-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context/github.svg)](https://agentmods.dev/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context)
Your own site
<a href="https://agentmods.dev/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context"><img src="https://agentmods.dev/badge/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grimoire-campaign-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context"><img src="https://agentmods.dev/badge/skills/zafety-vibin/grimoire-mcp/grimoire-campaign-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00173 $0.06579
Opus 5 $0.00086 $0.03290
Sonnet 5 $0.00035 $0.01316
Haiku 4.5 $0.00017 $0.00658

Measured 4d ago against content hash 565901de6b3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

grimoire-campaign-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/grimoire-campaign-context/SKILL.md · 468 lines

How it starts

The opening of the file, as written. The whole thing — 468 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Working with Grimoire

Grimoire is a campaign manager for tabletop RPG gamemasters, and its MCP server gives you live read and write access to one campaign's database. That database is not a pile of notes. It is typed: 14 entity categories, typed relationships between them, three knowledge graph projections, open narrative threads, and a block-based wiki whose pages link to the records. The endpoint is https://api.ttrpg.bot/mcp, transport is streamable HTTP, auth is OAuth 2.1, and access is scoped to the single campaign the user approved.

Your job is to answer from that campaign's canon, not from generic tabletop RPG knowledge. The homebrew is the authority. If the campaign says elves are extinct and magic costs blood, that is true, and your training data is wrong.

Grimoire exposes 49 tools in 7 groups. The tools carry their own layer numbering in their descriptions. Follow it. Every tool description is current; when this skill and a tool description disagree, the tool description wins.

Center yourself first

Do not answer a campaign question, and do not write anything, until you have grounded yourself in this campaign. The whole point of the layered design is that context gets loaded deliberately instead of dumped all at once.

Every session, before the first substantive answer:

  1. current_campaign (free, instant). Returns the campaign, user, and role bound to this MCP session. Call it first, every time. Everything after this depends on it, and the role decides which of the next two steps you are even allowed to make. See "If you are connected as a player" below.
  2. get_constitution (Layer 1). GM role only. The world's non-negotiable truths: campaign summary, Campaign Bible summary, and the world foundations graph. This is where the setting's defining events, cosmology, and the GM's content boundaries live. It colors every downstream answer.
  3. The campaignContext block. Genre, ruleset, setting technology and magic levels, which entity categories this campaign uses, and what this campaign calls them. It rides inside the get_constitution response you just read, and inside get_narrative_state and get_entity_catalog as well, so read it there instead of fetching it again. get_campaign_context is the standalone form of the same block, for a session that cannot call get_constitution (player role) or that needs nothing but the vocabulary. Read it either way: it is how you stop saying "NPC" when this table says "contact," and how you stop applying D&D 5e assumptions to a Blades-adjacent horror game.

Read the full file on GitHub · 468 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +35 lines · +4 tokens per session 565901de6b3d
  2. 5d ago Changed · +128 lines · +19 tokens per session 28d0fde65137
  3. 12d ago First seen · 305 lines · 150 tokens per session scan A 1ff685be5e68

Subscribe to this mod's changes

grimoire-campaign-context is a skill published in the GitHub repository zafety-vibin/grimoire-mcp (1 stars, last pushed 5d ago), licensed MIT. It adds 173 tokens to every session and 6,579 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.