docs/zh-CN/skills/search-first/SKILL.md
研究优先于编码的工作流程。在编写自定义代码之前,搜索现有的工具、库和模式。调用研究员代理。
npx skillsauth add affaan-m/everything-claude-code search-firstInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
系统化“在实现之前先寻找现有解决方案”的工作流程。
在以下情况使用此技能:
┌─────────────────────────────────────────────┐
│ 1. 需求分析 │
│ 确定所需功能 │
│ 识别语言/框架限制 │
├─────────────────────────────────────────────┤
│ 2. 并行搜索(研究员代理) │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ npm / │ │ MCP / │ │ GitHub / │ │
│ │ PyPI │ │ 技能 │ │ 网络 │ │
│ └──────────┘ └──────────┘ └──────────┘ │
├─────────────────────────────────────────────┤
│ 3. 评估 │
│ 对候选方案进行评分(功能、维护、 │
│ 社区、文档、许可证、依赖) │
├─────────────────────────────────────────────┤
│ 4. 决策 │
│ ┌─────────┐ ┌──────────┐ ┌─────────┐ │
│ │ 采用 │ │ 扩展 │ │ 构建 │ │
│ │ 原样 │ │ /包装 │ │ 定制 │ │
│ └─────────┘ └──────────┘ └─────────┘ │
├─────────────────────────────────────────────┤
│ 5. 实施 │
│ 安装包 / 配置 MCP / │
│ 编写最小化自定义代码 │
└─────────────────────────────────────────────┘
| 信号 | 行动 | |--------|--------| | 完全匹配,维护良好,MIT/Apache 许可证 | 采纳 — 直接安装并使用 | | 部分匹配,基础良好 | 扩展 — 安装 + 编写薄封装层 | | 多个弱匹配 | 组合 — 组合 2-3 个小包 | | 未找到合适的 | 构建 — 编写自定义代码,但需基于研究 |
在编写实用程序或添加功能之前,在脑中过一遍:
rg~/.claude/settings.json 并进行搜索~/.claude/skills/对于非平凡的功能,启动研究员代理:
任务(子代理类型="通用型",提示="
研究现有工具用于:[描述]
语言/框架:[语言]
约束:[任何]
搜索:npm/PyPI、MCP 服务器、Claude Code 技能、GitHub
返回:结构化对比与推荐
")
eslint, ruff, textlint, markdownlintprettier, black, gofmtjest, pytest, go testhusky, lint-staged, pre-commitunstructured, pdfplumber, mammothhttpx (Python), ky/got (Node)zod (TS), pydantic (Python)remark, unified, markdown-itsharp, imagemin规划器应在阶段 1(架构评审)之前调用研究员:
架构师应向研究员咨询:
结合进行渐进式发现:
需求:检查 Markdown 文件中的失效链接
搜索:npm "markdown dead link checker"
发现:textlint-rule-no-dead-link(评分:9/10)
行动:采纳 — npm install textlint-rule-no-dead-link
结果:无需自定义代码,经过实战检验的解决方案
需求:具备重试和超时处理能力的弹性 HTTP 客户端
搜索:npm "http client retry"、PyPI "httpx retry"
发现:got(Node)带重试插件、httpx(Python)带内置重试功能
行动:采用——直接使用 got/httpx 并配置重试
结果:零定制代码,生产验证的库
需求:根据模式验证项目配置文件
搜索:npm "config linter schema"、"json schema validator cli"
发现:ajv-cli(评分:8/10)
操作:采用 + 扩展 —— 安装 ajv-cli,编写项目特定的模式
结果:1 个包 + 1 个模式文件,无需自定义验证逻辑
tools
Query live GPU inventory, submit an authenticated Itô fixed-rate RFQ, inspect RFQ or procurement status, revoke device credentials, and run explicitly gated node qualification through the separately installed canonical CLI. Use when a user asks to find H100/H200 capacity, request a fixed compute rate, check Itô compute status, validate GPU nodes, revoke Itô access, or rent or purchase GPU compute and needs the supported boundary explained.
testing
Agent-driven scheduling and publishing of social media posts across 13 platforms via SocialClaw. Use when the user wants to publish to X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, or Pinterest — or when managing campaigns, uploading media, or monitoring post delivery status.
development
LLM APIの使用量のコスト最適化パターン — タスクの複雑さによるモデルルーティング、予算追跡、リトライロジック、プロンプトキャッシング。
tools
Use this skill when retrieving Jira tickets, analyzing requirements, updating ticket status, adding comments, or transitioning issues. Provides Jira API patterns via MCP or direct REST calls.