search

search is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 122 tokens per session (948 once invoked), scanned A, original, Apache-2.0.

A workflow for finding, replacing, or renaming things across a codebase. It covers text, code symbols, concepts, documentation, and tasks.

In plain words
What is it for?
Finding all uses of text or symbols, planning cross-cutting renames, searching documentation or tasks by meaning, and verifying that replacements are complete.
Why use it?
It establishes how many matches exist before an edit and checks afterward, reducing the chance of leaving references unchanged.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kouroshez/coding-os/search
Any agent
npx skills add kouroshez/coding-os --skill search
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/search.svg)](https://agentmods.dev/skills/kouroshez/coding-os/search)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/search"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/search.svg" alt="Measured on agentmods" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00122 $0.00948
Opus 5 $0.00061 $0.00474
Sonnet 5 $0.00024 $0.00190
Haiku 4.5 $0.00012 $0.00095

Measured 3d ago against content hash dbd22363ba4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

search 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify-count.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/core/skills/search/SKILL.md · 92 lines

How it starts

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

Purpose: Route every search task to the correct layer, establish a ground-truth count before any edit, and verify zero remaining matches after. Prevents: agent edits some matches, declares done, but 20+ remain.

Read when: Anything involving finding or replacing something — in files, code, memory, docs, tasks.

Skip when: You already have the exact file:line from a search earlier in this session and are doing a single-file targeted edit.

Step 0 — Decision Gate

Target Layer Tools
Literal text / string in files File grep -rnF → see references/grep.md
Code symbol — function, class, import, MCP tool Graph → use graph-explorer skill
Semantic concept / "how did we solve X" Memory cos_search
Spec / doc by meaning Docs cos_doc_search
Task / ticket by topic Tasks cos_task_search

Composition: For a symbol rename, run Graph first (graph-explorer gives you call-sites + doc refs), then File verify to catch comments and unindexed strings. Never rely on a single layer for cross-cutting renames.

Step 1 — INVENTORY (mandatory before any edit)

# Get ground truth count — this number must reach 0 after editing
grep -rnF "OLD_STRING" . $EXCL | wc -l   # N = ground truth

# List affected files
grep -rlF "OLD_STRING" . $EXCL

N is your contract. You are not done until the same command returns 0.

Never edit before knowing N. This is the root cause of the "declared done but 20 remain" failure.

Step 2 — VARIANT SCAN

Run a multi-variant search before editing. Same string appears in multiple forms.

grep -rnF -e "MyClass" -e "my_class" -e "MY_CLASS" -e '"MyClass"' . $EXCL

→ Full variant families and flag reference: references/grep.md

Step 3 — EDIT

For small counts (< 10 files): use Edit per file. For bulk: use grep -rlZF ... | xargs -0 sed ... or Python replace.

→ Replace options with NUL-safe pipelines: references/grep.md

Skip generated / lock / migration files — note them, regenerate via make instead.

Read the full file on GitHub · 92 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 92 lines · 122 tokens per session scan A dbd22363ba4f

Subscribe to this mod's changes

search is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 122 tokens to every session and 948 once invoked, about $0.0006 per session on Opus 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-31.

Related

Other skills, from other repositories

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

alfworld-receptacle-finder

Searches for a suitable empty or appropriately occupied receptacle (like a shelf or table) to place an object. Use when you are holding an object that needs to be stored or placed and must find a receptacle that meets the placement criteria. Examines candidate receptacles by navigating to and inspecting each one until…

zjunlp/SkillNet · 76 tokens

alfworld-search-pattern-executor

Systematically searches a sequence of likely locations for a target object based on common sense. Use when you need to find a specific object and know which receptacles to check but not which one contains it. Takes a list of candidate receptacles, orchestrates navigation and inspection, and outputs when the target is…

zjunlp/SkillNet · 74 tokens

ux-ui-analyze-single-page

Analyze exactly one captured UI page (from uxuimap screenshots + request JSON) and immediately write/update uxuimap/pages/{page}.md in neutral descriptive language. Use when asked to analyze screenshots, rewrite corresponding analysis immediately, or avoid memory/context saturation.

raphaelmansuy/edgequake · 58 tokens

scienceworld-growth-focuser

Use when you have planted a seed or need to track a plant's growth stage (sprouting, flowering, reproduction). Applies the 'focus on' action to a specific plant or biological entity to signal intent and monitor its development. Trigger after planting or when you need to observe life cycle progression in the…

zjunlp/SkillNet · 71 tokens