Use when improving performance, latency, throughput, memory usage, or general efficiency. Start by defining target metrics, measuring comprehensively, attributing bottlenecks, validating with static analysis, and prioritizing macro-optimizations before micro-optimizations.
61
72%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.jcode/skills/optimization/SKILL.mdUse this skill when the task is about making a system faster, lighter, more scalable, or otherwise more efficient.
To optimize properly, you must know:
Do not optimize blindly.
Before changing code, make sure you have the right measurements.
You should have strong attribution for what each part of the system is doing.
If you can analyze runs after the fact with logs or traces, that is often much more powerful than relying only on live inspection.
Not every optimization problem needs runtime profiling first. Often, code inspection reveals the issue.
Check for:
Make sure your asymptotics are right and the overall algorithm makes sense before tuning small details.
Prioritize the largest wins first.
Micro-optimizations matter most after the major inefficiencies are already addressed.
8fc780b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.