From superpowers-devops
Use when analyzing code for performance issues, memory leaks, inefficient loops, blocking calls, and resource waste
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-devops:code-optimizationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **Repo mode** — analyze actual source files
RUN commands that could be combined)Python:
list.append() in a loop where a list comprehension would do+ string concatenation in a loop (use join)JavaScript/Node:
Promise chains that could run in parallel (Promise.all)console.log left in hot pathsfs methods (fs.readFileSync) in async handlersGo:
For each finding:
[SEVERITY] Type — Description
Location: file:line or "pasted code, line X"
Impact: what this costs (memory, CPU, latency, etc.)
Fix: specific change to make
Example:
Before: <bad code>
After: <fixed code>
Severity: HIGH (causes real degradation), MEDIUM (wastes resources), LOW (minor improvement).
npx claudepluginhub tspry/superpowers-devops --plugin superpowers-devopsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.