en un clic
review-rendercv-pr
// Review a GitHub pull request against RenderCV's codebase standards, architecture, and test requirements, then post a detailed review.
// Review a GitHub pull request against RenderCV's codebase standards, architecture, and test requirements, then post a detailed review.
| name | review-rendercv-pr |
| description | Review a GitHub pull request against RenderCV's codebase standards, architecture, and test requirements, then post a detailed review. |
Review a GitHub PR for the rendercv repository. Analyze code quality, correctness, test coverage, and adherence to project conventions, then post a review.
If a PR number or URL is provided, use it. Otherwise, list open PRs:
gh pr list --repo rendercv/rendercv --state open --json number,title,author,headRefName --limit 20
Read the PR details:
gh pr view <number> --repo rendercv/rendercv
Before reviewing, build a deep understanding of the project:
Read the referenced files, focusing on modules relevant to the PR.
Get the full diff and list of changed files:
gh pr diff <number> --repo rendercv/rendercv
gh pr view <number> --repo rendercv/rendercv --json files --jq '.files[].path'
Read the linked issue (if any) to understand the motivation:
gh pr view <number> --repo rendercv/rendercv --json body --jq '.body'
For every file touched by the PR, read the full file on the PR branch (not just the diff) to understand context:
gh pr diff <number> --repo rendercv/rendercv --patch
Also read the corresponding source and test files in the main branch to understand what existed before.
Check each of these categories systematically:
Evaluate the PR against @.claude/skills/rendercv-development-context/SKILL.md and @.claude/skills/rendercv-testing-context/SKILL.md. Also check for correctness (edge cases, regressions) and security (no injection, path traversal, or hardcoded secrets).
gh pr checks <number> --repo rendercv/rendercv
Note any failing checks — these must be resolved before merging.
Compose a structured review and post it using gh:
gh pr review <number> --repo rendercv/rendercv \
--body "$(cat <<'EOF'
## Review Summary
<1-2 sentence overview of the PR and its quality>
## Correctness
<findings>
## Code Conventions
<findings>
## Architecture
<findings>
## Testing
<findings>
## Other Notes
<any additional observations>
EOF
)" \
--<event>
Where <event> is one of:
--approve — Everything looks good, meets all standards.--request-changes — Issues that must be fixed before merging.--comment — Observations that don't block merging but are worth noting.For specific line-level feedback, add inline review comments:
gh api repos/rendercv/rendercv/pulls/<number>/comments \
--method POST \
-f body="<comment>" \
-f commit_id="$(gh pr view <number> --repo rendercv/rendercv --json headRefOid --jq '.headRefOid')" \
-f path="<file_path>" \
-f side="RIGHT" \
-F line=<line_number>
Tell the user:
RenderCV codebase architecture, source code standards, and project references. Use when writing or reviewing RenderCV code.
RenderCV test authoring standards, structure, and conventions. Use when writing or reviewing tests.
Pick up a GitHub issue (or accept one), fully understand the RenderCV codebase, implement the fix/feature with tests, and open a PR to origin/main.
Analyze a newly opened GitHub issue, comment with findings and an action plan, and offer to open a PR.
Create a PR to publish a new version of the rendercv-typst package to the Typst Universe (typst/packages repository). Validates package integrity, forks/clones the repo, copies files, and opens a PR.