Token导航 LogoToken导航

Agent Skill · 研究检索

codebase-explorer(代码库浏览器)

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

codebase-explorer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 35,605。

总安装 2,056周安装 84GitHub Stars 1下载 659核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/quicksilversurfer/codebase-explorer --skill codebase-explorer

这个 Skill 是做什么的

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

codebase-explorer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用于研究检索类任务,支持多宿主环境集成。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codebase-explorer 怎么安装?

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

codebase-explorer 支持哪些 AI 工具?

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

codebase-explorer 需要什么权限?

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

codebase-explorer 是免费的吗?

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

codebase-explorer 用的人多吗?

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

codebase-explorer 安全吗?

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

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
codebase-explorer

代码库浏览器 · 本页

2,0561接触敏感数据未明确通过

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

SKILL.md 原文

Codebase Explorer

A field manual for understanding unfamiliar code. Produces navigable maps of system behavior, not summaries of file contents.

Core Principle

The file tree is storage, not understanding. Directory structure reflects how a team organized artifacts. Logic traces reveal why code exists and what it does. When these conflict, trust the trace.

Understanding is not "I have read the code." Understanding is "I can tell you what happens when X changes."

You cannot understand a whole system. Build a portfolio of vertical slices — complete paths from input to output that let you predict behavior in bounded regions.


Who This Is For

This skill produces different value for different audiences. Adapt depth and vocabulary to the user's role.

AudienceWhat They NeedEmphasize
Developer inheriting codeWhere to start, what's safe to changeVertical slices, shared fate groups, implicit contracts
Tech lead / architectRisk map, coupling analysis, refactoring targetsSmells, shared fate groups, substrate constraints
Engineering managerChange cost estimates, team coordination needsRisk profile, shared fate groups, unknowns
Product managerWhat's hard to change vs. easy, where bottlenecks liveRisk profile (in business terms), substrate constraints
Security auditorAttack surface, data flow, trust boundariesI/O boundary map, implicit contracts, data lineage
New hire onboardingMental model of how the system worksPipeline flow / architecture diagram, atmosphere, vertical slices
Consultant / contractorFast orientation before making changesQuick Assessment template, archetype classification
Due diligence reviewerCode quality signal, technical debt inventorySmells, activity heat map, unknowns

When the user's role is unclear, default to the developer perspective but include risk profile and unknowns sections — these are universally useful.


When This Skill Shines

This skill adds the most value in these situations:

  • Inherited codebases with poor or missing documentation
  • Multi-service architectures where no one person understands the whole system
  • Pre-rewrite assessment — understanding what exists before deciding what to replace
  • Incident response on unfamiliar systems — quickly identifying blast radius
  • Open source contribution — understanding a project before submitting PRs
  • Post-acquisition evaluation — assessing code quality and technical debt
  • Compliance / security audits — mapping data flow and trust boundaries
  • Onboarding — giving new team members a navigable mental model

Workflow

The exploration follows four phases. Complete each before moving to the next.

Phase 0: Archetype Detection (First 2 Minutes)

Before reading any business logic, determine the archetype of the codebase. The archetype determines which vertical slice strategy to use, which smells to prioritize, and what the primary output artifact should be.

Detection method: Check the root directory for signature files.

Signal FilesArchetype
template.yaml / serverless.yml / statemachine/ / stepfunctions/Serverless Pipeline
Dockerfile + route handlers (app.py, server.js, main.go)Backend API
package.json with React/Vue/Svelte/Next + src/components/Frontend Application
dags/ / pipeline/ / airflow.cfg / dbt_project.ymlData Pipeline
setup.py / pyproject.toml with lib structure, no main entry pointLibrary / SDK
main.tf / *.tf / cdk.json / CloudFormation without Lambda codeInfrastructure as Code
CLI entry points (__main__.py, bin/, Makefile as primary interface)CLI Tool
train.py / model/ / notebooks + requirements.txt with ML libsML System

If multiple signals match, pick the primary archetype based on where the most code lives. Note secondary archetypes.

Output: Archetype classification with confidence level. This gates all subsequent phases.


Phase 1: Orientation

Before reading business logic, answer four questions about the shape of the system. For each, produce the specified output artifact.

Q1: Where is the Dirt?

Map the I/O boundary — where the system touches the world.

  1. Identify entry points (main functions, route handlers, event listeners, exported APIs)
  2. For each entry point, find the first external call
  3. Mark functions: ○ Pure (no I/O) · ● Impure (touches world) · ◐ Mixed
  4. Map the boundary: where data enters, where it leaves

Signals: fetch/axios/http → network · fs/readFile → filesystem · query/execute/find/save → database · Date.now()/Math.random() → non-determinism · process.env/config.get → environment coupling

Output: I/O boundary map

Q2: What is the Substrate?

