Loading...
Loading...
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.
npx skill4agent add microck/ordinary-claude-skills dnd5e-srdreferences/scripts/search_with_positions.pyDND5eSRD_001-018.mdDND5eSRD_019-035.mdDND5eSRD_036-046.mdDND5eSRD_047-063.mdDND5eSRD_064-076.mdDND5eSRD_077-086.mdDND5eSRD_087-103.mdDND5eSRD_104-120.mdDND5eSRD_121-137.mdDND5eSRD_138-154.mdDND5eSRD_155-175.mdDND5eSRD_176-191.mdDND5eSRD_192-203.mdDND5eSRD_204-229.mdDND5eSRD_230-252.mdDND5eSRD_253-272.mdDND5eSRD_273-292.mdDND5eSRD_293-312.mdDND5eSRD_313-332.mdDND5eSRD_333-364.md# Step 1: Search to find content with exact character positions
python /skills/dnd5e-srd/scripts/search_with_positions.py "search term" --all
# Step 2: If you need more context, expand specific result(s)
python /skills/dnd5e-srd/scripts/expand_context.py "search term" --result 3 --mode section --all
# Examples
# Search combat-related terms
python /skills/dnd5e-srd/scripts/search_with_positions.py "grapple" --all
# Search spells and expand result #1 by section
python /skills/dnd5e-srd/scripts/expand_context.py "fireball" --result 1 --mode section --all
# Search specific page ranges
python /skills/dnd5e-srd/scripts/search_with_positions.py "longsword" --pages 200-300
# Batch expand multiple results
python /skills/dnd5e-srd/scripts/expand_context.py "Attack" --results 1,3,5 --mode paragraph --all[filename, chars START-END]--mode paragraph--mode section--results 1,3,5[filename, chars START-END]The spell Fireball deals 8d6 fire damage on a failed save. [DND5eSRD_293-312.md, chars 12000-12100]
A grapple check uses Athletics vs. the target's escape DC (see Conditions). [DND5eSRD_087-103.md, chars 5400-5600]references/DND5eSRD_XXX-YYY.mdXXX-YYYls -lh /skills/dnd5e-srd/references/grep -l "search term" /skills/dnd5e-srd/references/*.mdsearch_with_positions.py# Basic search across all files
python scripts/search_with_positions.py "term" --all
# Search specific page range
python scripts/search_with_positions.py "term" --pages 200-300
# Control output
python scripts/search_with_positions.py "term" --all --max-results 10 --context 200
# Case-sensitive search
python scripts/search_with_positions.py "Attack" --all --case-sensitiveexpand_context.pyparagraphsectionsection-onlychardocument# Expand a specific search result by section
python scripts/expand_context.py "fireball" --result 3 --mode section --all-search
# Expand multiple results at once
python scripts/expand_context.py "Attack" --results 1,3,5 --mode paragraph --all-search
# Direct expansion from known file position
python scripts/expand_context.py --file "DND5eSRD_121-137.md" --position 1234 --mode section
# JSON output for machine processing
python scripts/expand_context.py "wizard" --result 1 --all-search --format json[filename, chars START-END]--mode section