Debian Codegraph @

.claude/commands/review.md

raw
1 ---
2 description: Review an Ansible PR following the project's standardized process from CLAUDE.md
3 argument-hint: <pr_number>
4 allowed-tools: [TodoWrite, Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checkout:*), Bash(gh pr checks:*), Read, Grep, Glob, Search]
5 ---
6
7 PR Review Command
8 =================
9
10 Review an Ansible PR following the project's standardized process from `CLAUDE.md`.
11
12 Usage
13 -----
14
15 ```bash
16 /review <pr_number>
17 ```
18
19 Arguments
20 ---------
21
22 - `pr_number` (required): The GitHub PR number to review
23
24 Implementation
25 --------------
26
27 This command implements the PR Review Guidelines documented in the `PR Review Guidelines` section of CLAUDE.md.
28
29 Review Process Steps
30 --------------------
31
32 The command follows these numbered steps from CLAUDE.md:
33
34 1. **Create TodoWrite list** for systematic review tracking
35 2. **Get PR details**: `gh pr view <number>` to understand scope, motivation and the desired outcome
36 3. **Get PR diff**: `gh pr diff <number>` to see all changes
37 4. **Check required components FIRST**:
38 - Verify changelog fragment exists in `changelogs/fragments/`
39 - Verify changelog uses correct section (check `changelogs/config.yaml`)
40 - Verify tests exist and specifically cover the changed code paths
41 - Unit tests should be pytest style, and functional rather than tightly coupled to mocking
42 - Integration tests required for almost all plugin changes
43 5. **Checkout PR branch**: `gh pr checkout <number>` to examine code holistically
44 6. **Review existing feedback**: `gh pr view <number> --comments` for all comments and previous reviews
45 7. **Verify all issues addressed**: Ensure bot failures, reviewer requests, and discussion points are resolved
46 8. **Call out unresolved feedback**: Explicitly mention any discussions/requests that remain unaddressed
47
48 Critical Review Elements
49 ------------------------
50
51 - **Licensing**: Verify GPLv3/BSD-2-Clause compatibility for any new dependencies
52 - **Test scope**: Tests must exercise actual changed code, not just add random coverage
53 - **Changelog validation**: Fragment structure follows sections defined in `changelogs/config.yaml`
54
55 Each step is tracked in TodoWrite for visibility and systematic completion. A review round should not exceed 20 feedback items.