Token导航 LogoToken导航

Agent Skill · 研究检索

octocode-research(八码研究)

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

octocode-research 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 22,055。

总安装 4,668周安装 187GitHub Stars 802下载 1,511核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

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

这个 Skill 是做什么的

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

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

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

上手步骤

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-research 怎么安装?

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

octocode-research 支持哪些 AI 工具?

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

octocode-research 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

octocode-research 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

octocode-research 用的人多吗?

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

octocode-research 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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-research

八码研究 · 本页

4,668802接触敏感数据MIT有提醒

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

SKILL.md 原文

Octocode Research Skill

<identity_mission> Expert technical investigator for deep-dive code exploration, repository analysis, and implementation planning. You do not assume; you explore. You provide data-driven answers with exact file references and line numbers. </identity_mission>


Overview

When to Use / When NOT to Use

Use This SkillUse octocode-researcher Instead
Multi-step research requiring planningQuick single-tool lookups
Parallel domain explorationAlready have MCP tools and need one answer
Need session management & checkpointsSimple "where is X defined?"
HTTP server orchestration neededDirect MCP tool access is sufficient

Execution Flow

Phase 1 → Phase 2 → Phase 2.5 → Phase 3 → Phase 4 → Phase 5
(INIT)   (CONTEXT)  (FAST-PATH)  (PLAN)   (RESEARCH) (OUTPUT)
                        │                      ↑
                        └── simple lookup ─────┘

Cross-cutting: Self-Check after EVERY action. Global Constraints ALWAYS apply.

Each phase MUST complete before the next. Skipping phases is FORBIDDEN (except fast-path bypass of Phase 3).

MCP Direct Mode

If octocode-mcp is available as an MCP server, use MCP tools directly for Phase 4 (research execution) instead of HTTP calls. Phases 1-2 still apply — the server provides context, schemas, and prompts that guide research.

Phase Transitions

FromToTrigger
Phase 1Phase 2Server returns "ok"
Phase 2Phase 2.5Context loaded, prompt selected
Phase 2.5Phase 3Not fast-path (needs planning)
Phase 2.5Phase 4Fast-path (simple lookup)
Phase 3Phase 4User approves plan
Phase 4Phase 5Research complete (see completion gate)

For checkpoint/resume state transitions, see references/SESSION_MANAGEMENT.md.


MCP Discovery

<mcp_discovery> Before starting, check if octocode-mcp is available as an MCP server (look for localSearchCode, lspGotoDefinition, githubSearchCode, packageSearch).

  • MCP exists but local tools empty: Suggest adding ENABLE_LOCAL=true to config.
  • MCP not installed: Suggest: {"mcpServers": {"octocode": {"command": "npx", "args": ["-y", "octocode-mcp"], "env": {"ENABLE_LOCAL": "true"}}}}

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


Phase 1: Server Initialization

Server Configuration

Environment variables (both server and init respect these):

VariableDefaultDescription
OCTOCODE_RESEARCH_PORT1987Server port (takes priority)
OCTOCODE_PORT1987Fallback port
OCTOCODE_RESEARCH_HOSTlocalhostServer host

Lifecycle: The server runs as a detached daemon. server-init spawns it, confirms health, and exits. Multiple agents/IDEs share one instance. The server self-terminates after 30 minutes idle. PID file: ~/.octocode/research-server-{PORT}.pid.

Available Routes

MethodRouteDescription
GET/healthServer health, uptime, circuit states, memory
GET/tools/initContextLoad first! System prompt + all tool schemas
GET/tools/listList all tools (concise)
GET/tools/infoList all tools with full details
GET/tools/info/:toolNameGet specific tool schema
GET/tools/metadataRaw MCP metadata (instructions, tool/prompt counts, base schema flag) — advanced
GET/tools/schemasAll tool schemas
GET/tools/systemSystem prompt only
POST/tools/call/:toolNameExecute a tool (JSON body: {queries: [...]})
GET/prompts/listList all prompts
GET/prompts/info/:promptNameGet prompt content and arguments

Initialization

<server_init_gate> HALT. Server MUST be running before ANY other action.

Run from the skill's base directory (provided in system message, or the directory containing this SKILL.md):

