Token导航 LogoToken导航

Agent Skill · 研究检索

codebase-search(代码库搜索)

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

codebase-search 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 34,485。

总安装 2,221周安装 89GitHub Stars 11下载 719核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill codebase-search

这个 Skill 是做什么的

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

用于查找、检索和筛选相关信息,支持代码库导航。适合定位定义、调用点、配置项或影响范围。适用于大型仓库中快速发现关键文件与依赖关系。安装命令:npx skills add https://github.com/akillness/oh-my-skills --skill codebase-search。

不替代深度阅读,仅作为前期探索工具。

来源仓库内路径:skills/codebase-search

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill codebase-search;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codebase-search 怎么安装?

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

codebase-search 支持哪些 AI 工具?

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

codebase-search 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

codebase-search 是免费的吗?

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

codebase-search 用的人多吗?

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

codebase-search 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
codebase-search

代码库搜索 · 本页

2,22111操作浏览器未明确通过

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

SKILL.md 原文

Codebase Search

When to use this skill

  • The main job is repo navigation before edits.
  • The user needs to find definitions, call sites, entry points, config owners, tests, templates, content references, or likely impact surface.
  • The repo is large enough that random file reading will waste time.
  • The request is really "where does this live / what uses it / what should I inspect first?" even if the user never says "search".
  • The repo may be app code, infra/config, content/templates, or game tooling/assets, and the first step is still discovery.

Do not use this skill as the main workflow when:

  • The user already found the area and now needs root-cause diagnosis → use debugging or log-analysis.
  • The user wants a behavior-preserving cleanup or migration plan → use code-refactoring.
  • The user wants judgment on a concrete diff / PR → use code-review.
  • The user wants a persistent whole-repo or mixed-corpus structure map → use graphify.

Core idea

codebase-search should act like a packet router, not a giant search tutorial.

  1. Normalize the request into one primary packet.
  2. Narrow scope before dumping matches.
  3. Read only the winning files.
  4. Return a compact evidence map.
  5. Route out as soon as search is no longer the bottleneck.

Read these support docs before choosing the packet:

Instructions

Step 1: Normalize the request

Convert the prompt into this intake shape first:

codebase_search_packet:
  primary_packet: exact-text | symbol-indexed | structural | config-content | hosted-search | graph-path
  repo_shape: app | infra | content | game | mixed | unknown
  search_goal: locate | references | ownership | impact | archaeology | unknown
  scope_hint: path | package | file-type | subsystem | repo-wide | unknown
  route_after: stay-here | debugging | log-analysis | code-refactoring | code-review | graphify

Choose one primary packet for the run. If two seem plausible, pick the cheaper one that reduces uncertainty fastest.

Step 2: Choose the packet

PacketUse whenBest fitsCommon tools / shapes
exact-textThe user knows a string, env var, route, flag, class name spelling, error text, or file fragmentliteral lookups, config keys, route paths, import namesrg, git grep, editor search
symbol-indexedThe user needs definitions, references, or call sitesfunction/class/interface ownership, API tracing, monorepo navigationLSP/workspace symbol, ctags, indexed repo search
structuralSyntax shape matters more than literal textmissing cleanup, unsafe pattern inventories, migration prepast-grep, Semgrep, Comby, tree-sitter-style search
config-contentThe repo surface is config, content, templates, front matter, shortcodes, scenes, assets, or build scriptsTerraform/Kubernetes, Markdown/MDX sites, Hugo/Next content, game packaging/configfile discovery + exact-text + targeted scripts
hosted-searchThe repo is remote/browser-first or cross-repo lookup mattersPR archaeology, repo you do not have locally, shareable linksGitHub/GitLab hosted search
graph-pathThe request is really about dependency tracing or persistent structurecall graph, path tracing, architecture map, graph reportgraphify, code graph/code map tools

Packet rules:

  • Prefer exact-text when the user already has a concrete token.
  • Prefer symbol-indexed for “where is this defined / referenced?”
  • Prefer structural only when regex would be too blunt.
  • Prefer config-content when the real surface is not classic source code.
  • Prefer hosted-search when local context is missing.
  • Prefer graph-path only when ordinary search is no longer enough.

Step 3: Narrow scope before reading everything

