D&D 5e game engine for Claude Code
npx claudepluginhub sergeykhval/claude-dndD&D 5e game engine for Claude Code. Play solo tabletop RPG campaigns with persistent file-based game state, transparent dice rolling, and full 5e rules.
A D&D 5e game engine plugin for Claude Code. Claude becomes your Dungeon Master - all game state lives in markdown files, with transparent dice rolling and full 5e rules.
Claude Code is Anthropic's CLI tool for working with Claude in your terminal. It supports plugins - packages that give Claude new skills and commands.
This plugin turns Claude into a D&D 5th Edition Dungeon Master. You play a solo campaign in your terminal, and the entire campaign state is stored as plain markdown files you can read, edit, and version-control with git.
game/ as .md files. Game state is only what's written in the files.roll script handles all dice with batch support: attacks, damage, initiative, advantage/disadvantage, and ability score generation in a single call.In Claude Code, run /plugin, select Marketplace, and paste:
https://github.com/SergeyKhval/claude-dnd
Or load locally with claude --plugin-dir /path/to/claude-dnd.
/claude-dnd:new-campaign
That's it. You'll build the world and your character together, then start playing.
| Command | What it does |
|---|---|
/claude-dnd:new-campaign | Create a new world and character |
/claude-dnd:start-session | Resume from your last save |
/claude-dnd:add-quest [count] | Add new quests mid-campaign |
/claude-dnd:save | Save progress mid-session |
/claude-dnd:end-session | Save + narrative wrap-up |
Between commands, just talk - the DM runs automatically during gameplay.