Skip to main content

Context-tracking pre-commit tool for Cursor integration with comprehensive documentation enforcement

Project description

🏰 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

  1. Track Files: Add # track_lore("filename.md") comments to important files
  2. Commit: When you commit, templates are created in .lore/ directory
  3. Complete: Use Cursor to fill template placeholders
  4. 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."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_dungeon_master-0.4.1.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursor_dungeon_master-0.4.1-py3-none-any.whl (49.4 kB view details)

Uploaded Python 3

File details

Details for the file cursor_dungeon_master-0.4.1.tar.gz.

File metadata

  • Download URL: cursor_dungeon_master-0.4.1.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cursor_dungeon_master-0.4.1.tar.gz
Algorithm Hash digest
SHA256 095f7eb68bbe756284f020f728180d7636bd4c9719dbce5f0d4eb2c1825bb2db
MD5 4066a5819ad43bc84c88727cf460d25d
BLAKE2b-256 247c34f16cb3958529e2bfb7d0eec65f6f885348eb98cf1b523bf6c60a060bb1

See more details on using hashes here.

File details

Details for the file cursor_dungeon_master-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cursor_dungeon_master-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7566f149e1e6d8facaf09a2221772b53742901da5676290755dea500d606744f
MD5 d6bf80252db94cdbe1ff144b20319b0d
BLAKE2b-256 b8430cebd736c920669ae3879af32e58f8cd92749d7ec8365c179c9dc97c867e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page