> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Checklist for agents

> The short version of this guide for AI agents (Claude Code, Cursor, Codex) and for anyone who wants to review it in a minute.

> [!NOTE]
>
> Agents load this checklist from the `.cursor/rules/pull-requests.mdc` rule, which is always
> active, and automate it with the `.cursor/skills/open-pull-request/SKILL.md` skill. `CLAUDE.md`
> and `AGENTS.md` link to both.

## Before creating the branch

* [ ] Classify the change into a level ([decision tree](https://docs.bbrands.io/bbrands-lab/pull-requests/choose-level.md)).
* [ ] Find the initiative and the task; if they do not exist, create them in the same PR.
* [ ] Start from an up-to-date `develop` (`master` only for a hotfix).

## Branches per level

| Level | Branch | Target |
| - | - | - |
| 1 | `bugfix/<scope>/<description>` or `hotfix/<description>` | `develop` or `master` |
| 2 | `feature/<scope>/<description>` | `develop` |
| 3 | `feature/<scope>/<name>` + `…-part-N` | sub-PRs to the integration branch; final PR to `develop` |
| 4 | One Level 3 per phase, behind a flag | `develop` |

## Before the first push

* [ ] Commits in Conventional Commits with a valid scope, in English.
* [ ] Tests for the new behavior or the defect.
* [ ] Never `--no-verify`; if the hook fails, fix the cause.

## The PR

* [ ] Open it as a **draft** with the default template.
* [ ] Declare `Initiative:` and `Tasks:`; add the PR number to `prs` while it is still a draft.
* [ ] `pnpm initiatives:pr-check` green and **one** `pnpm initiatives:review`, with everything fixed.
  Without a local key (exit code 2), say in the PR that the CI review covers it; never ask for the
  key's value.
* [ ] `[skip e2e]` in the title if it does not touch the UI.
* [ ] Mark it ready (`gh pr ready`).

## After marking it ready

* [ ] One push per review round, with every fix together.
* [ ] No "Update branch" or rebase unless there is a conflict.
* [ ] Re-run only the failed jobs.
* [ ] Do not remove `do-not-merge` or add `review-override`: those are decisions for people.

## Thresholds

| Level | Reference |
| - | - |
| 1 | ≤ \~200 lines, 1 project |
| 2 | ≤ \~800 lines, ≤ 40 files |
| 3 | sub-PRs ≤ \~600 lines |
| All | Over 1,500 lines or 60 files: split it, or `large-change` with a recorded decision |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.