Skip to main content

Dungeon Master - Manage shared engineering rules for projects

Project description

dd-dm (Dungeon Master)

A CLI tool for managing shared engineering rules across projects. Define and compose rules into a project constitution, then keep them in sync with explicit, reviewable diffs.

What it does

  • Manages shared engineering rules ("constitutions") for projects
  • Syncs rules between a templates repository and local projects
  • Prevents convention drift between humans and AI agents
  • Keeps prompts and context lean by centralizing rules

Installation

Method Command Use case
End Users
uvx (no install) uvx dd-dungeonmaster Quick use, no commitment
uv tool install uv tool install dd-dm --from dd-dungeonmaster Permanent global install
pip pip install dd-dungeonmaster Traditional install
Testing/Development
Test PyPI release uvx dd-dungeonmaster Verify published version works
Test from GitHub main uvx --from git+https://github.com/yizyace/dd_dungeonmaster.git dd-dm Test unreleased changes
Test specific branch uvx --from git+https://github.com/yizyace/dd_dungeonmaster.git@branch-name dd-dm Test feature branch
Test specific tag uvx --from git+https://github.com/yizyace/dd_dungeonmaster.git@v0.1.0 dd-dm Test specific release from source
Upgrades
Upgrade uv tool uv tool install dd-dm --force --from dd-dungeonmaster Upgrade to latest PyPI version
Upgrade pip pip install --upgrade dd-dungeonmaster Upgrade via pip
Troubleshooting
Check installed version dd-dm -v Verify version
Check install location which dd-dm Find where it's installed
Check package info uv pip show dd-dungeonmaster See install path, version, etc.
Uninstall (uv tool) uv tool uninstall dd-dm Remove global tool
Uninstall (pip) uv pip uninstall dd-dungeonmaster Remove from environment

Local Development Setup

  1. Clone and setup:

    git clone https://github.com/yizyace/dd_dungeonmaster.git
    cd dd_dungeonmaster
    uv sync --all-extras
    
  2. Run the CLI:

    uv run dd-dm --help
    
  3. Run tests:

    uv run pytest
    
  4. Run linter:

    uv run ruff check .
    uv run ruff format .
    

Usage

# Initialize in a project (provide URL to your templates repo)
dd-dm init https://github.com/your-org/engineering-rules.git

# Add a module to your constitution
dd-dm add GIT_CONVENTIONAL_COMMITS

# Create a custom local module
dd-dm create my-team-rules

# Remove a module
dd-dm delete GIT_CONVENTIONAL_COMMITS

# Pull updates from templates repo
dd-dm pull

# Push local changes to templates repo
dd-dm push

License

MIT

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

dd_dungeonmaster-0.2.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

dd_dungeonmaster-0.2.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file dd_dungeonmaster-0.2.0.tar.gz.

File metadata

  • Download URL: dd_dungeonmaster-0.2.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dd_dungeonmaster-0.2.0.tar.gz
Algorithm Hash digest
SHA256 43cf50a97db4c4d23eaf0aa5aa1829aaaca0b8dba38d3ec64c7ba9e5cedc28ec
MD5 f78acc37ce7bcbdcbb7227befcae16fc
BLAKE2b-256 278e3bd1b6394fa1b9679ad1e180deec58088e6e9cbc456afcdd72c1dabe159a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dd_dungeonmaster-0.2.0.tar.gz:

Publisher: publish.yml on yizyace/dd_dungeonmaster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dd_dungeonmaster-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dd_dungeonmaster-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 288a9ca09e58ff99e5a558546e9b47f377128646ef752d647ddc16fbe73ad478
MD5 f1a852c8b867fc1e020ef52d4205ea0a
BLAKE2b-256 389fec8a049b1970a41f53e7c9a6cfd897ec9db5ee1ac55acc07612e052c1319

See more details on using hashes here.

Provenance

The following attestation bundles were made for dd_dungeonmaster-0.2.0-py3-none-any.whl:

Publisher: publish.yml on yizyace/dd_dungeonmaster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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