🏰 Dungeon Master
A context-tracking pre-commit tool for Cursor integration.
Blocks commits until meaningful documentation exists. Creates structured templates that Cursor fills with intelligent content. Enforces quality through automated validation.
pip install cursor-dungeon-master
dm init
🚀 Quick Start
# Install
pip install cursor-dungeon-master
# Initialize in your repository
dm init
# Mark files for tracking by adding a comment
echo '# track_lore("my_feature.md")' >> src/my_feature.py
# Commit triggers the workflow
git add . && git commit -m "Add new feature"
That's it! Dungeon Master will create documentation templates and block commits until they're complete.
🗡️ Commands
| Command | Purpose |
|---|---|
dm init |
Initialize Dungeon Master in repository |
dm create-lore |
Create/update templates for tracked files |
dm review |
Show all tracked files and their status |
dm validate |
Check what would block commits |
dm map |
Generate repository structure map |
⚔️ How It Works
- Track Files: Add
# track_lore("filename.md")comments to important files - Commit: When you commit, templates are created in
.lore/directory - Complete: Use Cursor to fill template placeholders
- Validate: Commits are blocked until documentation is complete
Example Template
# my_feature.py - Context Documentation
## Overview
[PLEASE FILL OUT: Overview]
## Key Functions/Components
[PLEASE FILL OUT: Functions/Components]
## Dependencies
[PLEASE FILL OUT: Dependencies]
🛡️ Validation
Commits are blocked when:
- Documentation templates are missing
- Templates contain
[PLEASE FILL OUT: ...]placeholders - Significant code changes haven't been reviewed
🌟 Why Use This?
- Enforced Documentation: No more outdated or missing docs
- AI-Friendly Structure: Templates work perfectly with Cursor
- Pre-commit Integration: Automatic validation before commits
- Language Support: Python, JavaScript, TypeScript, and more
📄 License
MIT License - see LICENSE for details.
🏰 "In the dungeon of development, proper documentation is your most powerful spell."
Release files for cursor-dungeon-master 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cursor_dungeon_master-0.4.1.tar.gz | 49.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cursor_dungeon_master-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.4 kB
Release files / cursor_dungeon_master-0.4.1.tar.gz
| Download URL | cursor_dungeon_master-0.4.1.tar.gz |
|---|---|
| Size | 49.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
095f7eb68bbe756284f020f728180d7636bd4c9719dbce5f0d4eb2c1825bb2db
|
|
BLAKE2b-256 checksum How to use checksums |
247c34f16cb3958529e2bfb7d0eec65f6f885348eb98cf1b523bf6c60a060bb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / cursor_dungeon_master-0.4.1-py3-none-any.whl
| Download URL | cursor_dungeon_master-0.4.1-py3-none-any.whl |
|---|---|
| Size | 49.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7566f149e1e6d8facaf09a2221772b53742901da5676290755dea500d606744f
|
|
BLAKE2b-256 checksum How to use checksums |
b8430cebd736c920669ae3879af32e58f8cd92749d7ec8365c179c9dc97c867e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|