Thanks for contributing to CC Branch.
The canonical contributor guide lives in docs/contributing.md. Keep that file as the source of truth for architecture boundaries, test commands, and documentation expectations.
Requirements:
- Python 3.10+
- Node.js/npm for Web UI work
tmuxwhen testinglayoutBackend: tmux- Git
Install locally:
pip install -e .Editable installs do not build Web UI assets. Build them when you need to test cc-branch serve:
python scripts/build-webui.pyRun the relevant checks before opening a pull request:
python -m unittest discover tests
python -m ruff check .
python -m mypy cc_branch
npm --prefix apps/web run lint
npm --prefix apps/web test -- --run
npm --prefix apps/web run buildFor package validation:
python -m build --sdist --wheel
python -m twine check dist/*- Keep each PR focused.
- Add or update tests for behavior changes.
- Update user-facing docs when behavior changes.
- Use clear commit messages that describe the real change.
- Include rollout or release notes when touching packaging, desktop, or publishing behavior.
When behavior changes, keep these files aligned as needed:
README.mdREADME.zh.mddocs/README.mddocs/getting-started.mddocs/quickstart.mddocs/user-guide.mddocs/features.mddocs/architecture.mddocs/webui-spec.md
Report security issues through the process in SECURITY.md.
By contributing, you agree that your contributions will be licensed under the MIT License.