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
-
Clone and setup:
git clone https://github.com/yizyace/dd_dungeonmaster.git cd dd_dungeonmaster uv sync --all-extras
-
Run the CLI:
uv run dd-dm --help
-
Run tests:
uv run pytest
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43cf50a97db4c4d23eaf0aa5aa1829aaaca0b8dba38d3ec64c7ba9e5cedc28ec
|
|
| MD5 |
f78acc37ce7bcbdcbb7227befcae16fc
|
|
| BLAKE2b-256 |
278e3bd1b6394fa1b9679ad1e180deec58088e6e9cbc456afcdd72c1dabe159a
|
Provenance
The following attestation bundles were made for dd_dungeonmaster-0.2.0.tar.gz:
Publisher:
publish.yml on yizyace/dd_dungeonmaster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dd_dungeonmaster-0.2.0.tar.gz -
Subject digest:
43cf50a97db4c4d23eaf0aa5aa1829aaaca0b8dba38d3ec64c7ba9e5cedc28ec - Sigstore transparency entry: 849485155
- Sigstore integration time:
-
Permalink:
yizyace/dd_dungeonmaster@e3311dcc73a4b9a9ab9140fea0b3c8e181f5285e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yizyace
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e3311dcc73a4b9a9ab9140fea0b3c8e181f5285e -
Trigger Event:
release
-
Statement type:
File details
Details for the file dd_dungeonmaster-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dd_dungeonmaster-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288a9ca09e58ff99e5a558546e9b47f377128646ef752d647ddc16fbe73ad478
|
|
| MD5 |
f1a852c8b867fc1e020ef52d4205ea0a
|
|
| BLAKE2b-256 |
389fec8a049b1970a41f53e7c9a6cfd897ec9db5ee1ac55acc07612e052c1319
|
Provenance
The following attestation bundles were made for dd_dungeonmaster-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on yizyace/dd_dungeonmaster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dd_dungeonmaster-0.2.0-py3-none-any.whl -
Subject digest:
288a9ca09e58ff99e5a558546e9b47f377128646ef752d647ddc16fbe73ad478 - Sigstore transparency entry: 849485166
- Sigstore integration time:
-
Permalink:
yizyace/dd_dungeonmaster@e3311dcc73a4b9a9ab9140fea0b3c8e181f5285e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yizyace
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e3311dcc73a4b9a9ab9140fea0b3c8e181f5285e -
Trigger Event:
release
-
Statement type: