/cc-best:explorationfrom cc-best
Structured code exploration strategies for unfamiliar codebases, with two modes: isolated research (fast one-shot) and iterative retrieval (multi-round). Includes search patterns, output format, and best practices.
Ships in cc-best. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
本技能提供代码库探索的通用方法论,包含两种策略模式。
| 场景 | 推荐策略 | 原因 |
|---|---|---|
| 快速了解某个模块 | isolated-research | 一次性探索,不污染上下文 |
| 理解复杂的跨模块流程 | iterative-retrieval | 需要多轮精炼 |
| 简单的文件/函数定位 | 直接 Grep/Glob | 无需完整探索流程 |
| 新项目初始理解 | iterative-retrieval | 需要建立全局认知 |
| 调试特定 Bug | isolated-research | 聚焦单一问题 |
| 架构分析和文档化 | iterative-retrieval | 需要完整依赖图 |
| 目标 | 工具 | 示例 |
|---|---|---|
| 按文件名/路径查找 | Glob | **/auth/**/*.ts |
| 按代码内容查找 | Grep | "function authenticate" |
| 读取完整文件 | Read | 直接读取已知路径文件 |
| 深度子任务(隔离) | Task | 派发子代理执行 |
## 入口点搜索
- 路由/API 端点
- 中间件
- main/index 文件
- 配置文件
## 定义搜索
- class/function 定义
- type/interface 定义
- 常量/枚举定义
## 使用搜索
- import/require 语句
- 函数调用点
- 类实例化
## 依赖搜索
- package.json
- import 图谱
- 模块边界
所有探索结果应遵循统一格式:
## 探索报告
### 问题/目标
[描述探索的目标]
### 关键发现
| 文件 | 行号 | 功能说明 |
| ------------------- | ---- | -------------- |
| `src/auth/login.ts` | 42 | 登录验证入口 |
| `src/lib/jwt.ts` | 15 | Token 生成逻辑 |
### 依赖关系
[可选:模块依赖图、调用链]
### 结论
[对问题的回答]
### 后续建议
[可选:建议的下一步动作]
特点:
详细指南参阅 isolated-research.md
特点:
详细指南参阅 iterative-retrieval.md
| 角色 | 探索场景 | 推荐策略 |
|---|---|---|
/cc-best:pm | 理解现有功能 | isolated-research |
/cc-best:lead | 架构分析、技术设计 | iterative-retrieval |
/cc-best:dev | 实现前了解相关代码 | isolated-research |
/cc-best:qa | 理解测试范围 | isolated-research |
/cc-best:fix | 追踪 Bug 根因 | iterative-retrieval |
核心理念:探索是理解的基础,好的探索策略能显著提升开发效率。
记住: 系统化的代码探索比随机阅读效率高十倍,好的探索策略是高效开发的基础。
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: userConfig.hookProfile.description: Invalid input: expected string, received undefined
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
19 skills in this plugin
/apiRESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes./architectureArchitecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex system design and architecture decisions./backendBackend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices./compactStrategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals during development sessions./databaseDatabase design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing migrations./debugSystematic debugging methods, log analysis, and performance diagnostics. Use when debugging issues, analyzing errors, or troubleshooting incidents.Other plugins' skills for the same job