search-first
Skill16 starsChanged 8 months agoMITView on GitHub
Trigger: Automatically before any new feature implementation, or "search first" or "check if this exists" Description: Enforces research-before-coding. Before writing any new code, search the existing codebase for reusable patterns, existing implementations, and prior art. Prevents duplicated logic. Allowed Tools: Read, Glob, Grep, Bash
29 other projects use a version of this.
Adopted by
Most recently taken up by
- LeeYudok/agents-scaffoldtheir own version, first seen Oct 4, 2026
- shimo4228/claude-harnesstheir own version, first seen Sep 27, 2026
- shimo4228/search-firsttheir own version, first seen Sep 26, 2026
- shimo4228/akc-cycletheir own version, first seen Sep 26, 2026
- songjiun10-collab/Senior-thinking-skillstheir own version, first seen Sep 25, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
Used with
Projects with it also use continuous-agent-loop, regex-vs-llm-structured-text and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
InfopibeSkillcontinuous-agent-loop
Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.
Also in 5 projects that use this
InfopibeSkillregex-vs-llm-structured-text
Decision framework for choosing between regex and LLM when parsing structured text — start with regex, add LLM only for low-confidence edge cases.
Also in 6 projects that use this
FaisalAlqarniSkillskill-stocktake
Audit all installed skills, commands, agents, and hooks for quality, freshness, and duplication. Use periodically to maintain a clean plugin.
Also in 6 projects that use this
FaisalAlqarniSkillspringboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
Also in 5 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 4 projects that use this
- +6 more from Infopibe
- +1 more from FaisalAlqarni
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- songjiun10-collab/Senior-thinking-skills★ 82same name
- xiaobei930/cc-best★ 48same name
- LeeYudok/agents-scaffold★ 28same name
- sidiangongyuan/codex-skills-library★ 18same name
- jiten-singh-shahi/salesforce-claude-code★ 17same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- security-checkSkill
- environment-checkSkill
- run-verificationSkill
- refactorSkill
- actSkill
- debug-sessionSkill
- generate-guardsSkill
- check-anthropicSkill
- code-reviewerSkill
- code-reviewSkill
- debug-sessionSkill
- end-sessionSkill
- evolve-checkSkill
- evolveSkill
- fix-bugSkill
- forgetSkill
- frontend-designSkill
- guardSkill
- kit-healthSkill
- learnSkill
- map-codebaseSkill
- modeSkill
- parallel-prototypesSkill
- planSkill
- powershell-safeSkill
- product-riskSkill
- progress-reportSkill
- prototype-hypothesisSkill
- recallSkill
- refactoring-uiSkill
- scan-codebaseSkill
- scan-conventionsSkill
- search-memorySkill
- shadow-codeSkill
- skill-creatorSkill
- smart-resumeSkill
- start-sessionSkill
- strategic-compactSkill
- tourSkill
- ux-heuristicsSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Allowed Tools: Read, Glob, Grep, Bash
- Very specific: line 18
Check function indexes / API reference in .claude/memory/
- Distinctive: line 19
Check architecture docs for existing patterns
- Distinctive: line 48
Search memory indexes first (faster) before reading source files
- Distinctive: line 49
If a pattern appears in 3+ places, it should be extracted into a shared utility
- Distinctive: line 50
After finding existing code: check if it needs to be updated vs reused as-is
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: search-first
Trigger: Automatically before any new feature implementation, or "search first" or "check if this exists"
Description: Enforces research-before-coding. Before writing any new code, search the existing codebase for reusable patterns, existing implementations, and prior art. Prevents duplicated logic.
Allowed Tools: Read, Glob, Grep, Bash
Steps
- Search existing code for similar functionality:
- Grep for method names, endpoint names, or key terms
- Does something already do what's being requested?
- Search memory indexes:
- Check function indexes / API reference in
.claude/memory/ - Check architecture docs for existing patterns
- Check function indexes / API reference in
- Search for existing patterns:
- Is there a helper or utility that already handles this?
- Can an existing function be extended rather than duplicating?
- Check for existing data fetching:
- Is there already an API endpoint that returns this data?
- Can the frontend reuse an existing call?
- Report findings:
- ✅ "Found existing:
[method/function]in[file]— reuse this, no new code needed" - ⚠️ "Partial match:
[method]— extend this instead of creating new" - 🆕 "No existing pattern found — safe to create new"
- ✅ "Found existing:
- Only proceed to plan/code after search is complete
Why This Matters
- Duplicate logic = two places to fix when bugs appear
- Searching takes 2 minutes and can save hours of debugging
- The best code is code you don't write
Notes
- Search memory indexes first (faster) before reading source files
- If a pattern appears in 3+ places, it should be extracted into a shared utility
- After finding existing code: check if it needs to be updated vs reused as-is
- This skill pairs with plan-before-coding — search → plan → confirm → code
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

