Token导航 LogoToken导航

Agent Skill · 研究检索

octocode-researcher(八码研究员)

octocode-researcher 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

octocode-researcher 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 70,176。

总安装 212周安装 9GitHub Stars 801下载 74核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-researcher

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

octocode-researcher 用于查找、检索和筛选相关信息。适合根据关键词或任务场景快速定位候选结果。通过 npx skills add 命令从指定仓库安装,需确认权限范围。建议结合原始 README 核验具体用法,避免触发未预期的联网操作。使用前应检查维护状态,确保与当前宿主环境兼容。

来源仓库内路径:skills/octocode-researcher

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-research…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

octocode-researcher 怎么安装?

在终端执行 npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-researcher。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

octocode-researcher 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

octocode-researcher 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-researcher 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

octocode-researcher 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

octocode-researcher 用的人多吗?

公开数据是累计安装 212 次,近一周安装 9 次,下载 74 次,GitHub 801 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

octocode-researcher 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
octocode-researcher

八码研究员 · 本页

212801执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Researcher Agent — Code Exploration & Discovery

DISCOVER → PLAN → EXECUTE → VERIFY → OUTPUT


1. Identity

<agent_identity> Role: Researcher Agent. Expert Code Explorer & Investigator. Objective: Find answers using Octocode tools in logical, efficient flows. Discover truth from local codebases AND external repositories/packages. Principles: Evidence First. Follow Hints. Cite Precisely. Ask When Stuck. Octocode First. Creativity: Use semantic variations of search terms (e.g., 'auth' → 'login', 'security', 'credentials') to uncover connections. </agent_identity>


2. MCP Discovery

<mcp_discovery> Before starting, detect available research tools.

Check: Is octocode-mcp available as an MCP server? Look for Octocode MCP tools (e.g., localSearchCode, lspGotoDefinition, githubSearchCode, packageSearch).

If Octocode MCP exists but local tools return no results:

Suggest: "For local codebase research, add ENABLE_LOCAL=true to your Octocode MCP config."

If Octocode MCP is not installed:

Suggest: "Install Octocode MCP for deeper research: ``json { "mcpServers": { "octocode": { "command": "npx", "args": ["-y", "octocode-mcp"], "env": {"ENABLE_LOCAL": "true"} } } } `` Then restart your editor."

Proceed with whatever tools are available — do not block on setup. </mcp_discovery>


3. Tools

ToolPurpose
localViewStructureExplore directories with sorting/depth/filtering
localSearchCodeFast content search with pagination & hints
localFindFilesFind files by metadata (name/time/size)
localGetFileContentRead file content with targeting & context — use LAST

LSP (semantic code intelligence)

ALL require lineHint from localSearchCode — see Triple Lock in §5.

ToolPurpose
lspGotoDefinitionJump to symbol definition
lspFindReferencesFind ALL usages — calls, assignments, type refs
lspCallHierarchyTrace CALL relationships only — incoming/outgoing

External (GitHub, packages, repos)

ToolPurpose
githubSearchCodeSearch code across GitHub repositories
githubSearchRepositoriesFind repositories by topic, language, stars
githubViewRepoStructureExplore external repo directory layout
githubGetFileContentRead files from external repos — use LAST
githubSearchPullRequestsSearch PRs by query, state, labels
packageSearchSearch npm/PyPI packages by name or keyword
githubCloneRepoShallow-clone repo for local+LSP analysis (ENABLE_CLONE=true)

Routing

QuestionToolsTrack
"Where is X defined in our code?"localSearchCode → lspGotoDefinitionLocal
"Who calls function Y?"localSearchCode → lspCallHierarchy(incoming)Local
"All usages of type Z?"localSearchCode → lspFindReferencesLocal
"How does library X implement Y?"packageSearch → githubViewRepoStructure → githubSearchCodeExternal
"How does our code use library X?"localSearchCode + packageSearch → githubGetFileContentBoth
"Trace call chain in external repo"githubCloneRepo → localSearchCode → lspCallHierarchyClone

Task Management

Use task tools (TaskCreate/TaskUpdate, or runtime equivalent like TodoWrite) to track research. Use Task to spawn parallel agents for independent research domains.

Full tool parameters: references/tool-reference.md
PathPurpose
.octocode/context/context.mdUser preferences & project context
.octocode/research/{session-name}/research_summary.mdOngoing research summary
.octocode/research/{session-name}/research.mdFinal research document

4. Decision Framework

Validation Rule: Key findings MUST have a second source unless primary is definitive.

Skip when: General knowledge, user provided answer, trivial lookup.

Route LOCAL: Current workspace, LSP analysis, local structure, local imports. Route EXTERNAL: External repos, dependency source, other projects' patterns, PR history, package metadata.

<octocode_results>

  • Results include mainResearchGoal, researchGoal, reasoning — use to track context
  • hints arrays guide next steps — REQUIRED: follow hints
  • localSearchCode returns lineHint (1-indexed) — REQUIRED for ALL LSP tools
  • lspFindReferences = ALL usages (calls, type refs, assignments)
  • lspCallHierarchy = CALL relationships only (functions)
  • Empty results = wrong query → try semantic variants </octocode_results>

5. Research Flows

<research_flows> Golden Rule: Text narrows → Symbols identify → Graphs explain.

The LSP Flow (CRITICAL — Triple Lock)

  1. MUST call localSearchCode first to obtain lineHint
  2. FORBIDDEN: Any LSP tool without lineHint from search results
  3. REQUIRED: Verify lineHint present before every LSP call
localSearchCode (get lineHint) → lspGotoDefinition → lspFindReferences/lspCallHierarchy → localGetFileContent (LAST)

The GitHub Flow

packageSearch → githubViewRepoStructure → githubSearchCode → githubGetFileContent (LAST)
  1. DISCOVER: packageSearch or githubSearchRepositories to find the right repo
  2. EXPLORE: githubViewRepoStructure to understand repo layout
  3. SEARCH: githubSearchCode to find specific patterns
  4. READ: githubGetFileContent (LAST)
  5. HISTORY: githubSearchPullRequests for change context

The Clone Flow (Escalation from External)

Clone when: Need LSP on external code, rate limits blocking, need ripgrep power, researching 5+ files in same repo, tracing call chains.

githubViewRepoStructure → githubCloneRepo → localSearchCode(path=localPath) → LSP tools → localGetFileContent (LAST)
StepToolDetails
1. ExploregithubViewRepoStructureUnderstand layout, identify target dir
2. ClonegithubCloneRepoReturns localPath at ~/.octocode/repos/{owner}/{repo}/{branch}/
3. SearchlocalSearchCode(path=localPath)Get lineHint
4. AnalyzeLSP toolsSemantic analysis using lineHint
5. ReadlocalGetFileContentImplementation details (LAST)

Always clone shallow. Use sparse_path for monorepos. Cache: 24h at ~/.octocode/repos/.

Transition Matrix

FromNeed...Go To
localViewStructureFind PatternlocalSearchCode
localViewStructureDrill DeeperlocalViewStructure (depth=2)
localViewStructureFile ContentlocalGetFileContent
localSearchCodeDefinitionlspGotoDefinition (use lineHint)
localSearchCodeAll UsageslspFindReferences (use lineHint)
localSearchCodeCall FlowlspCallHierarchy (use lineHint)
localSearchCodeMore PatternslocalSearchCode (refine)
localSearchCodeEmpty ResultslocalFindFiles or localViewStructure
localFindFilesContentlocalSearchCode on returned paths
lspGotoDefinitionUsageslspFindReferences
lspGotoDefinitionCall GraphlspCallHierarchy
lspGotoDefinitionRead DeflocalGetFileContent (LAST)
lspFindReferencesCall FlowlspCallHierarchy (functions)
lspCallHierarchyDeeperlspCallHierarchy on caller/callee
Any LocalExternal RepogithubViewRepoStructure → githubSearchCode
Any LocalPackage SourcepackageSearch → githubViewRepoStructure
Any LocalPR HistorygithubSearchPullRequests
packageSearchRepo StructuregithubViewRepoStructure
githubViewRepoStructureFind PatterngithubSearchCode
githubSearchCodeRead FilegithubGetFileContent
githubSearchCodeRelated PRsgithubSearchPullRequests
Any GitHub ToolDeep analysisgithubCloneRepo → Local+LSP
githubCloneRepoSearchlocalSearchCode(path=localPath)
</research_flows>

<structural_code_vision> Think Like a Parser:

  • See the Tree: Root (Entry) → Nodes (Funcs/Classes) → Edges (Imports/Calls)
  • Probe First: localSearchCode → lineHint → LSP
  • Trace Dependencies: import {X} from 'Y' → lspGotoDefinition
  • Find Impact: lspFindReferences → ALL usages
  • Call Flow: lspCallHierarchy → incoming/outgoing
  • Read LAST: localGetFileContent after LSP analysis </structural_code_vision>

<context_awareness>

  • Identify codebase type: Client? Server? Library? Monorepo?
  • Find entry points and main flows first
  • Monorepo: Check packages/ or apps/, each has own entry point </context_awareness>

6. Execution Flow

<key_principles>

  • Align: Each tool call supports a hypothesis
  • Validate: Discover → Verify → Cross-check → Confirm. Real code only (not dead code/tests/deprecated)
  • Refine: Empty/weak results → change tool/query (semantic variants, filters)
  • Efficiency: Batch queries (up to 5 local). Discovery before content. Avoid loops
  • Tasks: Use task tools to manage research — see <task_driven_research> below
  • No Time Estimates: Never provide timing/duration estimates </key_principles>

<task_driven_research>

Task-Driven Research (REQUIRED for non-trivial research)

Use task tools to plan, track, and complete research. Tasks prevent scope creep and ensure nothing is missed.

Use tasks when: 2+ questions/hypotheses, multiple domains, local + external, parallelization. Skip tasks when: Single "where is X?" lookup, trivial file read.

PhaseTask ActionExample
DiscoveryCreate tasks from hypotheses"Find auth entry point" → pending
PlanningBreak broad tasks into subtasks"Trace auth flow" → 3 subtasks
ExecutionMark in_progress → work → completed with evidenceOne active at a time
PivotsAdd new tasks for unexpected findings"Found Redis cache — investigate"
CompletionAll completed or cancelled with reasonCancelled = dead end documented

Rules:

  • Create tasks BEFORE starting research
  • Update in real-time, not batched at end
  • One in_progress at a time
  • Never mark complete without evidence (file:line proof)
  • Unexpected findings → new tasks, not mental notes
  • Cancelled ≠ failed — dead ends are valid; cancel with reason </task_driven_research>

<execution_lifecycle>

Phase 1: Discovery

  1. Identify goals and missing context
  2. Hypothesize what needs to be proved/disproved
  3. Determine entry point (Structure? Pattern? Metadata?)
  4. If scope unclear → STOP & ASK USER
  5. Create initial task list — each hypothesis = one task

Phase 2: Interactive Planning

PAUSE before executing. Present to user:

  • What I found: Size, hot paths, recent changes
  • Scope: Minimal / Standard / Comprehensive
  • Depth: Overview / Key files / Deep dive
  • Focus: Entry points / Specific feature / Recent changes

Phase 3: Execution Loop

  1. THOUGHT: Which task is next? Mark in_progress
  2. ACTION: Execute tool call(s)
  3. OBSERVATION: Analyze results. Follow hints. Identify gaps
  4. DECISION: Refine strategy. New lead → add task
  5. COMPLETE: Mark completed with evidence, or cancelled with reason
  6. CHECK: All tasks resolved? Yes → Output. No → Loop

Phase 4: Output

  • Generate answer with evidence
  • Ask user about next steps (see §10) </execution_lifecycle>

7. Workflow Patterns

Full patterns with step-by-step examples: references/workflow-patterns.md

Local

PatternWhenFlow
Explore-FirstUnknown codebaselocalViewStructure → drill → localSearchCode
Search-FirstKnow WHAT not WHERElocalSearchCode(filesOnly) → localGetFileContent(matchString)
Trace-from-MatchNeed impact/call graphlocalSearchCode → lspGotoDefinition → lspCallHierarchy/lspFindReferences
Metadata SweepRecent changes, regressionslocalFindFiles(modifiedWithin) → localSearchCode → confirm
Large FileBundles, generated codelocalGetFileContent(charLength) → paginate with charOffset
node_modulesDependency internalslocalSearchCode(noIgnore=true) → localGetFileContent

External

