From wicked-garden
Find the most-referenced symbols in the codebase — classes, functions, and modules with the highest connectivity
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden[--limit <n>] [--layer <layer>] [--type <type>]search/# /wicked-garden:search:hotspots Identify hotspot symbols ranked by total reference count (incoming + outgoing). Use this to find central coupling points, high-impact refactor targets, and architectural load-bearers. ## Instructions 1. **Search brain for high-connectivity symbols**: If brain is unavailable, fall back to Grep/Glob: - Use Grep to find class/function definitions across the codebase - Use Grep to count import/require references to each symbol - Rank by reference count Suggest `wicked-brain:ingest` to index the codebase for faster hotspot analysis. 2. **Co...
/hotspotsFind cleanup targets — complexity hotspots, refcount issues, and error handling bugs
/hotspotsFind the worst functions to fix first by combining refcount issues, error handling bugs, and complexity scoring. Use when the user asks where to focus review effort, which functions are most dangerous, what to fix first, or wants a prioritized list of hotspots in a C extension.
/hotspotsFind cleanup targets — complexity hotspots, dead code, and tech debt
Identify hotspot symbols ranked by total reference count (incoming + outgoing). Use this to find central coupling points, high-impact refactor targets, and architectural load-bearers.
Search brain for high-connectivity symbols:
curl -s -X POST http://localhost:4242/api \
-H "Content-Type: application/json" \
-d '{"action":"search","params":{"query":"class function module export","limit":50}}'
If brain is unavailable, fall back to Grep/Glob:
wicked-brain:ingest to index the codebase for faster hotspot analysis.Count references for discovered symbols using Grep:
Grep: <symbol_name> across all source files — count matches
Arguments (all optional):
| Argument | Default | Description |
|---|---|---|
--limit N | 20 | Number of results to return |
--layer LAYER | — | Filter to one architectural layer (backend, frontend, database, view) |
--type TYPE | — | Filter to one symbol type (CLASS, FUNCTION, METHOD, TABLE, etc.) |
Present results as a ranked table:
| Rank | Symbol | Type | Layer | In | Out | Total |
|---|---|---|---|---|---|---|
| 1 | UserService | CLASS | backend | 42 | 18 | 60 |
| 2 | db_session | FUNCTION | database | 38 | 5 | 43 |
| 3 | AuthMiddleware | CLASS | backend | 31 | 11 | 42 |
Highlight:
in_count is very high relative to out_count (widely imported utilities)out_count is very high relative to in_count (orchestrators or god objects worth reviewing)/wicked-garden:search:hotspots
/wicked-garden:search:hotspots --limit 10
/wicked-garden:search:hotspots --layer backend
/wicked-garden:search:hotspots --type CLASS --limit 15