# Contributing

Work is tracked in Jira under **HUB-65**.

## Branches

- `master` is always deployable to staging. Nobody pushes to it directly.
- Branch from `master`. Any short, clear branch name is fine.
- Keep branches short-lived. Rebase on `master` (`git pull --rebase origin master`) rather than merging `master` in.

## Commits

Write short messages that say what changed. No fixed format.

## Pull requests

Mention the Jira ticket(s) in the PR title or description (e.g. `HUB-87`) so progress can be tracked.
Before you open one, check:

- [ ] `npm run check` passes (typecheck, lint, format, tests)
- [ ] New endpoints show in Swagger with a summary and every response code
- [ ] Schema changes have a migration and it runs on a fresh database (`npm run db:migrate`)
- [ ] New env vars are in `.env.example` and the Zod env schema
- [ ] No secrets, no `.env`, no customer data
- [ ] The description says what changed and how to try it (curl or Swagger steps)

At least one other developer approves before merging. Use **squash and merge**.

## Where things go

See the folder structure in [README.md](README.md) and the layers in [AGENTS.md](AGENTS.md).
To add a feature, follow [docs/adding-a-module.md](docs/adding-a-module.md).
