Skip to content
cloudai-x avatar

Optimizing Performance

Structured workflow for diagnosing and fixing slowness across frontend, backend, and database layers, requiring measurements before and after each change.

CCM score
56 of 100
skills.sh installs
212
GitHub stars
1.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a five-step loop: measure baseline, identify bottlenecks, apply targeted fixes, re-measure, and repeat until targets are met
  • Lists profiling commands for Node.js, Python, and Lighthouse, plus a bottleneck table for CPU, memory, I/O, and database issues
  • Includes before-and-after code patterns for bundle size, memoization, image loading, N+1 queries, multi-layer caching, background jobs, and algorithm complexity
  • Enforces a rule against optimizing without profiling data and sets Web Vitals and API latency targets to judge results against
  • Designed for diagnosing slow pages, slow endpoints, or heavy bundles in web applications

Install

$ npx -y skills add cloudai-x/claude-workflow-v2 --skill optimizing-performance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Optimizing Performance

When to Load

  • Trigger: Diagnosing slowness, profiling, caching strategies, reducing load times, bundle size optimization
  • Skip: Correctness-focused work where performance is not a concern

Performance Optimization Workflow

Copy this checklist and track progress:

Performance Optimization Progress:
- [ ] Step 1: Measure baseline performance
- [ ] Step 2: Identify bottlenecks
- [ ] Step 3: Apply targeted optimizations
- [ ] Step 4: Measure again and compare
- [ ] Step 5: Repeat if targets not met

Critical Rule: Never optimize without data. Always profile before and after changes.

Step 1: Measure Baseline

Profiling Commands

# Node.js profiling
node --prof app.js
node --prof-process isolate*.log > profile.txt

# Python profiling
python -m cProfile -o profile.stats app.py
python -m pstats profile.stats

# Web performance
lighthouse https://example.com --output=json

Step 2: Identify Bottlenecks

Common Bottleneck Categories

Details

Repository
github.com/cloudai-x/claude-workflow-v2
Categories
Debugging, Backend & APIs, Frontend & UI Code
License
MIT
First seen
Jun 3, 2026

Questions

What does the optimizing-performance skill do?

It analyzes and optimizes application performance across frontend, backend, and database layers. It covers diagnosing slowness, improving load times, optimizing queries, and reducing bundle size, following a measure, find bottlenecks, optimize, and re-measure workflow.

How do I install the optimizing-performance skill?

Run npx -y skills add cloudai-x/claude-workflow-v2 --skill optimizing-performance -y in a project. Once installed, the agent can profile code, pick targeted fixes such as caching, lazy loading, or indexed queries, and check results against Web Vitals and API latency targets.

When should I load the optimizing-performance skill?

Load it when you are diagnosing slowness, profiling, planning caching strategies, reducing load times, or cutting bundle size. It is meant for performance work, and it is skipped for correctness-focused tasks where speed is not a concern.

Which other skills sit next to optimizing-performance in the Debugging category?

In the Debugging category it sits alongside diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging and sentry-cli. Its focus is measuring and tuning speed across the stack rather than tracking down correctness bugs.

More from cloudai-x/claude-workflow-v2

All 13

Similar to Optimizing Performance

More Debugging