# Trippy Agent Guidelines This repository follows the guidance below when making changes. ## Development commands - Check the code with `cargo check --workspace --all-features --tests`. - Test the code with `cargo test`. Do not pass `--all-features`. - Format Rust code with `cargo fmt --all`. - Format non-Rust code with `dprint fmt` (install with `cargo install --locked dprint`). - Lint with `cargo clippy --workspace --all-features --tests -- -Dwarnings`. - If CLI arguments, man pages or shell completions change, update snapshots: `cargo test && cargo insta review`. - If the `Dockerfile` changes, build it locally using `docker build . -t trippy:dev`. ## Commit messages - Use the Conventional Commits format: `[optional scope]: ` where `` is one of `feat`, `fix`, `chore`, `docs`, `style`, `refactor`, `test`, `build`, `ci`, or `revert`. - For code changes set the scope to one of `core`, `dns`, `packet`, `privilege` or `tui`. - Use backquotes for file names and code items in the description. - For documentation fixes use `docs: fix `. - Prefer small, focused commits. For larger changes, use multiple commits with clear messages. ## Recommendations - Run test, format and clippy before submitting a pull request and ensure all CI checks pass. - Keep documentation and examples in sync with code changes. - Use feature branches for separate tasks. - Open issues and pull requests through GitHub for discussion and review. - Always rebase your branch before when editing an open pull request to keep the history clean.