From claude-resources
Conducts web research on libraries, APIs, best practices, and technical topics using GitHub Copilot CLI. Synthesizes findings with fallback to Claude Code researcher if unavailable.
npx claudepluginhub takazudo/claude-resourcesThis skill is limited to using the following tools:
Web research via GitHub Copilot CLI, synthesized by Claude Code.
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.
Web research 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, free for Pro users) but proceed with Copilot anyway — it is still usable. Do NOT skip or fall back.
Clarify what needs to be researched:
Research the following topic: <topic>
Specific questions to answer:
1. <question 1>
2. <question 2>
3. <question 3>
Provide:
- Key findings with sources/URLs where possible
- Comparison of alternatives if applicable
- Concrete recommendations based on findings
- Code examples if relevant
Be thorough but concise. Cite sources.
LOGDIR=$(node $HOME/.claude/scripts/get-logdir.js)
mkdir -p "$LOGDIR"
DATETIME=$(date +%Y%m%d_%H%M%S)
SLUG="<short-topic-slug>"
bash $HOME/.claude/skills/gco/scripts/gco-run.sh \
"<research prompt>" \
"$LOGDIR/${DATETIME}-gco-research-${SLUG}.md" \
"$LOGDIR/${DATETIME}-gco-research-${SLUG}-stderr.log"
Timeout: 15 minutes.
After Copilot completes (or times out):
Check for quota fallback — grep the stderr log for GCO_USED_FALLBACK=:
grep '^GCO_USED_FALLBACK=' "$LOGDIR/${DATETIME}-gco-research-${SLUG}-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 output is still valid.
Read the output file
If empty or missing, check stderr log for errors
If Copilot timed out or failed, jump to Fallback
If Copilot timed out, produced no usable output, or is not installed:
researcher subagent to perform the research via Claude Code tools (WebSearch, WebFetch, etc.)Save the final synthesized findings:
node $HOME/.claude/scripts/save-file.js "{logdir}/{timestamp}-research-{topic}.md" "<content>"
Then format:
pnpm dlx @takazudo/mdx-formatter --write <file>
researcher subagent if Copilot failsgco-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." Output is still valid — do not fall back to the researcher subagent unless Copilot actually fails (timeout, no output, not installed)/gcoc-research to skip opus entirely and run gpt-4.1 from the start~ in paths — use $HOME