Thanks for your interest in contributing! This document covers the basics.
git clone https://github.com/neiii/bridle.git
cd bridle
cargo build
cargo test- Bug? → Open an issue using the bug template
- Feature idea? → Start a Discussion first
- Question? → Use Q&A Discussions
# Check for errors (fast)
cargo check
# Run all tests
cargo test
# Run a specific test
cargo test test_name
# Quality gates (run before committing)
cargo fmt -- --check && cargo clippy -- -D warnings && cargo test- Run
cargo fmtbefore committing - All
clippywarnings must be resolved - Follow existing patterns in the codebase
Keep them concise and descriptive:
fix: handle empty profile namesfeat: add amp harness supportdocs: update installation instructions
- Fork the repo and create a branch from
master - Make your changes
- Run the quality gates:
cargo fmt -- --check && cargo clippy -- -D warnings && cargo test - Open a PR with a clear description of what and why
- Code compiles without warnings (
cargo clippy) - Tests pass (
cargo test) - Code is formatted (
cargo fmt) - Commit messages are clear
src/
├── cli/ # CLI commands and output
├── config/ # Configuration management
├── harness/ # Harness definitions (claude, opencode, goose, amp, copilot)
├── install/ # Skill discovery and installation
└── tui/ # Terminal UI
Release automation is handled by cargo-dist and requires the following GitHub Actions secrets:
| Secret | Purpose |
|---|---|
HOMEBREW_TAP_TOKEN |
GitHub PAT with write access to neiii/homebrew-bridle for Homebrew formula publishing |
NPM_TOKEN |
npm access token for publishing bridle-ai to npm registry |
DISCORD_TEST_WEBHOOK |
Discord webhook for test release notifications |
DISCORD_RELEASE_WEBHOOK |
Discord webhook for release notifications |
- Go to npmjs.com → Access Tokens → Generate New Token
- Select Granular Access Token
- Set permissions: Packages and scopes → Read and write
- Select packages: All packages (required for first publish; can narrow after)
- Add as GitHub repo secret named
NPM_TOKEN
npm whoami # Confirm you're logged in
npm view bridle-ai # Should return 404 (not taken)I maintain this project in my spare time. Please allow 1-3 days for responses on issues and PRs.
By contributing, you agree that your contributions will be licensed under the MIT License.