Search First logo

Search First

Community
virgo777
search-first

Research-before-coding workflow. Search for existing tools, libraries, and patterns before writing custom code. Invokes the researcher agent.

Overview

Publishervirgo777
Repositorybuddyme
Skill namesearch-first
Stars
62
Forks
8
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by virgo777 on GitHub. Read the source before you install it.

Installation

Install the Search First AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/virgo777/buddyme/tree/master/buddyMe/skill_library/skills/search-first
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/virgo777/buddyme.git /tmp/buddyme
mkdir -p .claude/skills
cp -r /tmp/buddyme/buddyMe/skill_library/skills/search-first .claude/skills/search-first
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Search First in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Search First on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Search First is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/search-first — 编码前先调研(Research Before You Code)

将“在实现前搜索现有解决方案”的工作流系统化。

触发条件(Trigger)

在以下场景使用此技能(Skill):

  • 开始开发一个很可能已有现成解决方案的新功能
  • 添加依赖项或集成
  • 用户要求“添加 X 功能”且你正准备编写代码
  • 在创建新的工具类(Utility)、辅助函数(Helper)或抽象层之前

工作流(Workflow)

┌─────────────────────────────────────────────┐
│  1. 需求分析 (NEED ANALYSIS)                 │
│     定义所需功能                             │
│     识别语言/框架约束                        │
├─────────────────────────────────────────────┤
│  2. 并行搜索 (调研智能体 researcher agent)    │
│     ┌──────────┐ ┌──────────┐ ┌──────────┐  │
│     │  npm /   │ │  MCP /   │ │  GitHub / │  │
│     │  PyPI    │ │  技能    │ │  Web      │  │
│     └──────────┘ └──────────┘ └──────────┘  │
├─────────────────────────────────────────────┤
│  3. 评估 (EVALUATE)                         │
│     为候选方案打分(功能、维护、             │
│     社区、文档、许可证、依赖)               │
├─────────────────────────────────────────────┤
│  4. 决策 (DECIDE)                           │
│     ┌─────────┐  ┌──────────┐  ┌─────────┐  │
│     │  采用   │  │   扩展   │  │   自研  │  │
│     │ (Adopt) │  │  (Extend)│  │ (Build) │  │
│     └─────────┘  └──────────┘  └─────────┘  │
├─────────────────────────────────────────────┤
│  5. 实施 (IMPLEMENT)                        │
│     安装包 / 配置 MCP /                     │
│     编写最少量的自定义代码                   │
└─────────────────────────────────────────────┘

决策矩阵(Decision Matrix)

信号行动
完全匹配、维护良好、MIT/Apache 协议采用 (Adopt) — 直接安装并使用
部分匹配、基础良好扩展 (Extend) — 安装 + 编写轻量封装层
多个弱匹配项组合 (Compose) — 结合 2-3 个小型包
未找到合适方案自研 (Build) — 编写自定义代码,但基于调研结论

如何使用

快速模式(行内使用)

在编写工具类或添加功能前,大脑中先过一遍:

  1. 仓库中是否已存在?→ 先通过 rg 搜索相关的模块/测试
  2. 这是一个常见问题吗?→ 搜索 npm/PyPI
  3. 是否有相关的 MCP?→ 检查 ~/.claude/settings.json 并搜索
  4. 是否有相关的技能(Skill)?→ 检查 ~/.claude/skills/
  5. 是否有 GitHub 实现/模板?→ 在编写全新代码前,针对维护良好的开源软件(OSS)运行 GitHub 代码搜索

完整模式(智能体代理)

对于非平凡的功能,启动调研智能体(Researcher Agent):

Task(subagent_type="general-purpose", prompt="
  调研现有的工具,针对:[功能描述]
  语言/框架:[LANG]
  约束条件:[ANY]

  搜索范围:npm/PyPI, MCP 服务器, Claude Code 技能, GitHub
  返回结果:带建议的结构化对比报告
")

按类别搜索快捷方式

开发工具(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:“添加死链检查”

需求:检查 markdown 文件中的损坏链接
搜索:npm "markdown dead link checker"
发现:textlint-rule-no-dead-link (得分: 9/10)
行动:采用 (ADOPT) — npm install textlint-rule-no-dead-link
结果:零自定义代码,经受过实战检验的解决方案

示例 2:“添加 HTTP 客户端封装层”

需求:具备重试和超时处理能力的弹性 HTTP 客户端
搜索:npm "http client retry", PyPI "httpx retry"
发现:带重试插件的 got (Node), 内置重试的 httpx (Python)
行动:采用 (ADOPT) — 直接使用带重试配置的 got/httpx
结果:零自定义代码,生产环境验证过的库

示例 3:“添加配置文件 Linter”

需求:根据 Schema 验证项目配置文件
搜索:npm "config linter schema", "json schema validator cli"
发现:ajv-cli (得分: 8/10)
行动:采用 + 扩展 (ADOPT + EXTEND) — 安装 ajv-cli,编写项目特定的 schema
结果:1 个包 + 1 个 schema 文件,无需自定义验证逻辑

反模式(Anti-Patterns)

  • 直接编码:不检查是否存在现成工具就编写工具类
  • 忽视 MCP:不检查 MCP 服务器是否已经提供了该功能
  • 过度自定义:对库进行过重封装,导致其丧失原有优势
  • 依赖膨胀:为了一个很小的功能安装庞大的包

Frequently asked questions

What does the Search First AI skill do?

Research-before-coding workflow. Search for existing tools, libraries, and patterns before writing custom code. Invokes the researcher agent.

Why use Search First on TypingMind?

Because you install it once and use it with any model. Search First is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Search First in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/virgo777/buddyme/tree/master/buddyMe/skill_library/skills/search-first. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Search First?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Search First?

As many as you like. As long as a model supports skills, you can use Search First with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Search First AI skill free?

It is published on GitHub by virgo777. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