virgo777/buddyme/search-first
Claude Code and agent skill by virgo777/buddyme
Trust tier 3
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Research-before-coding workflow. Search for existing tools, libraries, and patterns before writing custom code. Invokes the researcher agent.
Install
npx vskill@latest install virgo777/buddyme/search-firstSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as xu-xiang/everything-claude-code-zh/search-first.
/search-first — 编码前先调研(Research Before You Code)
将“在实现前搜索现有解决方案”的工作流系统化。
触发条件(Trigger)
在以下场景使用此技能(Skill):
- 开始开发一个很可能已有现成解决方案的新功能
- 添加依赖项或集成
- 用户要求“添加 X 功能”且你正准备编写代码
- 在创建新的工具类(Utility)、辅助函数(Helper)或抽象层之前
工作流(Workflow)
决策矩阵(Decision Matrix)
| 信号 | 行动 | |
|---|---|---|
| 完全匹配、维护良好、MIT/Apache 协议 | 采用 (Adopt) — 直接安装并使用 | |
| 部分匹配、基础良好 | 扩展 (Extend) — 安装 + 编写轻量封装层 | |
| 多个弱匹配项 | 组合 (Compose) — 结合 2-3 个小型包 | |
| 未找到合适方案 | 自研 (Build) — 编写自定义代码,但基于调研结论 |
如何使用
快速模式(行内使用)
在编写工具类或添加功能前,大脑中先过一遍:
- 仓库中是否已存在?→ 先通过
rg搜索相关的模块/测试 - 这是一个常见问题吗?→ 搜索 npm/PyPI
- 是否有相关的 MCP?→ 检查
~/.claude/settings.json并搜索 - 是否有相关的技能(Skill)?→ 检查
~/.claude/skills/ - 是否有 GitHub 实现/模板?→ 在编写全新代码前,针对维护良好的开源软件(OSS)运行 GitHub 代码搜索
完整模式(智能体代理)
对于非平凡的功能,启动调研智能体(Researcher Agent):
按类别搜索快捷方式
开发工具(Development Tooling)
- 代码检查(Linting)→
eslint,ruff,textlint,markdownlint - 格式化(Formatting)→
prettier,black,gofmt - 测试(Testing)→
jest,pytest,go test - Pre-commit →
husky,lint-staged,pre-commit
AI/LLM 集成
- Claude SDK → 参考 Context7 获取最新文档
- 提示词管理(Prompt management)→ 检查 MCP 服务器
- 文档处理 →
unstructured,pdfplumber,mammoth
数据与 API
- HTTP 客户端 →
httpx(Python),ky/got(Node) - 验证(Validation)→
zod(TS),pydantic(Python) - 数据库 → 优先检查 MCP 服务器
内容与发布
- Markdown 处理 →
remark,unified,markdown-it - 图像优化 →
sharp,imagemin
集成点(Integration Points)
与规划智能体(Planner Agent)集成
规划器应在第一阶段(架构审查 Architecture Review)之前调用调研员:
- 调研员识别可用工具
- 规划器将它们纳入实施计划
- 避免在计划中“重复造轮子”
与架构智能体(Architect Agent)集成
架构师应就以下内容咨询调研员:
- 技术栈决策
- 集成模式发现
- 现有参考架构
与迭代检索技能(Iterative-retrieval Skill)集成
结合使用进行渐进式发现:
- 第 1 轮:广泛搜索 (npm, PyPI, MCP)
- 第 2 轮:详细评估首选候选方案
- 第 3 轮:测试与项目约束的兼容性
示例
示例 1:“添加死链检查”
示例 2:“添加 HTTP 客户端封装层”
示例 3:“添加配置文件 Linter”
反模式(Anti-Patterns)
- 直接编码:不检查是否存在现成工具就编写工具类
- 忽视 MCP:不检查 MCP 服务器是否已经提供了该功能
- 过度自定义:对库进行过重封装,导致其丧失原有优势
- 依赖膨胀:为了一个很小的功能安装庞大的包
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbuddyMe/skill_library/skills/search-first/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/virgo777/buddyme/search-first)