/mimir-dm:mimir-dmfrom mimir-dm
Manages D&D 5e campaigns via MCP tools: create modules, author NPCs, manage characters, place maps/tokens, search monsters/items/spells, and create homebrew content.
Ships in mimir-dm. 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.
Orient yourself, then make sure a campaign is active before using any module, character, or document tools:
get_active_campaign (never errors; tells you if one is already active)list_campaigns (or create one with create_campaign, which auto-activates it)set_active_campaignAll subsequent operations require an active campaign. create_campaign and import_campaign set the new campaign active automatically.
The tools run on the Mimir server, not on the user's computer. A tool does not read or write a file path on the user's computer. Use plain HTTP to move a file, with the server address in $MIMIR_URL and the DM token in $MIMIR_API_TOKEN.
To give a file to a tool (import_campaign, preview_archive, create_map, import_adventure_pack):
curl -sS -H "Authorization: Bearer $MIMIR_API_TOKEN" \
-F "file=@/path/to/file" "$MIMIR_URL/api/v1/uploads"
upload_id. Give it to the tool as upload_id.upload_id again in that hour, for example for preview_archive and then import_campaign.To get a file from a tool (export_campaign, export_adventure_pack, print_adventure_book, generate_map):
download_url and filename.curl -sS -f -H "Authorization: Bearer $MIMIR_API_TOKEN" \
-o "<filename>" "$MIMIR_URL<download_url>"
Ask the user where to save a downloaded file.
Always call get_character / read_document / get_module_details / get_homebrew before making edits to confirm current state. Never edit blind.
Search tools return partial matches. When adding monsters, items, or equipment:
search_catalog with the appropriate category)add_monster_to_module / add_item_to_characterWhen a user wants a custom monster, item, or spell, always try cloning from the catalog first rather than building from scratch. A cloned entry preserves correct 5etools JSON structure and only needs targeted edits.
search_catalog with the appropriate category)create_homebrew (specifying content_type) using cloned_from_name and cloned_from_sourcedata JSON to apply the user's requested changesBuilding homebrew JSON from scratch is error-prone — the data blobs follow 5etools format which has many nested structures. Cloning and modifying is almost always safer.
add_monster_to_module fails, verify the monster name matches the catalog exactlyIf you are uncertain about any creative decision — monster choice, encounter composition, loot selection, NPC details, homebrew modifications — ask the user. Present 2-3 options with brief rationale and let them choose. It is always better to ask than to guess wrong and have to undo work.
CRITICAL: The user is the Dungeon Master. You are their assistant, not a co-author. Never make narrative, creative, or design decisions without explicit user approval. Always present options and let the user choose. Execute mechanically once they have decided.
For the full guidelines on what requires approval vs what you can do autonomously, see references/dm-assistant-guidelines.md.
list_campaigns — List all campaignsget_active_campaign — Report which campaign is active (never errors; call first to orient)create_campaign — Create a new campaign (name, description); auto-activates itget_campaign_details — View active campaign detailsupdate_campaign — Update campaign name or descriptionset_active_campaign — Set the working campaignget_campaign_sources — View enabled source booksexport_campaign — Export campaign to archive file (a download)import_campaign — Import a campaign archive (an upload)preview_archive — Preview archive contents before importing (an upload)delete_campaign — Delete a campaign (irreversible)Campaign-level documents are not tied to any module — use them for world lore, session notes, or campaign-wide references.
create_document (title, document_type) — omit module_idlist_documents — omit module_idcreate_module (name, type, description)create_document (module_id, backstory, read_aloud, dm_notes, description, custom)search_catalog(category: "monster") to find exact namesadd_monster_to_module (include count and notes)search_catalog(category: "item"); note module-level loot tracking is not yet implemented, so record intended treasure in a dm_notes document or hand it to an NPC/PC with add_item_to_charactersearch_catalog(category: "spell") if the module involves spellcasting NPCs or trapscreate_character (name, character_type: "npc", race_name)edit_character (npc_role, npc_location)edit_character using the named integer params strength, dexterity, constitution, intelligence, wisdom, charisma (there is no ability_scores array — an array is silently ignored)edit_character using the named integer params cp, sp, ep, gp, pp (no currency array)add_item_to_character (item_name, equipped: true, attuned: true if applicable)get_characteradd_npc_to_module (module_id, character_id, plus their role, description and secrets in that module). The module's NPCs tab lists them; module_npc_id places their token on a map.search_catalog with category: "race", "class", "background" to find exact namescreate_character (name, character_type: "pc", race_name, class_name)edit_character using named params (strength…charisma, cp…pp) — ability scores cannot be set at creationedit_character (race_name, race_source, background_name, background_source)add_item_to_characterget_character to check current level and classlevel_up_character (character_id, class_name, hp_method: "average"|"roll"|"manual")add_character_feat (see Manage Character Feats)search_catalog(category: "monster")add_monster_to_module (specify count)search_catalog(category: "spell") if encounter involves spellcastersdm_notes document, or grant it to a character with add_item_to_character (module-level loot tracking is not yet implemented).uvtt file (see "Files In and Out"), then create the map with create_map (module_id, name, upload_id)add_monster_to_module to get a module_monster_idadd_token_to_map (map_id, module_monster_id, grid_x, grid_y, label) — coordinates are integer grid cells and default to (0,0)add_token_to_map (map_id, module_npc_id, grid_x, grid_y, label)get_map to see all token placementsremove_tokenget_character_inventory — view full inventoryadd_item_to_character — add items (set equipped, attuned flags)update_character_inventory — change quantity, equipped, or attuned statusremove_item_from_character — remove items by inventory IDlist_character_spells — list all known spells, optionally filtered by class or prepared statusadd_character_spell — add a catalog or homebrew spell to a character's known spells (set prepared: true to add it already prepared)remove_character_spell — remove a spell by name, optionally scoped to a specific classSet a spell's prepared state with the prepared flag when calling add_character_spell. Use spell_source: "HB" when adding homebrew spells, and verify the homebrew spell exists in the campaign with list_homebrew(content_type: "spell") before adding it to a character.
list_character_feats — list the feats of a character, with the source book and how the character got each featadd_character_feat — record a feat outside level-up, for example an ASI choice that the player made laterremove_character_feat — remove a feat by nameThe feat must be in the catalog. Find its exact name and source with search_catalog(category: "feat"). The default source is PHB and the default source_type is asi. A character can have a feat only one time, unless the catalog marks the feat as repeatable.
Use get_module_details to see the full structure before editing — it returns the module's documents and monsters in one call. (Module-level item/loot tracking is not implemented, so no items are returned.)
Homebrew content lets the DM create custom items, monsters, and spells that don't exist in the catalog. The recommended workflow is clone and edit, not build from scratch.
search_catalog(category: "item") to find a similar base itemcreate_homebrew(content_type: "item", name, data, item_type, rarity, cloned_from_name, cloned_from_source)get_homebrew(content_type: "item", id)update_homebrew(content_type: "item", id) to refine the data JSONlist_homebrew(content_type: "item")search_catalog(category: "monster") to find a similar base creaturecreate_homebrew(content_type: "monster", name, data, cr, creature_type, size, cloned_from_name, cloned_from_source)get_homebrew(content_type: "monster", id)update_homebrew(content_type: "monster", id) to adjust the stat block JSONlist_homebrew(content_type: "monster")search_catalog(category: "spell") to find a similar base spellcreate_homebrew(content_type: "spell", name, data, level, school, cloned_from_name, cloned_from_source)get_homebrew(content_type: "spell", id)update_homebrew(content_type: "spell", id) to adjust the spell data JSONlist_homebrew(content_type: "spell")add_character_spell (spell_source: "HB", source_class: the granting class)Important: The data field is a JSON string following 5etools format. Always clone from catalog to get the correct structure, then make targeted edits. If you must build from scratch, validate the JSON is well-formed before saving.
Documents can belong to a module (provide module_id) or the campaign (omit module_id).
Supported types for create_document:
backstory — Background and historyread_aloud — Text to read to playersdm_notes — DM-only informationdescription — Location or encounter descriptionscustom — Custom documentsWhen a campaign is active, catalog searches are automatically filtered to only include content from the campaign's enabled source books. This ensures monsters, items, and spells match the campaign's allowed content.
list_characters with location or faction filters to find NPCs by areaexamples/character-creation-workflow.md (opens in a new tab)examples/create-module-workflow.md (opens in a new tab)examples/create-npc-workflow.md (opens in a new tab)examples/level-up-workflow.md (opens in a new tab)references/dm-assistant-guidelines.md (opens in a new tab)references/tool-parameter-reference.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mimir-dm/mimir --plugin mimir-dm8 skills in this plugin
/continuity-checkThis skill should be used when the user asks to "check continuity", "verify plot consistency", "find contradictions", "audit my campaign", "check for inconsistencies", "verify NPC references", "timeline check", "fact check my module", "continuity audit", or mentions "plot holes", "contradictions", or "consistency issues". Cross-references all campaign documents, NPCs, locations, and timelines to find contradictions, orphan references, and naming inconsistencies./encounter-balanceThis skill should be used when the user asks to "check encounter balance", "review CR", "is this too hard", "is this too easy", "balance my encounters", "encounter difficulty", "TPK check", "deadly encounter", "party level check", or mentions "challenge rating", "encounter math", or "XP budget". Analyzes module encounters against party composition using D&D 5e math to identify deadly, trivial, or unbalanced fights./loot-auditThis skill should be used when the user asks to "audit loot", "check treasure distribution", "review magic items", "is loot balanced", "treasure by level", "too much gold", "not enough magic items", "wealth check", or mentions "treasure placement", "loot tables", or "magic item distribution". Audits treasure and magic item placement across modules and character inventories to flag wealth imbalances, rarity mismatches, and loot gaps./mapgenThis skill should be used when the user asks to "generate a map", "create a dungeondraft map", "make a battle map", "generate terrain", "create a forest map", "make a cave map", "grassland map", "desert map", "lake map", "arctic map", "island map", "tropical island", "procedural map", "mapgen", "map from preset", "map from YAML", "validate map config", "list map presets", "generate dungeondraft", "create outdoor map", "random map", "noise-based map", "map with rooms", "dungeon map", "generate rooms", "room layout", "polygon layout", "polygon rooms", "overlapping rooms", or mentions "mimir-mapgen", "dungeondraft_map", "biome preset", or "map generation". You act as a creative director — translating the user's scene descriptions into precise generation parameters that produce the terrain and room layouts they envision./npc-networkThis skill should be used when the user asks to "map NPC relationships", "show character connections", "analyze NPC network", "who knows who", "faction relationships", "visualize NPCs", "NPC web", "character relationship map", or mentions "NPC connections", "social network", or "faction dynamics". Maps relationships between NPCs by faction, location, and document references to identify hub characters, isolated NPCs, and missing connections./pressure-testThis skill should be used when the user asks to "pressure test my campaign", "stress test this module", "find plot holes", "what if players do X", "test my adventure", "challenge my scenario", "poke holes in my plot", "adversarial review", "player-proof this", or mentions "edge cases", "breaking the campaign", or "unexpected player actions". Adopts an adversarial player mindset to find plot holes, dead-ends, and exploits before game time.Other plugins' skills for the same job