技能 explore-codebase
🔍

explore-codebase

安全 📁 文件系统访问⚙️ 外部命令

使用並行代理探索程式碼庫

按順序理解大型程式碼庫耗時過長。此技能提供模式以生成並行探索子代理,快速收集上下文並產生結構化摘要。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“explore-codebase”。 Explore the authentication system in this codebase

预期结果:

  • Found auth module at src/auth/
  • Login flow: login -> validate -> session
  • Uses JWT tokens stored in cookies
  • Pattern: service-layer architecture
  • Integration points: user service, database

正在使用“explore-codebase”。 Find all API endpoints and their handlers

预期结果:

  • GET /api/users -> UserController.list
  • POST /api/users -> UserController.create
  • PUT /api/users/:id -> UserController.update
  • DELETE /api/users/:id -> UserController.delete
  • All endpoints use authentication middleware

正在使用“explore-codebase”。 Map the database schema and relationships

预期结果:

  • Users table with id, email, password_hash
  • Posts table links to users via user_id
  • Comments table links to both users and posts
  • One-to-many: User -> Posts
  • Many-to-many: Posts <-> Tags through post_tags

安全审计

安全
v5 • 1/16/2026

Documentation-only skill providing patterns for using Claude Code exploration tools. No executable code, network calls, or credential access. Static findings are false positives caused by the analyzer misinterpreting documentation syntax as code patterns.

2
已扫描文件
278
分析行数
2
发现项
5
审计总数

风险因素

📁 文件系统访问 (1)
⚙️ 外部命令 (1)
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
21
社区
100
安全
91
规范符合性

你能构建什么

了解項目結構

在做出設計決策之前映射架構並識別模式。

學習程式碼庫約定

快速了解編碼標準、目錄結構和現有實現。

追蹤程式碼流

查找相關程式碼路徑和集成點,了解功能如何連接。

试试这些提示

快速文件搜索
Glob(pattern="**/*{keyword}*")
模式搜索
Grep(pattern="functionName", type="ts")
生成探索者
Task(subagent_type="explorer", model="haiku", prompt="Query: {question}")
並行探索
Spawn multiple explorers for different areas, then synthesize findings into YAML

最佳实践

  • 先進行廣泛探索再深入特定領域
  • 並行生成多個探索者以同時覆蓋不同區域
  • 始終產生結構化 YAML 摘要以整合發現

避免

  • 當並行可以更快時卻使用順序探索
  • 沒有提示或範圍的模糊搜索查詢
  • 跳過綜合步驟而遺漏模式

常见问题

此技能需要什麼工具?
需要 Task、Read、Glob 和 Grep 工具。這些是標準的 Claude Code 工具。
我可以生成多少個探索者?
根據需要生成多個以覆蓋不同區域。並行比順序更快。
我的程式碼數據安全嗎?
是的。此技能僅讀取文件並產生摘要。不會傳輸外部數據。
此技能可以修改我的程式碼嗎?
不會。此技能僅使用唯讀工具。無法寫入文件或執行任意程式碼。
這與 grep 有什麼不同?
Grep 查找模式。此技能使用子代理來理解上下文並綜合發現。
什麼是探索子代理?
一個自定義 dotagent 代理,為探索任務提供結構化 YAML 輸出。

开发者详情

文件结构

📄 SKILL.md