Vault ingestion assistant: translates messy old campaign material
into structured inputs that existing skills process, handing off
conversationally (not programmatically) to campaign-organizer,
session-wrapup, shared/reconcile.md and, optionally,
campaign-qa.
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.
Shared references: Read on first invocation:
shared/session-principles.md, shared/session-document-chain.md,
shared/reconcile.md.
Skill references: Read before each phase:
references/classification-taxonomy.md— Phase 1references/image-handling.md— Phase 1, when images are presentreferences/keeper-interview.md— Phase 4references/synthesis-templates.md— Phase 5
Input Channels
Any mix in one invocation, in any of: Markdown, plain text, Word, PDF, images, CSV/Excel, chat/VTT exports.
- Staging folder —
_inbox/in the vault. - External path — a folder or file outside the vault.
- Pasted content — treat as an implicit source document.
Bootstrap Detection
On invocation, check for a vault (_meta/). If none:
"I don't see a campaign vault here. Want me to set one up, or point me to your vault's location?"
To set one up, ask where it should live, then follow
campaign-organizer/references/vault-setup.md with --inbox. Do
not proceed without a vault — entities need its folders, templates
and _meta/ schema to file correctly.
Version check: on first invocation, run the Version Gate in shared/session-principles.md.
Gotchas
- Read
_Templates/_Template_{Type}.mdbefore creating any entity — the template is canonical; copying existing entities propagates drift and deprecated fields. - One file per entity — multiple entities per file break wiki-links and publish rendering.
- Never modify external source files — they are the GM's backup and proof of ownership.
- Process buckets chronologically, earliest first, each through Phases 3-6 before the next — later buckets reference entities created by earlier ones.
- Archive, never delete, processed
_inbox/files —gma ingest-survey <vault> --archive FILE... --writemoves them to_inbox/_processed/with a date stamp, keeping the subpath and refusing to overwrite. Dry-run (no--write) first to confirm destinations. - Prep is not play — scenario prep describes potential, not reality. Dice rolls, skill-check results or specific PC actions are play records wherever they appear.
- Flag, don't guess — anything ambiguous goes to the GM, never resolved by invention.
The Pipeline
Six phases. vault-ingest owns 1-4; 5-6 hand off to existing skills.
Phase 1: Survey & Classify
Run gma ingest-survey <source-dir> before reading anything. DECIDED rows (settled by
extension, frontmatter or heading signature) need nothing. Read a
SCORED row's file only to confirm or override its proposal,
using references/classification-taxonomy.md. UNSCORED rows
(Word/PDF/VTT) need a manual read. Report ERROR rows to the GM.
Images: run gma ingest-images <vault> <source-dir> (dry-run) before touching any image by
hand, then --execute. Work its report per
references/image-handling.md.
Output: a manifest table — every item with classification, brief summary and time-period guess. Ask: "Does this look right? Any misclassifications?"
Phase 2: Sort into Buckets
Group items by chapter/session/time period, using explicit references ("Session 5 notes"), timeline references, NPC/location clustering (same cast = same period) and the GM's Phase 1 context. Each bucket gets a working label, its items and a certainty (certain / probable / needs-GM-input). Ambiguous items go to an "unsorted" bucket, resolved at the start of Phase 4.
Phase 3: Extract Play Events
Per bucket, read all AUTHORITATIVE material. Source priority:
_Campaign/Timeline.md- Existing session wrap-ups
- Play transcripts and fragments
_Campaign/Player Characters.md— deaths, transitions, rosters- Existing entity files — current canon
Output: confirmed events (with source citations) and gaps (things prep says could have happened, unconfirmed).
After creating this bucket's entities, re-run gma ingest-images <vault> <source-dir> --execute so images match against them too.
Phase 4: Keeper Interview
The skill's core value. Read references/keeper-interview.md and
follow its Core Rules. Order:
- Resolve the Phase 2 unsorted items.
- Resolve image rows left for the GM (
references/image-handling.md). - One question per active PC about their arc across the period
(
keeper-interview.md§ PC Narrative Arcs). - The play-event interview.
Phase 5: Synthesize & Hand Off
Read references/synthesis-templates.md.
- Buckets with no session files → campaign-organizer creates the chapter/session skeleton.
- Write the synthesis as a Play Notes file per
shared/session-document-chain.md. Block/seam test: keep finished-prose blocks from the sources verbatim; author only fragment-derived text and seams. ASession exportrow is copied into place, not synthesized (synthesis-templates.md § Synthesis Rules, rule 7). - Follow the session-wrapup workflow for the Wrap-Up file and entities. One new entity often implies others (an NPC brings locations) — create them too.
- Each PC active in the period gets a consolidated character
story entry (synthesis-templates.md § Character Story
Backstory Entries). A PC whose sources hold no stats:
shared/pc-body-structure.md§ A sheet kept somewhere else; on a campaign that does not publish sheets (player_site.sheets.showoff) do not ask where one is kept; whengma vault-check <vault> pc-bodyemits no Stat Sheet rows there is nothing to ask.
Check each entity as you write it: entity mentions are
[[Entity Name]] wiki-links; play_date is YYYY-MM-DD;
in_game_date follows shared/session-document-chain.md (never a
fabricated Gregorian date or a time of day). Per bucket, run
gma vault-check <vault> frontmatter --folder <dir> (see
shared/vault-access.md) and fix every ERROR before the next
bucket.
Include a > [!info] Reconstruction Note (sources, limitations)
between <!-- gm-only --> and <!-- /gm-only --> lines; mark
uncertain items <!-- UNVERIFIED (S{n}) -->, tagged with the
session ingested (Ch{c} S{n} if it has a chapter).
Planning documents (arc structures, investigation flows)
become type: plan entities in Chapters/{chapter}/Planning/ per
_Templates/_Template_Plan.md, with plan_type arc, scene,
investigation or timeline. A design for one scene becomes a scene
file instead: gma vault-write <vault> scene-new --chapter "<chapter>" --title "<title>" --write, then its text goes in the
body and its entities/locations get the wiki-links it names.
Entity files parallelize well across subagents; the Phase 4 interview stays sequential.
Phase 6: Review
Walk the GM through the wrap-up with shared/reconcile.md; on
approval it becomes reviewed and AUTHORITATIVE.
Post-Ingestion
After all buckets:
- Deduplicate entities —
gma vault-check <vault> names - Cross-bucket relationship chains —
gma graph-check <vault> all,gma vault-check <vault> relationships(a tone WARNING on a relationship this ingest wrote: use the word the row names, or where it names none the listed word that fits, asrelationships wordsin the publish tool prints them; leave any other to campaign-qa and never rungma toneshere) - Timeline consistency across buckets — by eye (
gma vault-check <vault> timelinedoes not check cross-bucket ordering) - Entity status progression —
gma vault-check <vault> stale-drafts gma vault-check <vault> wrapupover the generated wrap-ups- Route inconsistencies back through reconcile
Pictures: 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 this ingest created.
Then offer, without pushing: "I've ingested N sessions of material. Want to run a vault health check?" (campaign-qa)
Compaction
Preserve: confirmed events + sources, GM answers verbatim, manifest, unresolved items, entity paths. Discard: intermediate reasoning, processed source text, failed extractions, superseded interview chains.