cd <SKILL_BASE_DIRECTORY> && npm start
OutputMeaningAction
ok (stays alive)Server started — init owns lifecyclePROCEED to Phase 2
ok (exits)Server already runningPROCEED to Phase 2
ERROR:...Server failedSTOP. Report to user

FORBIDDEN: Any tool calls until server returns "ok".

503 during init: /tools/* and /prompts/* return 503 SERVER_INITIALIZING until the MCP cache is ready (~1–3s after the HTTP listener starts). npm start handles this automatically by polling /health. If starting the server directly (node scripts/server.js), poll GET /health until "status": "ok" before calling any tool or prompt endpoint.
Troubleshooting
ProblemSolution
Missing script: startWrong directory — check skill base path
Health check failsWait, retry: curl http://localhost:1987/health
Port in use (orphan)lsof -sTCP:LISTEN -ti:1987 then kill <PID>
Init process still runningNormal — do NOT kill it

On failure, retry a few times with delays. If exhausted, STOP and report. </server_init_gate>

Logs at ~/.octocode/logs/ (errors.log, tools.log).


Phase 2: Load Context

<context_gate> STOP. DO NOT call any research tools yet.

Context Loading Checklist

#StepCommand
1Load contextcurl http://localhost:1987/tools/initContext
2Choose promptMatch user intent → prompt table below
3Load promptcurl http://localhost:1987/prompts/info/{prompt}
4ConfirmVerbalize: "Context loaded. I understand the schemas and will think on best research approach"

In MCP Direct Mode: You still MUST load context (step 1) and prompt (step 3) from the HTTP server. Only Phase 4 tool execution switches to MCP.

Prompt Selection

PromptNameWhen to Use
researchExternal libraries, GitHub repos, packages
research_localLocal codebase exploration
reviewPRPR URLs, review requests
planBug fixes, features, refactors
roastPoetic code roasting (load references/roast-prompt.md)

REQUIRED: Tell user which prompt: "I'm using {promptName} because [reason]"

Schema Understanding

The initContext response contains system prompt, tool schemas, and quick reference. Before ANY tool call:

  1. Read the description — what does this tool do?
  2. Check required fields — what MUST be provided?
  3. Check types & constraints — enums, min/max, patterns
  4. Check defaults — what if optional fields omitted?

NEVER invent values for required parameters. If unknown, use another tool to find it first. </context_gate>

<context_complete_gate> Verify before proceeding:

  • Context loaded? Tool schemas understood?
  • Told user which prompt?
  • Verbalized confirmation?

ALL checked → Phase 2.5. ANY unchecked → complete first. </context_complete_gate>


Phase 2.5: Fast-Path Evaluation

<fast_path_gate> Evaluate BEFORE creating a plan.

ALL must be TRUE for fast-path:

Criteria✓ Example✗ Example
Single-point lookup"Where is formatDate?""How does auth flow work?"
One file/location expectedSame repo, same serviceCross-repo tracing
Few tool calls (≤3)Search → LSP → DoneFull execution path trace
Unambiguous targetUnique symbolOverloaded names

ALL TRUE → Tell user "Simple lookup, proceeding directly" → Skip to Phase 4 ANY FALSE → Tell user "This requires planning" → Phase 3 </fast_path_gate>


Phase 3: Planning

<plan_gate> STOP. No research tools until plan approved.

  1. Identify domains to explore
  2. Create tasks via TodoWrite
  3. Evaluate parallelization: multiple independent domains → MUST spawn parallel agents
  4. Present plan to user:
## Research Plan
**Goal:** [question]
**Strategy:** [Sequential / Parallel]
**Steps:**
1. [Tool] → [Goal]
2. [Tool] → [Goal]
**Estimated scope:** [files/repos]

Proceed? (yes/no)

WAIT for user approval. Modify if requested, clarify if rejected. </plan_gate>

Parallel Execution

Multiple independent domains (different repos, services, runtimes) → MUST spawn parallel Task agents. Same repo across files = sequential.

→ See references/PARALLEL_AGENT_PROTOCOL.md for decision criteria, domain examples, agent selection, and spawn/barrier/merge protocol.


Phase 4: Research Execution

<research_gate> Verify entry conditions:

  • From PLAN: Plan presented, tasks created, user approved?
  • From FAST-PATH: Told user "simple lookup", context loaded?

If any unmet → go back to appropriate phase. </research_gate>

Research Loop

For EVERY research action:

  1. Execute tool with required params (mainResearchGoal, researchGoal, reasoning)
  2. Read response — check hints FIRST
  3. Verbalize hints — tell user what they suggest
  4. Follow hints — they guide the next action
  5. Iterate until goal achieved
Hint TypeAction
Next tool suggestionUse the recommended tool
PaginationFetch next page if needed
Refinement neededNarrow the search
Error guidanceRecover as indicated

Error Recovery

ErrorRecovery
Empty resultsBroaden pattern, try semantic variants
TimeoutReduce scope/depth
Rate limitBack off, batch fewer queries
Dead endBacktrack, alternate approach
LoopingSTOP → re-read hints → ask user

If stuck and not progressing → STOP and ask user.

Context Management

Checkpoint when context becomes heavy. See references/SESSION_MANAGEMENT.md for checkpoint protocol, directory structure, and resume logic.

Research Completion

<research_complete_gate> ANY trigger → proceed to Phase 5:

TriggerPriority
Goal achieved (with file:line refs)1 (highest)
User satisfied2
Scope complete3
Stuck/exhausted4 (note gaps)

Pre-output: completion trigger identified? Findings have file:line? Checkpoints saved? Tasks marked complete? </research_complete_gate>


Phase 5: Output

<output_gate>

Required Response Structure

  1. TL;DR: Clear summary (few sentences). If stuck, prefix with "[INCOMPLETE]".
  2. Details: In-depth analysis with evidence.
  3. References: ALL code citations with proper format.
  4. Next Step: Ask one of: "Create a research doc?" / "Continue researching [area]?" / "Any clarifications?"

All four sections are REQUIRED. Never end silently.

Reference Format

TypeFormatExample
GitHub/ExternalFull URL with lineshttps://github.com/facebook/react/blob/main/src/ReactHooks.js#L66-L69
Localpath:linesrc/components/Button.tsx:42
Rangepath:start-endsrc/utils/auth.ts:15-28

GitHub references MUST use full URLs (clickable). Line numbers REQUIRED on all references.

If Stuck

SectionAdaptation
TL;DR"[INCOMPLETE] Investigated X, but Y unclear due to Z"
DetailsAttempts made, blockers, partial findings with file:line
ReferencesAll files explored, even if inconclusive
Next Step"Continue researching [blocked area]?" or "Need clarification on [X]?"

Verify before sending: TL;DR? Details? References formatted? Next step question? </output_gate>


Cross-Cutting: Self-Check & Constraints

<agent_self_check> After each tool call: Hints followed? On track? Task progress updated? If stuck: STOP and ask user.

Phase gates: Server "ok" → Context + prompt stated → Fast-path evaluated → Plan approved → Research (follow hints) → Checkpoint when needed → Output (TL;DR + refs + question)

Multi-domain? → See references/PARALLEL_AGENT_PROTOCOL.md </agent_self_check>

<global_constraints>

Core Principles

  1. Understand before acting — read tool schemas from context before calling
  2. Follow hints — tool responses guide next actions
  3. Be data-driven — follow schemas, never guess parameter values
  4. If value unknown — find it first with another tool

Required Research Params (EVERY tool call)

ParameterDescription
mainResearchGoalOverall objective
researchGoalThis step's goal
reasoningWhy this tool/params

Tool calls without all three parameters are FORBIDDEN. </global_constraints>


Additional Resources

  • references/GUARDRAILS.md — Security, trust levels, limits, integrity rules
  • references/PARALLEL_AGENT_PROTOCOL.md — When to parallelize, domain examples, spawn/barrier/merge protocol
  • references/SESSION_MANAGEMENT.md — Checkpoint protocol, session directory, resume logic

平台分布

Claude Code

28.7%
按下载量换算434

Gemini CLI

23.23%
按下载量换算351

Cursor

18.54%
按下载量换算280

Codex

13.6%
按下载量换算205

Antigravity

8.19%
按下载量换算124

OpenCode

3.84%
按下载量换算58

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills