search-first
Skill15 starsChanged 7 months agoMITView on GitHub
Use when researching existing Salesforce tools, Apex libraries, or metadata patterns before writing custom code. Search-first workflow with agent. Do NOT use for implementing code — only for discovery and evaluation.
42 other projects use a version of this, 23 of them edited.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codeedited, first seen Nov 8, 2026
- shimo4228/akc-cycletheir own version, first seen Nov 8, 2026
- pankaj-mahaur/Agent-Daemonedited, first seen Nov 6, 2026
- matheus-rib1108/meu-kit-claude-codeedited, first seen Nov 1, 2026
- TsinHzl/claude-code-configtheir own version, first seen Nov 1, 2026
- shimo4228/search-firsttheir own version, first seen Nov 1, 2026
Used with
Projects with it also use agent-harness-construction, safety-guard and 9 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.
junimnjwSkillagent-harness-construction
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
Also in 4 projects that use this
loulanyueSkillsafety-guard
Also in 3 projects that use this
junimnjwSkillai-first-engineering
Engineering operating model for teams where AI agents generate a large share of implementation output.
Also in 3 projects that use this
loulanyueSkillrules-distill
Scan skills to extract cross-cutting principles and distill them into rules — append, revise, or create new rule files
Also in 3 projects that use this
dcs-soniSkillcodebase-onboarding
Help developers understand unfamiliar codebases quickly. Use when
Also in 3 projects that use this
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
- +1 more from junimnjw
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 23
- loulanyue/awesome-claude-notes★ 27236% same
- Fmarzochi/EGC★ 6134% same
- frankxai/agentic-creator-os★ 1036% same
- DetectHensenberg/RAG4JZDQ★ 836% same
- gongyijie85/dsh-ecc★ 827% same
- VoVuongThanhDat/agentflow★ 836% same
- chadixearth/graphyloop★ 327% same
- bjornjee/skills★ 219% same
- themusecatcher/ai-coding-kit★ 236% same
- get-proofpilot/claude-skills-catalog★ 136% same
13 more not listed
Wrote their own version · 19
- songjiun10-collab/Senior-thinking-skills★ 87same name
- LeeYudok/agents-scaffold★ 38same name
- YehudaFrankel/clankbrain★ 16same name
- sidiangongyuan/codex-skills-library★ 11same name
- arsen-ask-lx/Agent_Quality_Kit★ 4same name
- shimo4228/claude-harness★ 4same name
- shimo4228/search-first★ 4same name
- Yog-Sotho/claude-skills★ 4same name
- Saddss/cursor-skills★ 2same name
- shimo4228/akc-cycle★ 2same name
9 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 repository58 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asideSkill
- checkpointSkill
- configure-sccSkill
- continuous-agent-loopSkill
- mcp-server-patternsSkill
- model-routeSkill
- prompt-optimizerSkill
- refactor-cleanSkill
- resume-sessionSkill
- save-sessionSkill
- security-scanSkill
- sessionsSkill
- sf-2gp-security-reviewSkill
- sf-agentforce-developmentSkill
- sf-agentforce-mcp-actionsSkill
- sf-apex-async-patternsSkill
- sf-apex-best-practicesSkill
- sf-apex-constraintsSkill
- sf-apex-cursorSkill
- sf-apex-enterprise-patternsSkill
- sf-apex-testingSkill
- sf-api-designSkill
- sf-approval-processesSkill
- sf-aura-developmentSkill
- sf-build-fixSkill
- sf-cli-referenceSkill
- sf-data-modelingSkill
- sf-debuggingSkill
- sf-deployment-constraintsSkill
- sf-deploymentSkill
- sf-devops-ci-cdSkill
- sf-docs-lookupSkill
- sf-e2e-testingSkill
- sf-experience-cloudSkill
- sf-flow-developmentSkill
- sf-governor-limitsSkill
- sf-harness-auditSkill
- sf-helpSkill
- sf-integrationSkill
- sf-lwc-constraintsSkill
- sf-lwc-developmentSkill
- sf-lwc-testingSkill
- sf-metadata-managementSkill
- sf-platform-events-cdcSkill
- sf-quickstartSkill
- sf-security-constraintsSkill
- sf-securitySkill
- sf-soql-constraintsSkill
- sf-soql-optimizationSkill
- sf-tdd-workflowSkill
- sf-testing-constraintsSkill
- sf-trigger-constraintsSkill
- sf-trigger-frameworksSkill
- sf-visualforce-developmentSkill
- strategic-compactSkill
- update-docsSkill
- update-platform-docsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 2 are common, 6 are distinctive, and 0 are very specific to this project.
2
Common
Most of the 36 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Before writing any custom utility, library, or integration code
- Distinctive: line 14
When evaluating whether to use npm, AppExchange, or MCP packages for a requirement
- Distinctive: line 15
When starting a new feature that likely has existing open-source or platform solutions
- Distinctive: line 16
When deciding between adopting, extending, composing, or building custom code
- Distinctive: line 17
When the user asks to "add X functionality" and you're about to write net-new code
- Common: line 62
Before writing a utility or adding functionality, mentally run through:
- Distinctive: line 99
Before building custom tooling, check if an MCP server handles it:
- Common: line 137
Ignoring MCP: Not checking if an MCP server already provides the capability
“Common” is measured: kept by at least 6 in 10 of the 36 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
/search-first — Research Before You Code
Systematizes the "search for existing solutions before implementing" workflow.
When to Use
- Before writing any custom utility, library, or integration code
- When evaluating whether to use npm, AppExchange, or MCP packages for a requirement
- When starting a new feature that likely has existing open-source or platform solutions
- When deciding between adopting, extending, composing, or building custom code
- When the user asks to "add X functionality" and you're about to write net-new code
Workflow
+---------------------------------------------+
| 1. NEED ANALYSIS |
| Define what functionality is needed |
| Identify language/framework constraints |
+---------------------------------------------+
| 2. PARALLEL SEARCH (general-purpose agent) |
| +----------+ +----------+ +----------+ |
| | npm / | | MCP / | | GitHub / | |
| | AppExch | | Skills | | Web | |
| +----------+ +----------+ +----------+ |
+---------------------------------------------+
| 3. EVALUATE |
| Score candidates (functionality, maint, |
| community, docs, license, deps) |
+---------------------------------------------+
| 4. DECIDE |
| +---------+ +----------+ +---------+ |
| | Adopt | | Extend | | Build | |
| | as-is | | /Wrap | | Custom | |
| +---------+ +----------+ +---------+ |
+---------------------------------------------+
| 5. IMPLEMENT |
| Install package / Configure MCP / |
| Write minimal custom code |
+---------------------------------------------+Decision Matrix
| Signal | Action |
| Exact match, well-maintained, MIT/Apache | Adopt — install and use directly |
| Partial match, good foundation | Extend — install + write thin wrapper |
| Multiple weak matches | Compose — combine 2-3 small packages |
| Nothing suitable found | Build — write custom, but informed by research |
How to Use
Quick Mode (inline)
Before writing a utility or adding functionality, mentally run through:
- Does this already exist in the repo? ->
rgthrough relevant modules/tests first - Is this a common problem? -> Search npm/AppExchange
- Is there an MCP for this? -> Check
~/.claude/settings.jsonand search - Is there a skill for this? -> Check
~/.claude/skills/ - Is there a GitHub implementation/template? -> Run GitHub code search
Full Mode (agent)
For non-trivial functionality, launch a general-purpose agent:
Task(subagent_type="general-purpose", prompt="
Research existing tools for: [DESCRIPTION]
Language/framework: [LANG]
Constraints: [ANY]
Search: npm/AppExchange, MCP servers, Claude Code skills, GitHub
Return: Structured comparison with recommendation
")Salesforce-Specific Tool Discovery
| Category | Tools to Check | Notes |
| Testing | ApexMocks, FFLib, at4dx, Apex Replay Debugger | FFLib is the industry standard |
| CI/CD | CumulusCI, sfdx-git-delta, sf scanner, GitHub Actions | sfdx-git-delta for delta deployments |
| Data | SFDX Data Loader, DLRS (Declarative Lookup Rollup Summary), DataWeave | DLRS replaces rollup trigger code |
| Security | Shield Platform Encryption, Event Monitoring, SF Code Analyzer | Scanner catches PMD violations |
| Documentation | ApexDox, SfApexDoc | Auto-generate Apex docs |
| MCP | @salesforce/mcp (official), community MCP servers | Check official first |
| Package Mgmt | CumulusCI, SFDX Package commands | For managed/unlocked packages |
MCP Server Evaluation
Before building custom tooling, check if an MCP server handles it:
- @salesforce/mcp (official) — orgs, metadata, data, testing, code-analysis, LWC, DevOps
- Community MCP servers — search npm for
mcp+ your domain - Build custom only if — no existing server covers your specific business logic
Salesforce Decision Examples
Scenario 1: "We need rollup summary fields on lookup relationships"
Search: AppExchange "rollup summary lookup"
Found: DLRS (Declarative Lookup Rollup Summaries) — 4.8★, 5000+ installs
Decision: ADOPT — install DLRS, configure declaratively
Result: Zero custom Apex code for rollup calculationsScenario 2: "We need delta deployments in CI"
Search: npm "salesforce delta deployment"
Found: sfdx-git-delta — actively maintained, 1000+ stars
Decision: ADOPT — add as sf plugin, configure in GitHub Actions
Result: Deploy only changed metadata, 10x faster CIScenario 3: "We need custom approval routing based on territory"
Search: AppExchange "dynamic approval routing territory"
Found: Several packages but none match exact business rules
Decision: BUILD — custom Apex approval process with territory-based routing
Result: Custom code, but informed by research (knew no package fit)Anti-Patterns
- Jumping to code: Writing a utility without checking if one exists
- Ignoring MCP: Not checking if an MCP server already provides the capability
- Over-customizing: Wrapping a library so heavily it loses its benefits
- Not checking AppExchange: Many common patterns have managed packages with support
- Reinventing DLRS: Writing rollup trigger code when DLRS handles it declaratively
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.

