Thank you for considering contributing! bmad-loop is part of the BMad ecosystem, and we believe in Human Amplification, Not Replacement — bringing out the best thinking in both humans and AI through guided collaboration.
💬 Discord: Join our community for real-time discussions, questions, and collaboration.
Before you write code: talk to us on Discord.
If your change adds features, restructures code, or touches more than a couple of files, confirm with a maintainer that it fits. A large PR out of the blue has a high chance of being closed — regardless of effort invested. A five-minute conversation can save you hours.
bmad-loop is a deterministic orchestrator: plain Python drives the loop while LLMs do only the creative work inside disposable coding-CLI sessions. Every contribution should keep that line clean — no LLM in the control loop — and answer: "Does this make humans and AI better together?"
✅ What we welcome:
- Bug fixes and reliability improvements to the control loop, hooks, and verification gates
- New CLI adapter profiles (codex, gemini, cursor, …) and plugin examples
- Better docs, setup walkthroughs, and troubleshooting guides
- Tests that pin down behavior
❌ What doesn't fit:
- Moving orchestration decisions into an LLM (it must stay deterministic Python)
- Complexity that creates barriers to adoption
- Bulk refactors nobody asked for
ALL bug reports and feature requests MUST go through GitHub Issues.
- Search existing issues — Use the GitHub issue search to check if your bug or feature has already been reported
- Search closed issues — Your issue may have been fixed or addressed previously
- Check discussions — Some conversations happen in GitHub Discussions
After searching, if the bug is unreported, use the bug report template and include:
- Clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Your environment (coding CLI, OS, bmad-loop version from
bmad-loop --version) - Screenshots or error messages if applicable
After searching, use the feature request template and explain:
- What the feature is
- Why it would benefit the bmad-loop community
- How it strengthens human-AI collaboration
For naming community modules or plugins, review TRADEMARK.md for proper naming conventions (e.g., "My Plugin (BMad Community Plugin)").
| Work Type | Requirement |
|---|---|
| Typo / small bug fix | Just open the PR |
| Feature or large change | Confirm with a maintainer on Discord before you start |
bmad-loop is a Python project managed with uv.
git clone https://github.com/YOUR-USERNAME/bmad-loop.git
cd bmad-loop
uv sync --all-extras # installs deps + the [tui] extra + dev tools (pytest, ruff)
uv run pytest -q # unit + adapter scenarios + tmux integrationLinting and formatting run through trunk (ruff, black, isort, prettier, markdownlint, and more). Run trunk check before pushing — a pre-push hook enforces it, so formatting/lint failures surface locally instead of in CI:
trunk fmt # auto-format changed files
trunk check # lint + format verification (what CI runs)Releases are cut by maintainers. The version field is validated in CI; if you touch it, run uv run --no-project python scripts/sync_version.py --check.
Submit PRs to the main branch. We use trunk-based development. Releases are cut from main.
- Ideal: 200-400 lines of code changes
- Maximum: 800 lines (excluding generated files)
- One feature/fix per PR
If your change exceeds 800 lines, break it into smaller PRs that can be reviewed independently.
Given the nature of this project, we expect most contributions involve AI assistance — that's fine. What we require is heavy human curation. You must understand every line you're submitting, have made deliberate choices about what to include, and be able to explain your reasoning.
We will reject PRs that read like raw LLM output: bulk refactors nobody asked for, unsolicited "improvements" across many files, or changes where the submitter clearly hasn't read the existing code. Using AI to write code is normal here; using AI as a substitute for thinking is not.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/bmad-loop.git - Create a branch:
git checkout -b fix/descriptionorgit checkout -b feature/description - Make changes — keep them focused
- Verify:
trunk checkanduv run pytest -qboth pass - Commit:
git commit -m "fix: correct typo in README" - Push:
git push origin fix/description - Open PR from your fork on GitHub
## What
[1-2 sentences describing WHAT changed]
## Why
[1-2 sentences explaining WHY this change is needed]
Fixes #[issue number]
## How
- [2-3 bullets listing HOW you implemented it]
## Testing
[1-2 sentences on how you tested this]Keep it under 200 words.
Use conventional commits:
feat:New featurefix:Bug fixdocs:Documentation onlyrefactor:Code change (no bug/feature)test:Adding testschore:Build/tools changes
Keep messages under 72 characters. Each commit = one logical change.
| ✅ Do | ❌ Don't |
|---|---|
| Change one thing per PR | Mix unrelated changes |
| Clear title and description | Vague or missing explanation |
| Reference related issues | Reformat entire files |
| Small, focused commits | Copy your whole project |
| Work on a branch | Work directly on main |
- Keep the control loop deterministic — orchestration logic is plain Python, never an LLM call. LLMs only run inside disposable coding-CLI sessions.
- Python style is enforced by trunk (ruff, black, isort) at line-length 100 — let
trunk fmthandle formatting. - Tests live under
tests/; add or update them for behavior changes. The mock adapter lets most of the loop run without a live CLI. - Skills ship as markdown under
src/bmad_loop/data/skills/(thebmad-loop-*automation skills). - Plugins extend the orchestrator via a
plugin.tomlmanifest — see the plugin authoring guide. - New coding CLIs are usually a TOML profile, not Python — see the CLI adapter section in the README and the adapter authoring guide (use
bmad-loop probe-adapterto collect the hook/transcript/token data a profile needs).
- 💬 Discord: Join the community
- 🐛 Bugs: Use the bug report template
- 💡 Features: Use the feature request template
By participating, you agree to abide by our Code of Conduct.
By contributing, your contributions are licensed under the same MIT License. See CONTRIBUTORS.md for contributor attribution.