Apply at least one narrowing move before reading files:

  • limit by directory or package
  • limit by file type
  • separate authored files from generated/vendor folders
  • start with entry points, loaders, config schemas, tests, examples, or build scripts
  • in content/game repos, search metadata + template/asset surfaces before assuming code owns the answer

Useful heuristics by repo shape:

  • app → start with entry point, router/handler, config loader, test
  • infra → start with module/overlay/root config, variable/schema, deployment surface
  • content → start with content folder, front matter key, partial/include/shortcode/template
  • game → start with runtime code, engine config, scene/asset/build script, editor/visual graph references

Step 4: Read winners, not the whole match list

After the search packet returns matches:

  1. pick the most likely definition / ownership file
  2. pick 1–3 important consumers or references
  3. pick 1 config/test/example/build file when setup matters
  4. summarize the flow instead of pasting raw terminal output

Step 5: Return an evidence map

Default response shape:

## Search brief
- Goal: [what I was locating]
- Packet: exact-text | symbol-indexed | structural | config-content | hosted-search | graph-path
- Scope: [paths/file types/packages]

## Best entry points
- `path/to/file`: why it matters
- `path/to/other-file`: why it matters

## Key evidence
- `path:line` — what it shows
- `path:line` — how it connects

## Likely flow / ownership
- entry → consumer → config/test/content surface

## Next route-out
- stay in `codebase-search` or route to the next skill

Step 6: Use packet-specific heuristics

For bug-location requests
  • start from the error string, route, flag, or recent change token
  • locate the definition plus highest-signal consumers
  • switch to debugging once the likely failure path is mapped
For impact analysis
  • definition first
  • major consumers second
  • tests/config/docs/content surfaces third
  • separate must-update from maybe-affected
  • route to code-refactoring when the user is ready to change behavior-preserving structure
For config/content ownership
  • locate loader/schema/template first
  • then find runtime consumers or referenced pages/assets
  • call out whether ownership sits in config, content metadata, templates, or code
For structural search
  • explain the search shape in plain English
  • prefer AST-aware tooling
  • if forced to approximate with regex, label the confidence limit clearly
For archaeology requests
  • start from entry points, docs, examples, tests, or build scripts
  • avoid pretending you already understand the architecture after one search
  • route to graphify if the user actually wants persistent structure mapping

Step 7: Route out aggressively

Switch when the next job is no longer search:

  • Root cause, reproduction, hypotheses → debugging
  • Raw log triage → log-analysis
  • Behavior-preserving cleanup / codemod planning → code-refactoring
  • Diff / PR judgment → code-review
  • Persistent architecture graph or path tracing → graphify

Examples

Example 1: Pre-change discovery

Prompt:

Find where auth is implemented and what files I should inspect before changing it.

Good response shape:

  • choose symbol-indexed or exact-text
  • identify entry points, config, and tests
  • return a compact evidence map
  • route to code-refactoring or debugging only after the discovery step

Example 2: Config/content ownership

Prompt:

Which MDX pages still use the old pricing CTA shortcode, and where is the shared partial defined?

Good response shape:

  • choose config-content
  • search content metadata + shortcode/template surfaces
  • identify source partial plus affected pages
  • keep the answer discovery-first

Example 3: Structural query

Prompt:

Find all React effects missing cleanup. I do not want plain grep.

Good response shape:

  • choose structural
  • prefer AST-aware matching
  • list highest-confidence hits
  • label regex fallback limits if needed

Example 4: Game/infrastructure archaeology

Prompt:

Search this repo for where matchmaking region config is defined and what scenes or services consume it.

Good response shape:

  • choose config-content or symbol-indexed based on repo shape
  • separate config ownership from runtime consumers
  • call out code + asset/build surfaces if they both matter

Best practices

  1. Choose the smallest packet that can answer the question.
  2. Narrow scope before reading large match sets.
  3. Return an evidence map, not a terminal transcript.
  4. Cover config/content/game surfaces honestly; repo navigation is not only source-code lookup.
  5. Separate search from diagnosis, refactoring, review, and persistent graphing.
  6. Label confidence when structural intent is approximated with plain text search.
  7. For monorepos, group findings by package or subsystem.

References

平台分布

Codex

33.28%
按下载量换算239

Claude

29.77%
按下载量换算214

Cursor

19.37%
按下载量换算139

Gemini CLI

8.63%
按下载量换算62

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills