You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/docs-review.md
+38-6Lines changed: 38 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,30 +3,62 @@ description: Review `pulumi/docs` changes for style, accuracy, and best practice
3
3
---
4
4
5
5
# Usage
6
-
# Local: /docs-review
6
+
# Local: /docs-review[pr-number]
7
7
# CI: Automatically runs on PRs
8
8
9
-
Please review the code changes in this repository and provide feedback on style, accuracy, and best practices. Compare the current branch against the `master` branch (or review uncommitted changes if present).
9
+
You will review documentation changes and provide feedback on style, accuracy, and best practices.
10
10
11
-
Provide your review as a single summary, highlighting any issues found and suggesting improvements.
11
+
## For Local Usage: Determine Review Scope
12
+
13
+
**If a PR number is provided** ({{arg}}):
14
+
- Use `gh pr view {{arg}}` to retrieve the PR title, description, and metadata
15
+
- Use `gh pr diff {{arg}}` to get the full diff of changes
16
+
- Review the PR changes according to the criteria below
17
+
18
+
**If no PR number is provided**:
19
+
- Use `git status` to check for uncommitted changes
20
+
- Use `git diff master` to compare current branch against master
21
+
- If on master with uncommitted changes, review those changes
22
+
- Review the changes according to the criteria below
23
+
24
+
## Review Criteria
12
25
13
26
Use the repository's CLAUDE.md, AGENTS.md, and STYLE-GUIDE.md for guidance on style and conventions.
14
27
28
+
Provide your review as a single summary, highlighting any issues found and suggesting improvements.
29
+
15
30
Be constructive and helpful in your feedback, but don't overdo the praise. Be concise.
16
31
17
32
Always provide relevant line numbers for any issues you identify.
18
33
19
-
**Pull Request Review Criteria**:
34
+
**Criteria:**
20
35
21
36
- Always enforce `STYLE-GUIDE.md`. If not covered there, fall back to the [Google Developer Documentation Style Guide](https://developers.google.com/style).
22
37
- Check **spelling and grammar** in all files.
23
-
- Verify that **code examples run correctly** and follow established best practices. Do not suggest untested code.
24
38
- Confirm that **all links resolve** and point to the correct targets (no 404s, no mislinked paths).
25
39
- Validate that **content is accurate and current** (commands, APIs, terminology).
26
40
- Ensure **all new files end with a newline**.
27
-
-**If files are moved, renamed, or deleted**:
41
+
-**Code examples** must run correctly and follow best practices:
42
+
- Do not suggest untested code.
43
+
- Examples should show realistic use cases, not contrived demos.
44
+
- Examples should handle errors appropriately.
45
+
- Examples should follow language-specific best practices.
46
+
-**Files moved, renamed, or deleted**:
28
47
- Confirm that moved or renamed files have appropriate aliases added to the frontmatter to avoid broken links.
29
48
- Confirm that deleted files have a redirect created, if applicable.
49
+
-**Images and assets**:
50
+
- Check images have alt text for accessibility.
51
+
- Verify image file sizes are reasonable.
52
+
- Ensure images are in appropriate formats.
53
+
-**Front matter**:
54
+
- Verify required front matter fields (title, description, etc.).
55
+
- Check meta descriptions are present and appropriate length.
56
+
-**Cross-references and consistency**:
57
+
- Check that related pages are cross-linked appropriately.
58
+
- Verify terminology is consistent with other docs.
59
+
-**SEO**:
60
+
- Check that page titles and descriptions are SEO-friendly.
61
+
- Verify URL structure follows conventions.
30
62
- When reviewing **Documentation**: Serve the role of a professional technical writer. Review for:
0 commit comments