mit einem Klick
review-pr
// Helps review your own pull request or local changes before opening a PR. Analyzes diffs against project conventions and checks out branches locally to ensure you can apply changes. Requires the `gh` and `git` CLI tools.
// Helps review your own pull request or local changes before opening a PR. Analyzes diffs against project conventions and checks out branches locally to ensure you can apply changes. Requires the `gh` and `git` CLI tools.
Use this skill when asked to write or draft a commit message. It ensures commit messages follow the conventions in CONTRIBUTING.md.
Helps create a GitHub issue that strictly follows the conventions in CONTRIBUTING.md. Use this skill when asked to create, draft, or open a GitHub issue or bug report.
| name | review-pr |
| description | Helps review your own pull request or local changes before opening a PR. Analyzes diffs against project conventions and checks out branches locally to ensure you can apply changes. Requires the `gh` and `git` CLI tools. |
Use this skill to review your own pull requests or to get a pre-review of your local changes before opening a PR. It helps you fetch the details, check out the PR locally, and analyze the diff against project standards.
Checking out the PR locally first ensures you can apply and test changes directly during the review.
Determine if you are reviewing an open PR or local changes.
If reviewing an existing PR:
gh pr checkout <pr-number> FIRST to ensure you have the changes locally.gh pr view --json title,body,author,headRefName,baseRefName to understand the intent.gh pr diff or git diff to review the actual code changes.If reviewing local changes (Pre-PR Review):
git status to see what is being worked on.git diff HEAD to get the full diff of all tracked changes (or git diff --staged if reviewing a specific staged commit).git log -n 1 to understand the context if a commit has already been made locally.For both:
CONTRIBUTING.md and doc/howwewritego.md if necessary.Check the diff rigorously against the project's standards defined in doc/howwewritego.md and CONTRIBUTING.md:
General & Go Idioms:
image/, not images/).doc/styleguide/go-code-review-comments.md (e.g., use errors.Is/errors.As, early returns).Project-Specific Rules:
internal/command: Ensure command.Run is used for execution.internal/testhelper: Ensure existing utilities are used before creating new test tools.internal/yaml: Ensure this package is used instead of gopkg.in/yaml.v3.Testing & Documentation:
doc/styleguide/go-test-comments.md.doc/styleguide/markdown-style-guide.md)./commit-message skill. It must follow CONTRIBUTING.md, be written in complete sentences, and use the imperative mood.CRITICAL RULE: NEVER automatically push commits to GitHub. Always create commits or apply changes locally. ALWAYS use the ask_user tool at the end to allow the user to select which specific changes they want applied locally.
Present the findings from the analysis clearly. ONLY include findings that suggest or require specific changes. Do NOT include complimentary comments or general positive feedback.
Overall Assessment: [Brief summary of the PR or local change quality]
Findings: (Indicate the file and line number for each change suggested)
1. **File/Line:** [Description of actionable change]
2. **File/Line:** [Description of actionable change]
After presenting the findings, use the ask_user tool. Provide a multiple-choice question (type: 'choice', multiSelect: true) listing each of the numbered findings as an option. Ask the user: "Which of these changes would you like me to apply locally?"