Checks codebase, package registries, and MCP servers before building new utilities or adding dependencies. Prevents redundant work and guides reuse-vs-build decisions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codebase-intelligence:search-before-buildingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before implementing new functionality, verify it does not already exist and that the best option has been considered.
Before implementing new functionality, verify it does not already exist and that the best option has been considered.
Run in order. Stop when you find a satisfactory answer.
Search the current codebase before anything else:
rg "<keyword>" src/ lib/ --type ts --type js -l
rg "<keyword>" --glob "*.py" -l
Check: Does equivalent logic already exist? Is it importable as-is, or would it need wrapper work?
Search the relevant registry for the project language:
| Language | Registry | Search method |
|---|---|---|
| TypeScript/JS | npm | npm search <keyword> or npmjs.com |
| Python | PyPI | pip index search <keyword> or pypi.org |
| Go | pkg.go.dev | web search site:pkg.go.dev <keyword> |
| Rust | crates.io | cargo search <keyword> |
Score each candidate:
Check whether an MCP server already provides this capability:
# List currently configured MCP servers
cat .mcp.json 2>/dev/null || cat ~/.claude/settings.json | grep -A5 '"mcpServers"'
Check the Agent Powerups catalog for MCP configs:
apx list --type mcp-config
If a server covers the need, prefer configuring it over writing code.
Before adopting a package, verify:
npm audit / pip-audit / cargo audit)| Finding | Action |
|---|---|
| Exact match in repo | Reuse — import and use; refactor only if the interface is incompatible |
| Exact external match, acceptable risk | Adopt — install and use directly; do not wrap unless the API is hostile |
| Partial match | Wrap — install, write a thin adapter; keep the adapter < 50 lines |
| Multiple weak matches | Compose — combine 2–3 small packages; document why |
| No suitable option | Build — write custom code; document the gap search found |
This check is mandatory before:
If time-boxed, spend at most 5 minutes on Steps 1–2 before deciding.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Runs a structured interview session to sharpen plans or designs, producing ADRs and a glossary as output.
Applies curated color/font themes to slides, docs, and HTML artifacts. Includes 10 preset themes and can generate custom themes on demand.
2plugins reuse this skill
First indexed Jul 28, 2026
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-intelligence