Debian Codegraph @

.claude/skills/review/SKILL.md

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