D&D 5e Toolkit for Openclaw

A comprehensive Dungeons & Dragons 5th Edition utility for automating gameplay mechanics like dice rolling, stat lookups, and character generation.

capt-marbles
v1.0.0
Jan 28, 2026
3
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install dnd

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install dnd using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is D&D 5e Toolkit?

The D&D 5e Toolkit is a specialized suite designed to streamline tabletop roleplaying game management through automation. By integrating with the official D&D 5e SRD API, this skill provides instant access to thousands of data points including spells, monster stat blocks, and equipment. Whether you are a Dungeon Master needing a quick encounter or a player calculating complex rolls, this addition to your Openclaw Skills library ensures the focus remains on the narrative rather than the rulebook.

This tool bridges the gap between manual pen-and-paper tracking and digital automation. It allows users to query complex game data through simple CLI commands or agent-based prompts, making it an essential companion for both virtual and physical tabletop sessions. It is built to be lightweight, fast, and extensible for any D20-based campaign.

D&D 5e Toolkit Use Cases

  • Rolling complex dice combinations with modifiers during high-stakes combat.
  • Looking up specific spell details like casting time, range, and components mid-game.
  • Generating balanced combat encounters based on specific Challenge Ratings (CR) to challenge players.
  • Spawning random NPCs with unique traits and occupations for spontaneous roleplay interactions.
  • Accessing detailed monster stat blocks for tactical planning and DM preparation.

How D&D 5e Toolkit Works

  1. The user or agent executes the dnd.py script with a specific sub-command such as roll, spell, or monster.
  2. The skill interfaces with the official D&D 5e SRD API to fetch validated, real-time game data for spells and creatures.
  3. For generative tasks like character or NPC creation, the logic processes internal templates to randomize attributes and traits.
  4. The skill returns either a formatted, human-readable terminal output or a structured JSON response for programmatic use.
  5. Users can refine searches using flags like --search to find partial matches within the SRD database.

D&D 5e Toolkit Setup

To get started with this toolkit, ensure you have Python 3 installed on your system. No external API keys are required as it uses the public SRD API.

# Clone the repository containing the skill
# Navigate to the skill directory
cd dnd-toolkit

# Run the help command to see available features
python3 dnd.py --help

D&D 5e Toolkit Data Schema & Taxonomy

The skill organizes data dynamically by querying the SRD API and formatting the response. You can view the structure of any command by appending the --json flag.

Component Data Type Description
Dice Roll Object Contains individual rolls, modifiers, and total sum.
Spell Data Markdown Full SRD description including level, school, and components.
Monster Stats Table AC, HP, Speed, Ability Scores, and Action lists.
Character JSON/Text Randomized race, class, and ability score array.
Encounter List A collection of monsters scaled to a specific CR.

D&D 5e Toolkit Advanced Features

  • Structured JSON output mode enabled via the --json flag for seamless integration with other Openclaw Skills.
  • Fuzzy search functionality allows users to find spells and monsters without knowing the exact slug or hyphenated name.
  • CR-based encounter balancing logic that automatically selects appropriate monsters for a party's level.
  • Flexible dice notation support that handles advantage, disadvantage, and complex mathematical modifiers.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*