Thanks for your interest in contributing to MiniChain! This document explains how to get involved, from discussing an idea to getting a pull request merged.
Every contribution — bug fix, feature, or refactor — should be discussed before you start writing code. This avoids duplicate work and makes sure the change fits the project's minimality-first philosophy.
- Join the Stability Nexus Discord server.
- Discuss your issue, bug, or feature idea in the project's channel/thread: MiniChain discussion.
- If it's a confirmed bug or an agreed-upon feature, open a matching GitHub Issue in this repository describing the problem and the proposed approach.
Only after that discussion should you start implementation — this is the first and most important rule below.
- 🔴 MUST — Discuss non-trivial changes in Discord (see above) or in a GitHub Issue before opening a PR.
- 🔴 MUST — Follow the module layout and architecture constraints described in agent.md (one concern per module under
minichain/, state changes go throughstate.py, etc.). - 🔴 MUST — Add or update tests under
tests/for any new or changed behavior. - 🔴 MUST — Run
pytestlocally and confirm it passes before opening a PR. - 🔴 MUST — Sign off every commit per the Developer Certificate of Origin.
- 🟡 SHOULD — Keep PRs focused on a single logical change; split unrelated changes into separate PRs.
- 🟡 SHOULD — Update relevant docs (README.md, agent.md, brand/Brand.md) when behavior, commands, or conventions change.
- 🟡 SHOULD — Check
pytest --cov=minichainto make sure coverage on touched modules doesn't regress. - 🔵 SUGGESTED — Link the Discord discussion or GitHub Issue in your PR description for context.
- 🔵 SUGGESTED — Prefer small, incremental PRs over large ones when the change can reasonably be split.
- Discuss the change in Discord or a GitHub Issue (see above).
- Fork the repository and create a branch off
main. - Install dependencies:
pip install -r requirements.txt -r requirements-test.txt
- Make your changes, following the conventions in agent.md.
- Test:
pytest
- Sign off your commits per the DCO (
git commit -s). - Add yourself to Contributors.md if you aren't listed yet.
- Open a pull request against
main, describing the problem and the fix, and linking back to the Discord discussion or issue.
- Ask questions in the Stability Nexus Discord.
- Please do not contact contributors directly — keep discussion in Discord or GitHub Issues so it stays public and searchable.
All contributions to this project are made under the terms of the Developer Certificate of Origin. See Contributors.md for the list of people who have contributed.