Deep code optimization audit using parallel specialist agents. Each agent hunts for performance anti-patterns, inefficiencies, and suboptimal code using pattern-based detection (Grep/Glob) WITHOUT reading the full source code first — avoiding anchoring bias on existing implementations. Covers ALL optimization domains: database queries, memory leaks, algorithmic complexity, concurrency, bundle size, dead code, I/O & network, rendering/UI, data structures, error handling, caching, build config, se
SkillScore59Maintained
Automatic
◆Coding pack
Last verified 9/27/2026
What it changes
Passed 10 of 17 test cases with the skill, and 5 of 17 without it.
Without skill32%
With skill59%
Checks it passed that the model alone missed
Groups consolidated report findings by file path.
Loads pattern rules from `references/database-queries.md`.
Loads pattern rules from `references/concurrency-async.md`.
and 9 more in the full report
8 fixed5 passed either way7 still failing2 broke
Pass-rate lift
+27 pp
Tokens
+27%
Agent turns
0%
Response time
-33%
Model gemini-3.6-flashMeasured 9/27/2026v113 of 22 cases passed with skill · 17 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 8
Prompt
When prompting the Algorithmic Complexity agent during a performance audit, what preliminary step must the agent execute before executing Grep/Glob pattern searches on the project?
What was checked, without and with the skill
Checked
Without skill
With skill
Instructs the agent to read `references/algorithmic-complexity.md` before searching.
Missed
Passed
case-13 · gemini-3.6-flash · 9/27/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md144 lines16 files
Code Optimizer
Parallel multi-agent code optimization audit. Spawn 13 specialist agents simultaneously, each
hunting for a different class of performance problem using pattern-based detection.
Critical Principle: No Code Reading Before Analysis
Agents MUST NOT read source files before searching for patterns. Reading the code first causes
anchoring bias — the agent accepts the existing implementation as "reasonable" and misses
better alternatives. Instead, each agent:
Read its assigned reference file from references/ to load detection patterns
Use Grep/Glob to scan the codebase for anti-patterns
For each finding, ONLY THEN read the surrounding context (5-10 lines) to confirm the issue
Propose the optimal solution based on best practices, NOT based on the existing code
Workflow
Step 1: Detect Stack
Use Glob to identify the project's tech stack:
**/package.json → Node.js/JS/TS (check for React, Next.js, Express, etc.)