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.1.tar.gz (24.6 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.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dd_dungeonmaster-0.2.1.tar.gz
  • Upload date:
  • Size: 24.6 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.1.tar.gz
Algorithm Hash digest
SHA256 a62774a30f459dc629596dfa88e9afe1e7d1b36ad9a9ae5d317db2138b842502
MD5 b3e5ac923d6d43d35e83631423f94bce
BLAKE2b-256 a9239cdb0f89a20ad34e5ed63483d9b5cf46fe90a5ad38c24e406f9526330a60

See more details on using hashes here.

Provenance

The following attestation bundles were made for dd_dungeonmaster-0.2.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dd_dungeonmaster-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63bca3c92b97799aa4dfd8ba5dc697a7f91c91df5b6b76ef319b5c3b3341ded3
MD5 85d4daa41d1a6b32ff7a06355ed2f611
BLAKE2b-256 a16531de234c3b8df55816c31e64a10c5ab4c777b349592c7e037a56dbea824a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dd_dungeonmaster-0.2.1-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