From claude-resources
Reviews code diffs using GitHub Copilot CLI, with fallback to Claude Code sub-agents if Copilot is unavailable or quota-exhausted.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:gco-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Code review via GitHub Copilot CLI, synthesized by Claude Code.
Code review via GitHub Copilot CLI, synthesized by Claude Code.
Before doing anything, check if Copilot is currently in degraded mode:
RATE_CHECK=$(node $HOME/.claude/scripts/gco-rate-limit.js check 2>&1)
If the output starts with degraded:, notify the user that Copilot is in low-cost mode (auto-downgraded model) but proceed with Copilot anyway — it is still usable. Do NOT skip or fall back.
BRANCH=$(git branch --show-current)
BASE=$(gh pr view --json baseRefName -q '.baseRefName' 2>/dev/null)
If no PR, use default branch:
BASE=$(git remote show origin | grep 'HEAD branch' | awk '{print $NF}')
Generate the diff and build a review prompt:
DIFF=$(git diff "$BASE"...HEAD)
Construct the prompt:
Review the following code changes (diff against $BASE branch).
Focus on:
1. Bugs, logic errors, and potential runtime failures
2. Security vulnerabilities (injection, XSS, auth issues)
3. Performance problems
4. Missing error handling at system boundaries
5. Breaking changes or regressions
For each finding, provide:
- File and approximate location
- Severity (high/medium/low)
- What the issue is and why it matters
- Suggested fix
Be concise. If the code looks good, say so briefly — don't invent problems.
Diff:
<the diff content>
LOGDIR=$(node $HOME/.claude/scripts/get-logdir.js)
mkdir -p "$LOGDIR"
DATETIME=$(date +%Y%m%d_%H%M%S)
bash $HOME/.claude/skills/gco/scripts/gco-run.sh \
"<prompt>" \
"$LOGDIR/${DATETIME}-gco-review.md" \
"$LOGDIR/${DATETIME}-gco-review-stderr.log"
Run as a background Bash task with 15-minute timeout.
After Copilot completes (or times out):
$LOGDIR/${DATETIME}-gco-review.md)If Copilot timed out, produced no usable output, hit no-quota (402), or is not installed:
code-reviewer subagents in parallel (like /light-review) to review the diff against $BASE/light-review was invokedIf fixes were applied, commit with a descriptive message.
~ in paths — use $HOME$LOGDIR/${DATETIME}-gco-review.md (timestamped)npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesRuns code review using OpenAI Codex CLI in parallel instances with fallback to Claude Code. Activates on 'review' commands or after implementation for quality checks.
Reviews code changes using parallel personas for correctness, testing, maintainability, and conditional areas like security, performance, APIs. Merges into P0-P3 severity reports for PR prep and iterative feedback.
Orchestrates parallel agents to review code changes for CLAUDE.md compliance, bugs, git history, and security with confidence scores. Outputs reports or posts to GitHub PRs.