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.
npx skills add darellchua2/opencode-config-template --skill search-first-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/search-first-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.
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.
- 2mo ago Changed · -209 lines a1a4c8732e1f
- 3mo ago First seen · 319 lines · 27 tokens per session scan C 70534817b9fc
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.
search-first-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| search-first-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | C | 27 | Claude Code, Codex |
| toolsskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 81 | Claude Code |
| agent-optimizeskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 73 | Claude Code |
| hill-climbskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 126 | Claude Code |
| agent-optimizeskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 89 | Claude Code |
| gepaskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 111 | Claude Code |
| diagnoseskillberry-ai/cap-evolve | Skill | 71 | 5d ago | Apache-2.0 | A | 97 | Claude Code |