code-review-intercepting
Installation
SKILL.md
code-review-intercepting
Trigger Conditions
This skill must be triggered automatically whenever the user asks to:
- Commit changes (
git commit) - Create a Pull Request (PR)
- Push code to a remote repository
Logic
- INTERCEPT the requested action (do not execute the commit or PR command yet).
- STAGE all current changes if not already staged (
git add .). - TRIGGER the
code-revieweragent to analyze the staged changes. Pass the staged changes as context to the reviewer. - REVIEW the final status returned by the
code-revieweragent. - If the
code-reviewerreturns aBLOCKEDstatus or exit code1(Critical finding), HALT the process and report the blocking issues to the user. DO NOT commit or open the PR. - If the
code-reviewerreturnsPASSEDorPASSED WITH WARNINGS(exit code0), PROCEED with the user's originally requested action.