search-first

search-first is a skill for Claude Code from shimo4228/claude-harness. It costs 65 tokens per session (2,687 once invoked), scanned A, a copy of search-first, MIT.

A research step used before adding a feature, integration, library, or utility. It searches package registries, GitHub, MCP services, and existing skills for something that already fits.

In plain words
What is it for?
Use it to define the requirement and constraints, search likely sources, compare existing options, and record whether to reuse, adapt, or build.
Why use it?
It reduces duplicated code and helps choose an existing solution before building a new one.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to define the requirement and constraints, search likely sources, compare existing options, and record whether to reuse, adapt, or build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/search-first
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shimo4228/claude-harness --skill search-first
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for search-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/search-first/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/search-first)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/search-first"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/search-first/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for search-first

Your own site · 80×15
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/search-first"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/search-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02687
Opus 5.5 $0.00026 $0.01075
Sonnet 5.5 $0.00013 $0.00537
Haiku 4.5 $0.00006 $0.00269

Measured 16d ago against content hash 41d55313a3ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

search-first scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to search-first — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/search-first/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/search-first — Look Outside First; Building Carries the Burden of Proof

The report says what exists outside and how it differs from our situation, and each need ends in a verdict, written by whoever runs this skill (the lead, in Full mode). Adopt is the default: an established tool that covers the need is used even when it fits imperfectly, because a part we build is a part we maintain and keep improving ourselves, and that effort comes out of the work the tool was meant to serve. Build is chosen only when the report shows, for each candidate, the stop condition (§3) that rules it out.

"Established tool" covers libraries, CLIs, MCP servers, plugins, published skills and the agent runtime's native features. Adopt-part takes one piece of a tool (its parser, its data model) inside our own control flow.

0. State the question in text

Before the first tool call, write 2–3 sentences of plain assistant text: the question, which row(s) of the table below it belongs to, and the constraints (language, existing deps, license, budget). Tool arguments may mirror this text; the chat text is what lets the user redirect before effort is spent.

When the need is code to write — an adapter, an API client, a parser, a utility — state it as a Library / tool choice: which established library already does this. Asking which endpoint to call or which algorithm to use yields an answer that can only be hand-coded.

When the question comes from a plan, list the plan's parts that are means rather than its purpose — a parser, a CLI wrapper, an eval runner, a check inside a hook — and ask the Library / tool question once per part, one line each. The purpose, the judgment or idea the plan exists for, is ours to build and stays off the list.

1. Check this repo first

One rg / Glob pass through the relevant modules, skills and notes. The thing may already exist here. Then go outside.

2. Search by question type

The rows are handles for where to look and when to stop. A question that fits none still runs; a question that fits two uses both rows.

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · -1 lines 41d55313a3ff
  2. 22d ago Changed d98b50aa9f8c
  3. 29d ago Changed · +17 lines ffa7c77c0f34
  4. 1mo ago Changed · +33 lines 7b05e24ed4b7
  5. 1mo ago Changed · -131 tokens per session d77bb80a54d5
  6. 1mo ago Changed f35d1d900b86
  7. 1mo ago Changed · +19 lines 450f8f8ce864
  8. 2mo ago Changed · +12 lines · -28 tokens per session c83a2fd63fd1
  9. 2mo ago Changed · -15 lines · +48 tokens per session e97cbd7cf3e4
  10. 3mo ago First seen · 120 lines · 176 tokens per session scan A 67f755eed426

Subscribe to this mod's changes

search-first is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 65 tokens to every session and 2,687 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to search-first, differing in 0 lines, and is treated as a copy.

Related

search-first compared with skills from other repositories

search-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
search-firstshimo4228/claude-harnessSkill47d agoMITA65Claude Code
agent-adoption-triageshimo4228/agent-adoption-triageSkill21mo agoMITA143Claude Code
git-commitadongwanai/learn-workbuddySkill5631mo agoMITA0Claude Code, Codex
pi-triagesky-valley/piSkill94yesterdayMITA57Claude Code
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
zodanivar/zod-skillSkill24yesterdayMITA217Claude Code, Codex
trailhead-chartToRvaLDz/trailheadSkill37yesterdayMITA138Claude Code