From claude-resources
Provides second opinions from GitHub Copilot CLI on development plans, approaches, or codebase explorations. Identifies risks, edge cases, alternatives, and suggestions. Useful during planning before implementation.
npx claudepluginhub takazudo/claude-resourcesThis skill is limited to using the following tools:
Get a second opinion from GitHub Copilot CLI on a plan, approach, or codebase exploration.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Get a second opinion from GitHub Copilot CLI on a plan, approach, or codebase exploration.
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, free for Pro users) but proceed with Copilot anyway — it is still usable. Do NOT skip.
Construct a prompt that includes:
You are reviewing a development plan. Provide a second opinion.
## Context
<what the project is, what repo we're in>
## Current Plan
<the plan or approach being considered>
## Questions
1. Are there any risks, edge cases, or issues with this approach?
2. Is there a simpler or better alternative?
3. Are there any files or areas of the codebase that should be considered but aren't mentioned?
4. Any other suggestions or concerns?
Be concise and practical. Focus on actionable feedback. If the plan looks solid, say so briefly — don't invent problems.
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-2nd.md" \
"$LOGDIR/${DATETIME}-gco-2nd-stderr.log"
Timeout: 15 minutes.
Check for quota fallback — grep the stderr log for GCO_USED_FALLBACK=:
grep '^GCO_USED_FALLBACK=' "$LOGDIR/${DATETIME}-gco-2nd-stderr.log"
If found, gco-run.sh auto-retried with gpt-4.1 because the primary model was out of quota. Notify the user with one line: "Used gpt-4.1 instead of claude-opus-4.6 because of no quota." Proceed — the feedback is still valid.
Read the output file
If empty or missing, check stderr log for errors
If Copilot timed out or produced no output, skip — the plan proceeds without the second opinion
Return the Copilot feedback to the caller. The caller decides whether to incorporate it into the plan.
No fallback needed. If Copilot fails, skip — the plan proceeds without the second opinion. This is advisory, not critical.
gco-run.sh auto-retries with gpt-4.1 (free) and writes GCO_USED_FALLBACK=gpt-4.1 ... to the stderr file. Claude MUST check stderr for this marker and tell the user "Used gpt-4.1 instead of claude-opus-4.6 because of no quota." Feedback is still valid — only skip when Copilot actually fails (timeout, no output, not installed)/gcoc-2nd to skip opus entirely and run gpt-4.1 from the start~ in paths — use $HOME