datapizza-labs/rag-dataset-builder/dnd5e-srd
Claude Code and agent skill by datapizza-labs/rag-dataset-builder
- community
Checking that the SKILL.md file is still in the repository.
Retrieval-augmented generation (RAG) skill for the D&D 5e System Reference Document (SRD). Use when answering questions about D&D 5e core rules, spells, combat, equipment, conditions, monsters, and other SRD content. This skill provides agentic search-based access to the SRD split into page-range markdown files.
Install
npx vskill@latest install datapizza-labs/rag-dataset-builder/dnd5e-srdSKILL.md
D&D 5e SRD RAG
This skill provides search-based retrieval access to the Dungeons & Dragons 5th Edition System Reference Document (SRD), organized by page ranges as markdown files in the references/ directory.
When to Use This Skill
Use this skill whenever answering questions about D&D 5e SRD content, including:
- Core rules and gameplay procedures
- Ability checks, saving throws, and skill use
- Combat, actions, conditions, and movement
- Classes, backgrounds, equipment, and magic items
- Spells and spellcasting
- Creatures and stat blocks included in the SRD
Search Strategy
Follow this agentic search process for D&D 5e SRD queries:
1. Identify Relevant Page Ranges
The SRD is organized by page ranges. Use this file index to locate content:
Important: Always use the Python search tool (`scripts/search_with_positions.py`) to get exact character positions for source citations.
File Index (by page range)
Note: Topics below follow your provided outline and are aligned to the actual file splits; where a topic spans multiple files, it's marked as continued.
DND5eSRD_001-018.md: Intro through Character CreationDND5eSRD_019-035.md: Barbarian, Bard, Cleric (start)DND5eSRD_036-046.md: Cleric/Druid, Fighter, Monk (start)DND5eSRD_047-063.md: Monk, Paladin, Ranger, RogueDND5eSRD_064-076.md: Sorcerer, Warlock, Wizard (start)DND5eSRD_077-086.md: Wizard, Origins, FeatsDND5eSRD_087-103.md: EquipmentDND5eSRD_104-120.md: SpellsDND5eSRD_121-137.md: SpellsDND5eSRD_138-154.md: SpellsDND5eSRD_155-175.md: SpellsDND5eSRD_176-191.md: Rules Glossary (part)DND5eSRD_192-203.md: Gameplay Toolbox, Magic Items (start, part 1)DND5eSRD_204-229.md: Gameplay Toolbox, Magic Items (continued)DND5eSRD_230-252.md: Magic Items (continued)DND5eSRD_253-272.md: Monsters intro + early entriesDND5eSRD_273-292.md: MonstersDND5eSRD_293-312.md: MonstersDND5eSRD_313-332.md: MonstersDND5eSRD_333-364.md: Monsters / Animals (continued)
2. Search Using the Python Tools
Primary method: use the search + expand workflow for accurate positions and structured context.
The search tool returns:
- Filename
- Character range (start-end positions)
- Matched text with context
- Ready-to-use citation format:
[filename, chars START-END]
The expand tool returns:
- Expanded text (paragraph, section, or entire document)
- Heading breadcrumb trail
- Original match position within the expansion
- Expansion bounds and metadata
3. Expand Context When Needed
After searching, expand results that need deeper context:
- Use
--mode paragraphfor surrounding text - Use
--mode sectionto get the full rule section with headings - Use
--results 1,3,5to batch expand multiple results
4. Multi-hop Queries
For questions requiring multiple pieces of information:
- Break down the query into components
- Search for each component separately
- Synthesize the information from multiple sources
5. Provide Accurate Answers with Source Citations
After retrieving information:
- Quote or paraphrase the exact rules as needed
- Always cite sources using the character position format:
[filename, chars START-END] - Include multiple sources when relevant
- Cite at the end of the relevant information, not inline
Citation examples:
References Directory Structure
The references/ directory contains the SRD split into page-range files. Files are named DND5eSRD_XXX-YYY.md where XXX-YYY is the page range.
To list all files:
To find which file contains specific content:
Python Tools
1. Search Tool (search_with_positions.py)
Features:
- Searches SRD reference files with regex-based term matching
- Returns precise character ranges for each match
- Includes contextual text around matches
- Supports filtering by page ranges or specific files
Usage:
2. Context Expansion Tool (expand_context.py)
Features:
- Expands specific search results with boundary-aware modes
- Modes:
paragraph(default),section,section-only,char,document - Provides heading breadcrumb trails for context
- Supports batch expansion and JSON output
Usage:
Best Practices
- Use the Python tools: search first, then expand for deeper context
- Always cite sources with
[filename, chars START-END] - Leverage structure: use
--mode sectionto get full rules and headings - Be specific: search for exact SRD terminology
- Check multiple files: related rules may span multiple ranges
- Handle ambiguity: present possible interpretations with citations
Notes
- Files are organized by page ranges (e.g., 001-018, 019-035)
- Some files are large (up to 120K+); prefer targeted searches
- This skill includes SRD content only; not supplements or non-SRD material
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/dataset_builder/medium_answers_claude_skill/dnd5e-srd/SKILL.md
Popularity
- Repository stars
- 45
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/datapizza-labs/rag-dataset-builder/dnd5e-srd)