Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

codebase-explorer代码库浏览器

Agent Skill

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

总安装

2,056

周安装

84

GitHub Stars

1

下载量

659
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

codebase-explorer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用于研究检索类任务,支持多宿主环境集成。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

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