From cc-best
Executes research-before-coding workflow: searches package managers, GitHub, docs for solutions before adding libraries/tools or tackling unfamiliar problems. Applies Adopt/Extend/Compose/Build decision matrix with checklists.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-best:search-firstThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
编码前系统化搜索现有方案,做出 Adopt/Extend/Compose/Build 决策。
编码前系统化搜索现有方案,做出 Adopt/Extend/Compose/Build 决策。
核心原则:不重复造轮子,但也不盲目引入依赖。
/cc-best:lead 技术方案设计阶段1. 并行搜索(限时 5-10 分钟)
├─ 包管理器(npm/PyPI/Maven 等,根据项目技术栈)
├─ MCP 服务器(如适用)
├─ GitHub/社区方案
└─ 官方文档/API 参考
2. 方案评估
├─ 功能匹配度
├─ 维护活跃度(最近提交、issue 响应)
├─ 许可证兼容性
└─ 依赖复杂度
3. 决策 + 记录
├─ 输出 Adopt/Extend/Compose/Build 决策
├─ 记录到 progress.md 决策表
└─ 标注置信度
| 条件 | 决策 | 行动 |
|---|---|---|
| 精确匹配 + 活跃维护 + 兼容许可 | 采用 (Adopt) | 直接安装使用 |
| 部分匹配 + 良好基础 | 扩展 (Extend) | 安装 + 薄包装器适配 |
| 多个弱匹配 | 组合 (Compose) | 组合 2-3 个小包 |
| 无合适方案 | 构建 (Build) | 自研,但带着搜索知识 |
- [ ] 功能是否满足核心需求(≥80%)
- [ ] 最近 6 个月内有提交
- [ ] 许可证与项目兼容(MIT/Apache/ISC 优先)
- [ ] 依赖数量合理(<20 direct deps)
- [ ] 有测试覆盖和文档
- [ ] 无已知安全漏洞
在 /cc-best:lead 工作流中,技术栈选型前自动触发:
PM(需求) → Lead(search-first → 方案设计) → Dev(实现)
| 场景 | 搜索深度 | 时间上限 |
|---|---|---|
| 已知成熟方案 | 浅搜索 | 2 分钟 |
| 常见功能需求 | 标准搜索 | 5 分钟 |
| 创新/罕见需求 | 深度搜索 | 10 分钟 |
### 搜索决策: [功能描述]
**搜索范围**: [npm/GitHub/WebSearch]
**候选方案**:
1. [方案A] - [优劣概述]
2. [方案B] - [优劣概述]
**决策**: [Adopt/Extend/Compose/Build] [方案名]
**理由**: [1-2 句]
**置信度**: [高/中/低]
记住: 搜索不是目的,做出有依据的决策才是目的。5 分钟的搜索可以避免 5 天的重复造轮子。
npx claudepluginhub xiaobei930/cc-best --plugin cc-bestImplements research-before-coding workflow: searches npm/PyPI, GitHub, MCP/skills for existing tools/libraries/patterns before custom code. Invokes researcher agent; useful for new features/dependencies.
Researches existing tools, libraries, and patterns before writing custom code. Useful when starting new features, adding dependencies, or before creating utilities.
Researches prior art via GitHub, package registries (npm, PyPI, crates.io), and web searches for new problem spaces. Summarizes projects, patterns, and recommendations. Triggers on 'prior art' or 'existing solutions'.