Search first
Before building anything custom, check whether it already exists. Stop at the first tier that's a good fit — do not propose a build until every cheaper option is ruled out.
Name the capability, not the implementation. One line on what the code must do, plus the real constraints: stack version, license limits, latency, ops budget.
Search in order, stop at the first good fit: this repo (utility, module, skill, pattern) → framework/platform native feature → the current tool or MCP surface → a maintained ecosystem library → a managed service → custom code, last.
Score every external candidate in one pass: maintained within the last year, real adoption, no open Critical/High CVE, a compatible license (MIT/Apache/BSD; stop at GPL or "no license"), and it covers most of the need without heavy wrapping. Read its latest stable release and its date live, never from memory, and check that it supports the runtime versions the project runs.
3a. Check what the score misses. Look up its advisories in the live feeds that bosskuai-security-gate uses. Read its defaults for timeouts, retries, rounding, time zones and currency, and check them against what the project needs.
One red flag kills the candidate. Abandoned, an unpatched CVE, or an incompatible license — drop it and move to the next tier instead of rationalizing around it.
If nobody is available to weigh in, default to whichever option clears every check above with the least new code for you to maintain, and say so in one line.
Building, or the feature is new to you? Study prior art first. Find 2-3 open-source projects that already ship it (gh search repos "<capability>" --sort stars, gh search code), read how each one does it, and compare in a few lines: approach, edge cases handled, known bugs in their issues. Pick one approach, then build. Borrow ideas freely; copy code only under a compatible license, with its notice kept.
State the smallest next step: for adopt, the integration point; for build, the minimal first version — not the full feature. For a hosted service or a new dependency, also name the failure plan (timeouts, retries that are safe to repeat, rate limits), who upgrades it, and how to switch it off behind a flag.
Check before you finish: you actually looked at the candidate's last commit and license before recommending it, you didn't reject an option just because it needs reading docs, and "we can just use X" is backed by a real check of X. The version and advisory checks were read live, not recalled.
Full evaluation table, the build-vs-adopt matrix, and the output template: reference.md.
Shared bar: ../../references/checklists/engineering-quality-bar.md.
Preflight the search channels you rely on and report skipped ones honestly (never "nothing found" when a channel was unavailable):
- Repo:
rg --files plus targeted rg; if that is all you could do, say only visible files were inspected.
- Package registry: confirm the package manager works (
npm --version, python -m pip --version); otherwise use docs or web search and do not claim registry coverage.
- GitHub:
gh auth status; if unauthenticated, use public web or local git history only.
- MCP and docs tools: check the available tool list or local MCP config; fall back to official docs.
- Local skills: list the skills directory; if none, say no skill catalog was available.
Decision outcomes: adopt as-is (exact match, maintained, permissive license); extend or wrap (partial match, thin wrapper); compose (2-3 small packages when several matches are weak); build (nothing suitable, but informed by what you found). Anti-patterns: over-customizing a library until it loses its benefit, and installing a large package for one small feature.
Adapted in part from ECC skills/search-first (affaan-m/ECC, MIT).
1---2name: bosskuai-search-first3description: Use when about to build custom code or an unfamiliar feature, to adopt an existing package, service, MCP, utility or pattern, or study open-source prior art.4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-search-first6---78# Search first910Before building anything custom, check whether it already exists. Stop at the first tier that's a good fit — do not propose a build until every cheaper option is ruled out.11121. **Name the capability, not the implementation.** One line on what the code must do, plus the real constraints: stack version, license limits, latency, ops budget.132. **Search in order, stop at the first good fit:** this repo (utility, module, skill, pattern) → framework/platform native feature → the current tool or MCP surface → a maintained ecosystem library → a managed service → custom code, last.143. **Score every external candidate in one pass:** maintained within the last year, real adoption, no open Critical/High CVE, a compatible license (MIT/Apache/BSD; stop at GPL or "no license"), and it covers most of the need without heavy wrapping. Read its latest stable release and its date live, never from memory, and check that it supports the runtime versions the project runs.1516 3a. **Check what the score misses.** Look up its advisories in the live feeds that `bosskuai-security-gate` uses. Read its defaults for timeouts, retries, rounding, time zones and currency, and check them against what the project needs.174. **One red flag kills the candidate.** Abandoned, an unpatched CVE, or an incompatible license — drop it and move to the next tier instead of rationalizing around it.185. **If nobody is available to weigh in**, default to whichever option clears every check above with the least new code for you to maintain, and say so in one line.196. **Building, or the feature is new to you? Study prior art first.** Find 2-3 open-source projects that already ship it (`gh search repos "<capability>" --sort stars`, `gh search code`), read how each one does it, and compare in a few lines: approach, edge cases handled, known bugs in their issues. Pick one approach, then build. Borrow ideas freely; copy code only under a compatible license, with its notice kept.207. **State the smallest next step**: for adopt, the integration point; for build, the minimal first version — not the full feature. For a hosted service or a new dependency, also name the failure plan (timeouts, retries that are safe to repeat, rate limits), who upgrades it, and how to switch it off behind a flag.2122Check before you finish: you actually looked at the candidate's last commit and license before recommending it, you didn't reject an option just because it needs reading docs, and "we can just use X" is backed by a real check of X. The version and advisory checks were read live, not recalled.2324Full evaluation table, the build-vs-adopt matrix, and the output template: `reference.md`.2526Shared bar: `../../references/checklists/engineering-quality-bar.md`.2728**Preflight the search channels you rely on** and report skipped ones honestly (never "nothing found" when a channel was unavailable):2930- Repo: `rg --files` plus targeted `rg`; if that is all you could do, say only visible files were inspected.31- Package registry: confirm the package manager works (`npm --version`, `python -m pip --version`); otherwise use docs or web search and do not claim registry coverage.32- GitHub: `gh auth status`; if unauthenticated, use public web or local git history only.33- MCP and docs tools: check the available tool list or local MCP config; fall back to official docs.34- Local skills: list the skills directory; if none, say no skill catalog was available.3536**Decision outcomes**: adopt as-is (exact match, maintained, permissive license); extend or wrap (partial match, thin wrapper); compose (2-3 small packages when several matches are weak); build (nothing suitable, but informed by what you found). Anti-patterns: over-customizing a library until it loses its benefit, and installing a large package for one small feature.3738Adapted in part from ECC skills/search-first (affaan-m/ECC, MIT).