Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

octocodeoctocode 搜索

Agent Skill

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

总安装

312

周安装

13

GitHub Stars

公开资料未说明

下载量

104
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add 5dlabs/cto --skill "octocode"

简介

octocode 用于发现并安装其他 AI 代理的技能。

  • 适用于 Codex、Claude、Cursor 等平台扩展 Agent 能力。
  • 通过 npx 从 GitHub 安装,需指定技能路径。
  • 安装后应验证技能是否兼容当前宿主环境。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • octocode 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

OctoCode (Semantic Code Research)

Use OctoCode to search across GitHub repositories for real implementations, patterns, and to conduct code/security reviews. Unlike Context7 (documentation lookup), OctoCode finds actual production code.

Tools

ToolPurpose
octocode_githubSearchCodeSearch code across repositories by content or path
octocode_githubSearchRepositoriesDiscover repositories by topics, keywords, stars
octocode_githubViewRepoStructureExplore repository directory structure
octocode_githubGetFileContentRead files with pattern matching and line ranges
octocode_githubSearchPullRequestsSearch PRs with discussions, diffs, and metadata
octocode_packageSearchSearch npm and PyPI packages

When to Use OctoCode vs Context7

NeedToolWhy
Library API documentationContext7Curated, version-specific docs
Find real implementationsOctoCodeSearches actual codebases
How does React do X?OctoCodeSearch React's source code
Axum middleware examplesOctoCodeFind production patterns
PR review with evidenceOctoCode/review_pull_request command
Security vulnerability patternsOctoCode/review_security command

Common Workflows

1. Research Implementation Patterns

# Find OAuth implementations in Rust
octocode_githubSearchCode({
  query: "oauth axum",
  language: "rust",
  stars: ">100"
})

# Then explore the top result
octocode_githubViewRepoStructure({
  owner: "found-org",
  repo: "found-repo",
  path: "src/auth"
})

# Read the specific implementation
octocode_githubGetFileContent({
  owner: "found-org",
  repo: "found-repo",
  path: "src/auth/oauth.rs"
})

2. PR Review (Cleo)

For code quality reviews, use OctoCode to find canonical implementations for comparison:

# Find how top projects handle the same pattern
octocode_githubSearchCode({
  query: "error handling middleware",
  language: "typescript",
  stars: ">1000"
})

3. Security Analysis (Cipher)

For security reviews, search for vulnerability patterns and fixes:

# Find how security issues were fixed
octocode_githubSearchPullRequests({
  query: "CVE fix authentication",
  state: "merged",
  repo: "relevant/repo"
})

4. Research for Task Generation (Morgan)

Before generating implementation tasks, research existing patterns:

# How do multi-agent platforms handle task decomposition?
octocode_githubSearchCode({
  query: "task decomposition agent",
  language: "rust OR python",
  stars: ">500"
})

OctoCode Commands (Prompts)

OctoCode provides specialized prompt commands for complex research:

CommandPurposeUse Case
/researchDeep code discovery and pattern analysisFinding implementations before coding
/planResearch-backed implementation planningPlanning complex features
/review_pull_requestDefects-first PR analysisQuality reviews with evidence
/review_securitySecurity audit with validationSecurity analysis with citations

Using /research

/research How does React's useState hook work internally?
/research Compare state management: Redux vs Zustand vs Jotai
/research Find authentication patterns in axum Rust projects

Using /review_pull_request

/review_pull_request prUrl: https://github.com/5dlabs/cto/pull/123

This provides:

  • Defects & Bugs: Logic errors, edge cases, race conditions
  • Security Issues: Injection vulnerabilities, auth bypasses
  • Performance: N+1 queries, memory leaks
  • Code Quality: Complexity, maintainability

Using /review_security

/review_security repoUrl: https://github.com/5dlabs/cto

This provides:

  • Authentication & Authorization: Auth flows, session management
  • Input Validation: Injection points, sanitization
  • Secrets Management: Hardcoded credentials, API keys
  • Dependencies: Known vulnerabilities, supply chain risks

Best Practices

  1. Use both tools together - Context7 for docs, OctoCode for implementations
  2. Be specific with searches - "axum middleware error handling" not "error handling"
  3. Filter by stars - stars:>100 for quality code
  4. Cite your sources - Include GitHub links in research findings
  5. Check recent PRs - For understanding how issues were solved

Integration with Deep Research

OctoCode complements Firecrawl for comprehensive research:

Research TypePrimary ToolSecondary Tool
Competitive analysisFirecrawl AgentOctoCode (open source competitors)
Implementation patternsOctoCodeContext7 (docs for libraries used)
Best practicesFirecrawlOctoCode (real code examples)
Bug investigationOctoCodeGitHub MCP (internal PRs)

Example: Research-Backed Task Generation

When Morgan processes a PRD mentioning "implement OAuth like Auth0":

1. Use OctoCode to search for OAuth implementations:
   octocode_githubSearchCode({ query: "oauth2 refresh token rotation rust" })

2. Analyze how top projects structure auth:
   octocode_githubViewRepoStructure({ owner: "top-project", repo: "auth" })

3. Extract patterns from implementations:
   octocode_githubGetFileContent({
     owner: "top-project",
     repo: "auth",
     path: "src/oauth.rs",
     matchString: "refresh_token"
   })

4. Embed findings in task details for implementation agents

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

Claude Code

26.75%
按下载量换算28

windsurf

23.71%
按下载量换算25

trae

19.72%
按下载量换算21

OpenCode

14.15%
按下载量换算15

Codex

8.62%
按下载量换算9

Antigravity

3.7%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills