cc-performance-tuning

Profile code and generate evidence-based violation, warning, and pass reports.

351|31|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/ryanthedev/code-foundations --skill cc-performance-tuning
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cc-performance-tuning
Source: https://github.com/ryanthedev/code-foundations/tree/main/skills/cc-performance-tuning
Command: npx skills add https://github.com/ryanthedev/code-foundations --skill cc-performance-tuning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a measure-first approach to code optimization, ensuring performance work is grounded in data and guided by a structured process (the 7-step gated decision tree and a 40-item checklist).

Core Features & Use Cases

  • Measure-first profiling: Profile before tuning and document measurable improvements.
  • Structured decision making: Apply a 7-step gated process to decide when and how to optimize.
  • Scalability and resilience: Target slow paths, timeouts, high CPU/memory usage, and overall scalability issues across services.
  • Evidence-based reporting: Produce a violation/warning/pass table with supporting evidence to justify changes.

Quick Start

Run a profiler on the hot path, apply the 7-step gated decision tree, and generate a report detailing violations, warnings, and passes with evidence.

Frequently Asked Questions about cc-performance-tuning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify and fix performance bottlenecks in a slow web service?▼

Measure-first performance tuning requires running a profiler on the hot path before optimizing code. You collect quantitative metrics, apply a 7-step gated decision tree to guide changes, and produce a violation, warning, and pass table with evidence to document measurable improvements.

What is the best way to approach code optimization for high CPU and memory usage?▼

Code optimization for high CPU and memory usage should follow a measure-first approach. Profile the hot path to gather quantitative metrics, evaluate the system against a 40-item checklist, and document improvements using a structured violation and warning table.

Can I use this performance tuning process for batch jobs and multi-threaded services?▼

Yes, this performance tuning process applies to single-process or multi-threaded services, web apps, and batch jobs. It targets slow paths, timeouts, and poor scalability across these contexts by enforcing a measure-first profiling approach before any code optimization.

When should I not optimize code without profiling first?▼

You should not optimize code without profiling first because performance tuning must be grounded in quantitative metrics. Skipping the profiler and the 7-step gated decision tree risks making changes that fail to resolve the actual bottlenecks or improve scalability.

How do I document measurable improvements when fixing performance issues?▼

To document measurable improvements when fixing performance issues, produce a structured violation, warning, and pass table. This report uses evidence collected from profiling to justify code changes and demonstrate the impact on scalability and resource usage.