Code review

From HybridAIOne/hybridclaw · View interactive version

Code review is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Review diffs and change sets for bugs, regressions, risks, and missing tests.

How to use this skill

Skill file

Code Review

Use this skill to review local changes or an existing GitHub pull request for

correctness, regressions, maintainability, security, and missing tests.

Review Order

  1. Establish scope with git status --short, git diff --stat, and

git diff --name-only.

  1. Read the changed files, not just the diff, before judging behavior.
  2. Run targeted validation when it exists: tests, typecheck, lint, build, or

repo-specific checks.

  1. Present findings ordered by severity, then open questions, then a brief

summary.

Primary Workflows

Local Branch Review

Use local git state when the change is in the current checkout:

git status --short
git diff --stat
git diff --name-only
git diff --staged
git diff <base-branch>...HEAD
git log --oneline <base-branch>..HEAD

Replace <base-branch> with the repository's actual review base branch.

GitHub PR Review

Use gh when the review target is an open pull request:

gh pr view 123
gh pr diff 123
gh pr checkout 123
gh pr view 123 --comments

After checking out the PR branch, review it the same way as a local branch and

run the relevant repo checks before leaving comments.

What to Look For

Prioritize issues that change behavior or raise delivery risk:

Treat pure style comments as low priority unless the user explicitly asks for a

style review.

Review Output

Default to this structure:

  1. Findings
  2. Open questions or assumptions
  3. Brief summary

For each finding:

If there are no findings, say that explicitly and mention any residual risk such

as unrun integration tests or unverified deployment paths.

Working Rules

suggestions.

practical.

Useful Checks

Use targeted searches when helpful:

git diff <base-branch>...HEAD | rg "console\\.log|TODO|FIXME|HACK|debugger"
git diff <base-branch>...HEAD | rg "<<<<<<<|=======|>>>>>>>"
git diff <base-branch>...HEAD | rg -i "password|secret|token|api[_-]?key|private[_-]?key"

Prefer repo-native test commands over broad guesses. Run the smallest check set

that can confirm or disprove a suspected issue.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.