Identify the hard limits — memory, payload size, timeouts, rate limits — that constrain what the code can actually do.

  1. Check dependency manifests for runtime constraints
  2. Find config files, note limits: maxPayloadSize, timeout, poolSize, maxRetries
  3. For web apps: measure initial payload size and request count
  4. Search for memory patterns: streams, pagination, cursors, chunking — absence is a smell

Signals: Hardcoded round-number timeouts (30000, 60000) · Missing pagination on list endpoints · Synchronous reads of user-provided paths · Unbounded array accumulation

Output: Constraint list with compliance notes

Q3: What are the Implicit Contracts?

Find magic values — literals that encode business semantics without naming them.

  1. Search for string literals in conditionals: if (x === "some_string")
  2. Search for numeric literals other than -1, 0, 1, 2
  3. For each: would this break if the *meaning* of data changed?
  4. Flag literals that assume specific values exist in databases or external systems

Distinguish: Config values (ports, batch sizes) are tuning parameters, not magic. Magic values encode *semantics*: status codes, type discriminators, string-matched business logic.

Output: Fragility list

Q4: Where is Attention Flowing?

Use git history to map organizational memory. Start with a single probe command before investing in detailed analysis.

Step 1 — Probe: Run git log --oneline -1 first. If this fails (orphan branch, no commits), skip to fallback signals.

Step 2a — If history exists:

  1. git log --oneline -100 — recent activity themes
  2. git log --format='%H' --since='6 months ago' | wc -l — velocity
  3. For key files: git log --oneline -10 <file> — change recency
  4. Identify files with zero commits in 12+ months

Signals: 50+ commits in 3 months → hot zone · Unchanged 2+ years → frozen · Recent "fix"/"hotfix"/"revert" clusters → instability · Single-author files → knowledge silos

Step 2b — If NO history exists (orphan branch, fresh repo, extracted code):

  1. Check git status — staged vs. untracked files reveal intent
  2. Check git remote -v — presence/absence of remote reveals deployment maturity
  3. Check git branch -a — orphan branch or missing main = pre-initial-commit
  4. Look for deleted files in staging (AD prefix) — reveals prior architecture that was replaced
  5. Check file modification times via ls -lt on key directories

Output: Activity heat map (from git history) OR maturity assessment (from fallback signals). State which signal source was used.


Phase 2: Vertical Slices (The Value Trail)

Do not survey the whole system. Trace a single observable value from one end of the system to the other. One complete vertical slice is worth more than a shallow survey of everything.

The slicing strategy depends on the archetype detected in Phase 0.


Strategy A: Frontend Applications — Trace a Visible Value

Step 1 — Pick a Value: Something visible and concrete. "The green marker." "The number 63 in the header."

Step 2 — Trace Upstream (Render → Logic): Find the code that produces this value. You want the *render site*.

Step 3 — Trace Data (Logic → State): Follow backward through assignments. You want the *decision point*.

Step 4 — Trace Source (State → Input): Find where the data originates — API, database, user input. You want the *boundary*.

Step 5 — Record: Entry point, decision points, render site, impure calls along the path.


Strategy B: Pipelines — Trace a Record Through Stages

Pipelines have no "render site." Data transforms as it flows. The natural slice is: follow one entity from ingestion to final output.

Step 1 — Pick an Entity: A concrete data object the pipeline processes. "One arXiv paper." "One customer order."

Step 2 — Trace Forward (Ingestion → Output): At each stage, answer:

  • What fields does this stage read?
  • What fields does this stage add, modify, or remove?
  • What external calls happen?
  • What is the storage location where the result lands?
  • What implicit contracts exist with the next stage?

Step 3 — Map Schema Evolution: How does the entity's shape change at each stage? This is the pipeline's real architecture.

Step 4 — Identify Inter-Stage Contracts: For each handoff:

  • Serialization format (JSON, JSONL, Parquet)
  • Storage location convention (hardcoded vs. config)
  • Which fields the next stage assumes exist
  • Whether validation happens at the boundary

Step 5 — Record: Produce a data lineage map: stage → transformation → output location → next stage. Mark each boundary with its contract type.

This is the primary artifact for pipeline codebases.


Strategy C: Backend APIs — Trace a Request

Step 1 — Pick a Request: A concrete endpoint that touches multiple layers.

Step 2 — Trace Inward: Route → middleware → handler → service → persistence.

Step 3 — Trace the Response: How is data shaped for return? Where are errors caught?

Step 4 — Record: Route → middleware chain → handler → service calls → data access → response shaping.


Strategy D: Libraries / SDKs — Trace a Public API

Step 1 — Pick an Exported Function: The most-used public API (check README or tests).

Step 2 — Trace Inward: Public interface → internal modules → core logic.

Step 3 — Map Abstraction Layers: Where does the library hide complexity?

Step 4 — Record: Public API → internal dispatch → core logic → edge case handling.


Strategy E: Infrastructure as Code — Trace Resource Dependencies

Step 1 — Pick a Core Resource: The one other resources depend on most.

Step 2 — Trace Dependents: What breaks if this changes? Follow Ref, !GetAtt, depends_on.

Step 3 — Identify Blast Radius: What must deploy together?

Step 4 — Record: Resource → dependents → blast radius → deployment order.


General Guidance

Repeat for 3–5 slices. These usually reveal the system's true architecture.

For advanced techniques (handling trace convergence, recognizing dead code), see references/advanced-techniques.md.


Phase 3: Smell Detection

Scan for architectural smells — patterns that signal structural problems. Prioritize smells that match the detected archetype.

Read references/smell-catalog.md for the full catalog with signals, risks, and verification procedures.

Universal smells (check regardless of archetype):

SmellSignalRisk
Hidden SchemaString-matching values in conditionalsFragility to data migration
Silent OverflowUnbound iteration without size guardsScale failure
God Object1000+ line files, 20+ method classesComprehension collapse
Orphaned ErrorEmpty catch blocks, log-and-forgetSilent failure
Time BombHardcoded years, fixed date comparisonsPredictable future failure

Pipeline-specific smells (prioritize for Data Pipeline / Serverless Pipeline):

SmellSignalRisk
Drifting DuplicatesSame config value in multiple stagesSilent inconsistency
Implicit Inter-Stage ContractDict access without schema validation at boundariesSilent breakage when upstream changes
Path Convention as SchemaStorage paths hardcoded in every stageRename requires finding all stages
Assembly Without ValidationFinal stage assembles N inputs without completeness checkPartial output published as complete
Shared Utility SPOFOne function imported by 50%+ of stagesTotal pipeline failure from single bug

Phase 4: Risk Profile and Unknowns

This is where exploration becomes actionable. Synthesize findings into decisions the reader can make.

Risk Profile — be specific, not vague:

  • Not "complex" but: "Changing the User model requires migration + API update + frontend update."
  • Not "risky" but: "This function has 8 callers and no tests. A bug here breaks scoring for all papers."

Unknowns — explicitly mark what you didn't explore and why. Unstated assumptions become false beliefs.

Verification pointers — for each high-risk area, note what you'd test first. See references/advanced-techniques.md for verification procedures.


Output Artifacts

Read references/documentation-templates.md for complete templates. Choose based on archetype and audience.

Choosing the Right Template

SituationTemplate
Full exploration, any archetypeFull Exploration Report
Full exploration, pipeline archetypePipeline Exploration Report
Time-limited or narrow scopeQuick Assessment
Tracing a single valueVertical Slice Record
Pipeline data flowData Lineage Map
Focused health checkSmell Report
Non-technical stakeholder briefingStakeholder Brief

Output Principles

Maps, not lists. Group code by shared fate — components that fail together, change together, or depend on the same external resource.

Decisions, not descriptions. Every section should help the reader decide something: where to look, what to change, what to avoid, who to coordinate with.

Audience-appropriate language. For technical audiences, use file paths and function names. For PMs and managers, translate to business impact: "This component is fragile" → "Changes to the scoring algorithm require updating two files that aren't linked — if someone updates one and forgets the other, newsletter quality degrades silently."


Quick Reference

Phase 0: Archetype → Strategy Mapping

ArchetypeSlice StrategyPrimary Artifact
Frontend ApplicationA: Trace visible valueRender-site trace
Data / Serverless PipelineB: Trace record through stagesData lineage map
Backend APIC: Trace a requestRequest lifecycle trace
Library / SDKD: Trace public APIAbstraction layer map
Infrastructure as CodeE: Trace resource dependenciesBlast radius map
CLI ToolD (adapted): Trace a commandCommand execution trace
ML SystemB (adapted): Trace training dataData + model lineage map

Orientation Checklist

QuestionOutput
What is this? (Phase 0)Archetype classification
Where is the dirt?I/O boundary map
What is the substrate?Constraint list
What are the implicit contracts?Fragility list
Where is attention flowing?Activity heat map OR maturity assessment

Value Trail Steps (by archetype)

Frontend (A): Pick value → render site → decision point → input boundary → record

Pipeline (B): Pick entity → trace through stages → map schema evolution → identify contracts → data lineage map

Backend API (C): Pick request → trace inward → trace response → record

Library (D): Pick public API → trace inward → map abstractions → record

IaC (E): Pick resource → trace dependents → identify blast radius → record

平台分布

Codex

33.64%
按下载量换算222

Claude

31.12%
按下载量换算205

Cursor

20.32%
按下载量换算134

Gemini CLI

10.6%
按下载量换算70

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills