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

Local Development Setup

  1. Prerequisites:

    • asdf for Python version management
    • uv for package management
  2. Clone and setup:

    git clone <repo-url>
    cd dd_dungeonmaster
    
    # Install Python version via asdf
    asdf install
    
    # Install dependencies
    uv sync --all-extras
    
  3. Run the CLI:

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

    uv run pytest
    
  5. 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.1.0.tar.gz (23.3 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.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dd_dungeonmaster-0.1.0.tar.gz
  • Upload date:
  • Size: 23.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 34417e893777bf0a2b8f34b5811bb847782f707e9c3efefcc132a83ea8b4f181
MD5 9f214146d8d9b12dbd05011e084eb4e0
BLAKE2b-256 54aa145cce4cd99fbd6c59f650f3a1aa34157581270c65f4ca284c1d53079137

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dd_dungeonmaster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5eebf901f196055c3a9481392f1bf8786081cda38ba66550e2cb4ad41826aa
MD5 878e04e7a77f21172c88a578efbd64b0
BLAKE2b-256 2517cc26bcb6437ec3a04a4f39c20bd18524cca92c4d7e9a87f68ad59e0c4c19

See more details on using hashes here.

Provenance

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