Agent skill

avoid-premature-optimization

Write clear, correct code first Use when optimizing code performance. Performance category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/avoid-premature-optimization

Metadata

Additional technical details for this skill

category
Performance
priority
high
is built in
YES
session guardian id
builtin_avoid_premature_optimization

SKILL.md

Avoid Premature Optimization

Write clear, correct code first. Only optimize after measuring with real data to identify actual bottlenecks. Micro-optimizations often provide negligible benefit while reducing readability. However, choose appropriate algorithms and data structures from the start—this is design, not optimization. Document performance-critical sections and the reasoning behind optimizations.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results