search-first

search-first is a skill for Claude Code, Codex from rexleimo/aios. It costs 38 tokens per session (656 once invoked), scanned A, original, MIT.

A research-before-building workflow for software changes, dependencies, integrations, utilities, or copied code patterns.

In plain words
What is it for?
Searching the local repository, existing skills, scripts, and documentation, then deciding whether to adopt, extend, combine, or build a solution.
Why use it?
It helps prevent rebuilding something that already exists and reduces compatibility problems across coding-agent tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; reads ~/.codex paths; mentions Codex.

Good fit Searching the local repository, existing skills, scripts, and documentation, then deciding whether to adopt, extend, combine, or build a solution.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rexleimo/aios/search-first/github.svg)](https://agentmods.dev/skills/rexleimo/aios/search-first)
Your own site
<a href="https://agentmods.dev/skills/rexleimo/aios/search-first"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/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/rexleimo/aios/search-first"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/search-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 656 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00038 $0.00656
Opus 5.5 $0.00015 $0.00262
Sonnet 5.5 $0.00008 $0.00131
Haiku 4.5 $0.00004 $0.00066

Measured 2mo ago against content hash 07ea7a3bbe56, 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 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.

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.

skill-sources/search-first/SKILL.md · 58 lines

How it starts

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

Search First

Trigger

Use this skill before you:

  • Add a new feature or workflow step
  • Introduce a new dependency, MCP server, or CLI integration
  • Write a new utility/helper that might already exist
  • Copy patterns from another repo (porting)

Outcome

Pick one of: Adopt, Extend, Compose, Build, with a short justification and evidence.

Workflow (Fast)

  1. Define the need

    • What is the smallest outcome that solves the problem?
    • Constraints: platform (macOS/Linux/Windows), clients (codex/claude/gemini/opencode), offline needs, security posture.
  2. Search locally (before the internet)

    • CRG (if codemap installed): semantic_search_nodes(query="<keyword>") then query_graph(pattern="callers_of"|"callees_of"|"tests_for", target="<name>") — returns structural context that text search cannot provide
    • Code: rg -n "<keyword>" in the repo (fallback when CRG doesn't cover what you need)
    • Scripts: check scripts/ for existing lifecycle/doctor commands.
    • Docs: check README* and docs/.
  3. Search existing skills

    • Repo-local: .codex/skills, .claude/skills, .agents/skills.
    • Global: ~/.codex/skills, ~/.claude/skills, ~/.gemini/skills, ~/.config/opencode/skills.
    • Prefer reusing an existing skill name over creating a near-duplicate.
  4. Search the ecosystem (when needed)

    • Prefer official docs and primary sources (project docs, RFCs, standards).
    • Prefer maintained, well-scoped libraries over bespoke code.
    • For agent tooling, check if an MCP server already provides the capability.
  5. Decide

    • Adopt: exact match, maintained, acceptable license.
    • Extend: mostly fits; add thin wrapper/adapter.
    • Compose: 2-3 small pieces together beat 1 big framework.
    • Build: no good option; implement minimal + document why.
  6. Record evidence

    • Note what you searched, what you found, and why you chose the approach.
    • If a decision affects cross-CLI behavior, add it to a docs/plans/ artifact.

Read the full file on GitHub · 58 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 07ea7a3bbe56
  2. 2mo ago Changed d4542c452da3
  3. 2mo ago Changed 0a1c076b776d
  4. 3mo ago First seen · 58 lines · 38 tokens per session scan A d85001253067

Subscribe to this mod's changes

search-first is a skill published in the GitHub repository rexleimo/aios (62 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 656 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

search-first compared with skills from other repositories

search-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
search-firstrexleimo/aiosSkill626d agoMITA38Claude Code, Codex
opencli-usagejackwener/OpenCLISkill32k23d agoApache-2.0A31Claude Code
traffic-analyticsAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA29Claude Code, Codex
seo-auditAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA32Claude Code, Codex
pr-autofixAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA45Claude Code, Codex
lead-researchAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA26Claude Code, Codex
obsidianAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA20Claude Code, Codex