git-branch-code-review-ja
Purpose
Section titled “Purpose”Reviews the code in the diff between the current branch and a comparison branch, and presents a review report, a merge decision, and a fix plan. If there are problems that need fixing, it fixes only the findings you explicitly approve.
It does not commit or push.
How to start it
Section titled “How to start it”Put /skill:git-branch-code-review-ja <comparison branch> at the start of your input and send it. The comparison branch is optional, and you write it as a sentence, such as “比較ブランチを develop にして” (use develop as the comparison branch). Without it, the skill uses main on origin as the comparison branch, and uses master only if main does not exist on origin. Apart from the comparison branch, if you specify a branch name, commit SHA, or file path, it reviews that content.
This skill is not manual-start only. The Agent may start it on its own judgment based on your request. Its description says to use it when you ask for a review of a branch diff.
When to use it
Section titled “When to use it”- Use it when you want the changes on the current branch reviewed together, as a diff against the comparison branch, before merging.
- After the findings are fixed, it suggests running double-check if needed to check that the fixes have not introduced new regressions.
Example input and result
Section titled “Example input and result”Example input:
/skill:git-branch-code-review-ja Use develop as the comparison branch
According to the skill’s instructions, the result is as follows.
- It fetches the comparison branch from origin. If the current branch differs from the comparison branch, it reviews the diff from the point where the branch diverged from the comparison branch up to the working tree. This includes committed, staged, and unstaged changes, as well as untracked files.
- It reviews from the viewpoints of security, correctness, performance, maintainability, tests, and documentation. It also checks for leftover debug statements, commented-out code, TODO / FIXME comments unrelated to the Issue, and similar items.
- In the review report, it groups the findings by file, numbers them, and lists them in the order Critical (🔴), Needs improvement (🟡), and Suggestion (🟢).
- As the merge decision, it presents one of Mergeable (✅), Mergeable after fixes (⚠️), or Merge not recommended (❌), with the reason. If there is even one Critical finding, it does not choose Mergeable (✅).
- If the decision is Mergeable after fixes or Merge not recommended, it presents a fix plan and verification commands, and asks whether to apply the fixes.
- It fixes only the approved findings, by editing existing files. It does not create, delete, or rename files. After fixing, it runs the verification commands that it can run and reports the results.
- It outputs the review results and the fix plan to the chat instead of writing them to files.
- It does not commit or push.
Position in the AI-driven development workflow
Section titled “Position in the AI-driven development workflow”It is the 7th of the 11 steps in the AI-driven development workflow. The previous step is double-check, and the next step is git-commit-ja. For the order of the steps, see “Order in the AI-driven development workflow” in Bundled skills.