search-first-skill

search-first-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 27 tokens per session (1,357 once invoked), scanned C, original, Apache-2.0.

A research-first workflow for deciding whether to adopt an existing tool, extend it, combine tools, or build something new before coding.

In plain words
What is it for?
Use it when starting a feature, adding a dependency, choosing between libraries, or deciding whether a helper or abstraction should be built from scratch.
Why use it?
It helps avoid duplicating libraries, utilities, or integrations that already exist and makes technology choices easier to compare.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it when starting a feature, adding a dependency, choosing between libraries, or deciding whether a helper or abstraction should be built from scratch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/search-first-skill
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 darellchua2/opencode-config-template --skill search-first-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/search-first-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/search-first-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/search-first-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/search-first-skill/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/search-first-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/search-first-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,357 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00027 $0.01357
Opus 5.5 $0.00011 $0.00543
Sonnet 5.5 $0.00005 $0.00271
Haiku 4.5 $0.00003 $0.00136

Measured 2mo ago against content hash a1a4c8732e1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

search-first-skill scanned grade C with 1 finding 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 2mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

When protocol is enabled, this skill defaults to `Iterations: 10` (sufficient for typical single-pass workflows). Override with `Iterations: N` for specific tasks. Safety blocks: `.env`, `node_modules/`, `rm -rf`, `git p
skills/search-first-skill/SKILL.md · 110 lines

How it starts

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

What I do

Systematize "search for existing solutions before implementing": need analysis → parallel search (local, registries, web) → scored evaluation → Adopt/Extend/Compose/Build decision → minimal custom code.

Trigger phrases: "search first", "research before coding", "does this already exist", "find existing solution", "should I build or use a library", "what library should I use for".

Core Workflow

Step 1: Need Analysis

Define before searching: functionality, language/framework constraints, license restrictions, maintenance bar (activity, stars/downloads), stack integration (e.g. React 19, Python 3.12).

Step 2: Parallel Search

Channel Tools Finds
Local codebase codegraph_search/codegraph_explore, grep, glob Existing functions, patterns, configs — check first
Package registries webfetch → npmjs.com, pypi.org, pkg.go.dev, crates.io, search.maven.org Candidate packages
Web/docs webfetch (primary), zai-web-reader (fallback: large/complex pages) Best practices, comparisons
MCP + skills MCP config, installed skills Capability may already exist

Step 3: Evaluate

Score candidates 1-5 per criterion, weight, sum: Functionality (high), Maintenance (high — last commit, release cadence), License compatibility (high), Community (medium), Documentation (medium), Dependency tree (medium), Performance (medium), Bundle size (low, frontend).

Step 4: Decision Matrix

Signal Strategy Action
Exact match, maintained, compatible license Adopt Install and use directly — zero custom code
Partial match, good foundation Extend Install + thin wrapper for missing pieces (<50 lines)
Multiple weak matches, none complete Compose Combine 2-3 small, complementary packages
Nothing suitable Build Write custom, informed by research

Adopt: >90% coverage, commits in last 3 months, MIT/Apache/BSD, documented, lean deps. Compose: no single package suffices, packages don't overlap. Build: domain-specific, research showed why existing options don't fit. In all cases document the decision + rationale in code comments or architecture notes.

Read the full file on GitHub · 110 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. 2mo ago Changed · -209 lines a1a4c8732e1f
  2. 3mo ago First seen · 319 lines · 27 tokens per session scan C 70534817b9fc

Subscribe to this mod's changes

search-first-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,357 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

search-first-skill compared with skills from other repositories

search-first-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
search-first-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0C27Claude Code, Codex
toolsskillberry-ai/cap-evolveSkill715d agoApache-2.0A81Claude Code
agent-optimizeskillberry-ai/cap-evolveSkill715d agoApache-2.0A73Claude Code
hill-climbskillberry-ai/cap-evolveSkill715d agoApache-2.0A126Claude Code
agent-optimizeskillberry-ai/cap-evolveSkill715d agoApache-2.0A89Claude Code
gepaskillberry-ai/cap-evolveSkill715d agoApache-2.0A111Claude Code
diagnoseskillberry-ai/cap-evolveSkill715d agoApache-2.0A97Claude Code