Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

github-researchGitHub 研究

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

392

周安装

16

GitHub Stars

141

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-research(GitHub 研究)
来源仓库:https://github.com/romiluz13/cc10x
仓库路径:skills/github-research
安装命令:
npx skills add https://github.com/romiluz13/cc10x --skill github-research
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/romiluz13/cc10x --skill github-research

简介

用于围绕 GitHub 仓库、Issue、Pull Request 提供辅助能力。

  • 适合查询项目状态、整理变更或辅助创建协作事项。
  • 使用时需区分只读查询和写入操作,涉及 PR 或 Issue 修改时需确认 token 权限。
  • 安装命令:npx skills add https://github.com/romiluz13/cc10x --skill github-research
  • 适用于 Codex、Claude、Cursor、Gemini CLI,通过 GitHub 安装,建议确认仓库访问范围。

SKILL.md

External Code Research

Overview

Research external patterns, documentation, and best practices from GitHub and library docs when AI knowledge is insufficient. Use Octocode MCP for GitHub research, Context7 MCP for library documentation, with WebFetch as final fallback.

Core principle: Research BEFORE building, not during. External research enhances planning, not execution.

This skill is ONLY for external research. Local codebase search is handled by other cc10x tools (Grep/Glob/Read).

The Iron Law

NO EXTERNAL RESEARCH WITHOUT CLEAR AI KNOWLEDGE GAP OR EXPLICIT USER REQUEST

If AI training knowledge covers the technology well, skip external research - UNLESS user explicitly asks. This skill is for NEW technologies, complex integrations, unfamiliar APIs, and explicit user requests.

Rationalization Prevention

ExcuseReality
"I already know this"Check if post-2024. API may have changed.
"Research takes too long"30s research prevents 2hr debugging.
"Docs are enough"GitHub shows real implementations, not ideal cases.
"I'll research if stuck"Research BEFORE is faster than research DURING.
"Not worth the tokens"One good pattern saves 10 bad attempts.

When to Use

ALWAYS invoke when:

  • User explicitly requests research ("research X", "how do others", "best practices", "find on github", "use octocode")
  • Technology released after 2024 (AI knowledge cutoff)
  • Complex integration patterns (auth, payments, real-time)
  • Local debugging failed 3+ times with external service errors

NEVER invoke when:

  • User says "quick" or "simple"
  • Standard patterns AI knows well (CRUD, REST, React basics)
  • Code review or refactoring tasks
  • Technology released before 2024 (unless user explicitly asks)

The rule: Trust octocode for HOW. This skill only decides WHEN.

User Confirmation Gate (REQUIRED)

BEFORE any research, ask the user:

AskUserQuestion({
  questions: [{
    question: "Do you want me to research GitHub and web for this task?",
    header: "Research?",
    options: [
      { label: "Yes, research", description: "Search GitHub code + web docs (~30s)" },
      { label: "No, skip", description: "Proceed with AI knowledge only" }
    ],
    multiSelect: false
  }]
})

Gate Logic:

  • User says "Yes" → Proceed to Phase 1 (Parallel Search)
  • User says "No" → STOP. Return control to calling agent with: "Research skipped by user."

Bypass Conditions (Skip gate, auto-research):

  • User already said "research" in original request
  • User said "yes" to research in previous turn
  • Debug workflow with 3+ failed attempts (urgent)

Why this gate: Prevents unwanted research delays. User controls when external calls happen.

Availability Check (REQUIRED)

Before using Octocode tools, verify availability:

# Try a simple package lookup to test MCP availability
mcp__octocode__packageSearch(name="express", ecosystem="npm")

If Octocode unavailable → Fall back to Context7 MCP If Context7 unavailable → Fall back to WebFetch

Research Process

Phase 1: Parallel Search Execution

After user confirms (gate passed), execute parallel search:

# SAME MESSAGE - parallel execution
mcp__octocode__packageSearch(name="{library}", ecosystem="npm")
mcp__brightdata__search_engine(query="{library} best practices tutorial", engine="google")

If one source fails, continue with the other. Only fall to Tier 2 if BOTH fail.

Phase 2: Let Octocode Guide the Research

Trust octocode's embedded guidance. It will:

  • Select the right tools and order
  • Optimize queries for token efficiency
  • Handle pagination and error recovery

Your job: Provide clear research goals in the tool parameters:

  • mainResearchGoal: The overall question you're trying to answer
  • researchGoal: What this specific query seeks to find
  • reasoning: Why this query helps answer the main goal

Phase 3: Summarize for cc10x Memory

Extract only what's needed for the task at hand:

  • Key patterns/approaches found
  • Gotchas or warnings discovered
  • Specific code snippets (minimal)
  • Links for future reference

DO NOT dump entire files - summarize and cite.

Research Chain (3-Tier with Parallel Search)

Tier 1: Parallel Search (PRIMARY)

Run Octocode + Bright Data in SAME MESSAGE (parallel execution):

# In same message block - both execute in parallel
mcp__octocode__packageSearch(name="{library}", ecosystem="npm")
mcp__brightdata__search_engine(query="{library} tutorial best practices 2024", engine="google")

Why parallel: Different strengths complement each other:

SourceStrengthBest For
OctocodeReal code, PRs, implementations"How do others implement X?"
Bright DataOfficial docs, tutorials, blogs"What are the gotchas?"

Merge Strategy: Use Octocode for code patterns, Bright Data for context/warnings.

Tier 1.5: Context7 Library Docs

When to use: Octocode unavailable, or need quick library API reference.

# Step 1: Resolve the library ID
mcp__context7__resolve-library-id(libraryName="{library}")

# Step 2: Query docs with specific topic
mcp__context7__query-docs(context7CompatibleLibraryID="{resolved_id}", topic="{specific API or feature}")

Best for:

  • Library API reference and usage examples
  • Framework-specific patterns and configuration
  • Quick answers without full GitHub exploration

Falls to Tier 2 when: Context7 MCP unavailable or library not indexed.

Tier 2: Native Claude Code (FALLBACK)

If Tier 1 AND Tier 1.5 fail (MCPs unavailable):

# Native Claude Code tools - always available
WebSearch(query="{library} best practices")
WebFetch(url="https://docs.{library}.com/getting-started", prompt="Extract key setup steps")

When to use:

  • Octocode MCP unavailable
  • Bright Data MCP unavailable
  • Both Tier 1 sources return empty results

Tier 3: Ask User for Context (FINAL FALLBACK)

If Tier 1 AND Tier 2 fail:

AskUserQuestion({
  questions: [{
    question: "Research sources unavailable. Can you provide documentation or context?",
    header: "Need help",
    options: [
      { label: "I'll paste docs", description: "I have documentation to share" },
      { label: "Try specific URL", description: "I have a URL you can fetch" },
      { label: "Skip research", description: "Proceed without external context" }
    ],
    multiSelect: false
  }]
})

Why this fallback: Graceful degradation. Never fail silently - always give user options.

Tier Progression Logic

START
  │
  ├─→ Tier 1: Parallel (Octocode + Bright Data)
  │     ├─ Both succeed → Merge results, DONE
  │     ├─ One succeeds → Use that result, DONE
  │     └─ Both fail → Fall to Tier 1.5
  │
  ├─→ Tier 1.5: Context7 Library Docs
  │     ├─ Success → Use result, DONE
  │     └─ Fail → Fall to Tier 2
  │
  ├─→ Tier 2: Native (WebSearch + WebFetch)
  │     ├─ Success → Use result, DONE
  │     └─ Fail → Fall to Tier 3
  │
  └─→ Tier 3: Ask User
        ├─ User provides context → Use that, DONE
        └─ User says skip → Return "No research available"

NO LOCAL SEARCH - This skill is for external research only. Local codebase search uses Grep/Glob/Read directly.

Incremental Checkpoints (During Research)

Trigger: If research involves 5+ octocode tool calls, checkpoint progress incrementally.

Why: Long research can fill context before reaching "Save Research" section. Incremental saves prevent total loss.

Checkpoint Triggers (ANY of these)

TriggerAction
5+ tool calls completedSave current findings
Significant discoverySave immediately
Switching research directionSave before pivoting
10+ minutes of researchSave progress

Checkpoint Format (Quick Save)

# In docs/research/YYYY-MM-DD-<topic>-research.md (append mode)

## Checkpoint [N] - [timestamp]
**Tools used so far:** [count]
**Findings:**
- [Finding 1]
- [Finding 2]
---

Checkpoint Operations (Permission-Free)

First checkpoint (creates file):

Bash(command="mkdir -p docs/research")
Write(file_path="docs/research/YYYY-MM-DD-<topic>-research.md", content="# Research: <topic>\n\n## Checkpoint 1 - [timestamp]\n**Findings:**\n- [findings so far]\n---")

Subsequent checkpoints (append):

Read(file_path="docs/research/YYYY-MM-DD-<topic>-research.md")
Edit(file_path="docs/research/YYYY-MM-DD-<topic>-research.md",
     old_string="---",
     new_string="---\n\n## Checkpoint [N] - [timestamp]\n**Findings:**\n- [new findings]\n---")

Memory Link (First Checkpoint Only)

After first checkpoint, immediately update memory:

Read(file_path=".claude/cc10x/activeContext.md")
Edit(file_path=".claude/cc10x/activeContext.md",
     old_string="## References",
     new_string="## References\n- Research (in progress): `docs/research/YYYY-MM-DD-<topic>-research.md`")

Why first checkpoint links memory: Even partial research is recoverable if memory points to the file.

Final Save (Still Required)

Incremental checkpoints do NOT replace "Save Research (MANDATORY)".

After research completes:

  1. Finalize the research file (remove checkpoint markers, structure properly)
  2. Update memory reference from "in progress" to final
  3. Extract patterns to patterns.md

Red Flag - Research Without Checkpoints

If research uses 5+ tool calls and NO checkpoint was saved:

  • You are at risk of total context loss
  • STOP and save current progress before continuing

Output Format

## External Research Summary

**Knowledge Gap**: [What we didn't know]

**Research Conducted**:
- Source: [repo/docs URL]
- Query: [what we searched]

**Key Findings**:
1. [Pattern/approach found]
2. [Gotcha or warning]
3. [Relevant code snippet - minimal]

**Application to Task**:
[How this applies to current work]

**References Saved**:
- [URL for future debugging]

Integration Points

Two-Phase Execution (via cc10x-router):

The router executes research BEFORE invoking agents. This is NOT a hint - it's a prerequisite.

1. Router detects github-research trigger (explicit request OR knowledge gap)
2. Router executes octocode tools directly (this skill's guidance)
3. Router passes research results to agent in prompt

Research results passed to:

  • planner agent - For informed planning decisions
  • bug-investigator agent - For external error patterns

Never used during:

  • code-reviewer - Review focuses on code itself
  • silent-failure-hunter - Speed is priority
  • integration-verifier - Verification, not research

Save Research (MANDATORY)

Research insights are LOST after context compaction unless saved. This section is NON-NEGOTIABLE.

Step 1: Save Research File

# Create directory (permission-free)
Bash(command="mkdir -p docs/research")

# Save research using Write tool (permission-free for new files)
Write(file_path="docs/research/YYYY-MM-DD-<topic>-research.md", content="[full research from Output Format above]")

File naming convention: YYYY-MM-DD-<topic>-research.md

  • Use today's date
  • Use kebab-case for topic (e.g., claude-code-tasks-system, react-server-components)

ATOMIC CHECKPOINT (DO NOT PROCEED UNTIL BOTH COMPLETE)

The next two operations MUST complete in sequence with NO agent invocations between them:

  • ✓ Research file saved to docs/research/
  • ⏸️ IMMEDIATELY proceed to Step 2 (do not invoke agents, do not pass go)

Why this is critical: If context compaction occurs between Step 1 and Step 2, the research file becomes orphaned (exists but not indexed in memory). These two operations must be atomic.

Step 2: Update Memory (Links Research to Memory)

CRITICAL: This must happen in the same execution block as Step 1

Use Edit tool with stable anchor (permission-free):

# Step 1: READ
Read(file_path=".claude/cc10x/activeContext.md")

# Step 2: VERIFY "## References" exists (if not, use fallback below)

# Step 3: EDIT using stable anchor
Edit(file_path=".claude/cc10x/activeContext.md",
     old_string="## References",
     new_string="## References\n- Research: `docs/research/YYYY-MM-DD-topic-research.md` → [Key insight]")

# Step 4: VERIFY (do not skip)
Read(file_path=".claude/cc10x/activeContext.md")

If References section doesn't exist (fallback):

Edit(file_path=".claude/cc10x/activeContext.md",
     old_string="## Last Updated",
     new_string="## References\n- Research: `docs/research/YYYY-MM-DD-topic-research.md` → [Key insight]\n\n## Last Updated")

# VERIFY (do not skip)
Read(file_path=".claude/cc10x/activeContext.md")

Step 3: Extract Patterns (Auto-Promote Learnings)

If research found gotchas or reusable patterns, add to patterns.md:

Read(file_path=".claude/cc10x/patterns.md")

Edit(file_path=".claude/cc10x/patterns.md",
     old_string="## Common Gotchas",
     new_string="## Common Gotchas
- [Gotcha from research]: [Solution] (Source: docs/research/YYYY-MM-DD-topic-research.md)")

# VERIFY (do not skip)
Read(file_path=".claude/cc10x/patterns.md")

What to extract:

  • Error patterns and their solutions
  • API quirks and workarounds
  • Integration gotchas
  • Best practices discovered

What NOT to extract:

  • Task-specific implementation details
  • One-time findings not applicable to future work
  • Raw code snippets without context

Step 4: Commit Research (User-Directed Only)

Do NOT auto-commit. If the user requests a commit, they will handle it.

Red Flags - Research NOT Complete

If you finish research WITHOUT:

  • Saving to docs/research/YYYY-MM-DD-topic-research.md
  • Updating activeContext.md with research reference
  • Extracting patterns to patterns.md (if applicable)

STOP. Research is NOT complete. Go back and save.

Why This Matters

WITHOUT SAVE:
Research → Context compaction → LOST FOREVER

WITH SAVE:
Research → docs/research/ → Memory reference → PERSISTS ACROSS SESSIONS
         → patterns.md → LEARNINGS COMPOUND

Research without documentation is wasted effort.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.06%
按下载量换算45

Claude

33.6%
按下载量换算43

Cursor

17.6%
按下载量换算22

Gemini CLI

9.45%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills