# contributing to haj
thanks for helping out! keeping prs clean and small makes reviewing fast.
## workflow
- base pull requests against the `dev` branch, not `main`.
- keep changes minimal and surgical; ensure similar style used across cli text, ui copy, and commit messages.
- preserve portability across `pacman`, `apt`, and `dnf`, plus pure-cli builds without `libalpm`.
## local checks
ci runs every check below on push, pr, and release tags:
```bash
cargo fmt -- --check
cargo clippy --all-targets -- -D warnings
cargo clippy --no-default-features --all-targets -- -D warnings
cargo test --locked
cargo test --no-default-features --locked
```
for release verification on nix, also check:
```bash
nix flake check --no-write-lock-file
```
## guidelines
- reuse existing helpers in [src/core](src/core) and backend traits in [src/backend](src/backend) before adding new abstractions.
- tui changes must keep layout positions stable across terminal sizes and pass `tests/tui_tests.rs`.
- avoid adding new dependencies when stdlib or an existing crate already solves the problem.