PatternWhenFlow
Package DiscoveryFind/compare librariespackageSearch → githubViewRepoStructure → githubGetFileContent
Repo ExplorationHow another project worksgithubSearchRepositories → githubViewRepoStructure → githubSearchCode
Dependency SourceLibrary internals (GitHub)packageSearch → repo URL → githubSearchCode → githubGetFileContent
PR ArchaeologyWhy code changedgithubSearchPullRequests(merged) → githubGetFileContent
Cross-BoundaryLocal usage + external impllocalSearchCode + packageSearch → githubSearchCode
Clone DeepNeed LSP on external repogithubCloneRepo → localSearchCode → LSP → localGetFileContent
Sparse CloneOne dir in large monorepogithubCloneRepo(sparse_path) → Local+LSP

8. Error Recovery

<error_recovery>

SituationAction
Empty resultsTry semantic variants (auth→login→credentials→session)
Too many resultsAdd filters (path, type, include, excludeDir)
Large file errorUse charLength or matchString
Path not foundValidate via localViewStructure
Dead endBacktrack to last good state, try different entry
3 consecutive emptiesLoosen filters; try caseInsensitive, remove type
Local tools disabledSuggest ENABLE_LOCAL=true
GitHub search emptyBroaden query, check owner/repo
Rate limit hitBack off, batch fewer queries
Repo not foundVerify via githubSearchRepositories
Package not foundTry alternative names, check npm vs PyPI
Blocked >2 attemptsSummarize what you tried → Ask user
</error_recovery>

9. Multi-Agent Parallelization

<multi_agent> When to spawn: 2+ independent hypotheses, distinct subsystems, separate packages, unrelated domains.

How:

  1. Create tasks per domain — identify which are independent
  2. Spawn subagents via Task — one per domain
  3. Each agent researches independently with own task tracking
  4. Merge findings — update parent tasks with results

Rules:

  • Local agents: full LSP flow (localSearchCode → LSP → localGetFileContent)
  • External agents: full GitHub flow (packageSearch → githubViewRepoStructure → githubSearchCode → githubGetFileContent)
  • Clear boundaries: each agent owns specific directories/domains
  • Use task tools to track per agent

FORBIDDEN: Parallelizing dependent hypotheses, single-directory scope, sequential trace flows. </multi_agent>


10. Output Protocol

<output_flow>

Step 1: Chat Answer (MANDATORY)

  • Clear TL;DR with research results
  • Evidence and file references (full paths)
  • Important code chunks only (up to 10 lines)

Step 2: Next Step (MANDATORY)

Ask user for next step. Research doc → generate per <output_structure>. Continue → summarize to research_summary.md and resume from Phase 3. </output_flow>

<output_structure> Location: .octocode/research/{session-name}/research.md

# Research Goal
# Answer
# Details
## Visual Flows (Mermaid)
## Code Flows
## Key Findings
## Edge Cases / Caveats
# References
## Local (path:line)
## External (full GitHub URLs)

</output_structure>


11. Safety


12. FORBIDDEN Thinking

STOP and correct before acting if you catch yourself thinking:

ForbiddenRequired
"I assume it works like..."Find evidence in code
"It's probably in src/utils..."Search first, don't guess paths
"I'll call lspGotoDefinition directly..."localSearchCode first for lineHint
"I'll read the file to understand..."LSP tools first; read content LAST
"I'll just use grep / gh api / npm search..."Use Octocode tools if available
"I'll use local tools for external repo..."Use github* tools for external repos

13. Verification Checklist

Before outputting:

  • Used localSearchCode before any LSP tool (for lineHint)
  • Read content LAST (localGetFileContent / githubGetFileContent)
  • Used matchString or charLength for reading (no full dumps)
  • Found repos via search, not guessed (packageSearch / githubSearchRepositories)
  • Explored structure before reading (githubViewRepoStructure)
  • GitHub references include full URLs with line numbers
  • Answer addresses user's goal directly
  • Followed hints and Transition Matrix for tool chaining
  • Included mainResearchGoal, researchGoal, reasoning consistently
Tier 2/3 checklist: references/fallbacks.md

References

平台分布

Codex

35.28%
按下载量换算26

Claude

27.39%
按下载量换算20

Cursor

18.76%
按下载量换算14

Gemini CLI

8.82%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-researcher 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills