optimizing-critical-paths

Enforce a measurement-first workflow for performance optimization with repeatable benchmarks.

60|3|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/ryanthedev/oberskills --skill optimizing-critical-paths
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimizing-critical-paths
Source: https://github.com/ryanthedev/oberskills/tree/main/research/optimizing-critical-paths
Command: npx skills add https://github.com/ryanthedev/oberskills --skill optimizing-critical-paths

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams enforce a measurement-first workflow for performance optimization, ensuring changes are data-driven rather than intuition-based.

Core Features & Use Cases

  • Mandatory measurement gate: Stage 1 must be completed with profiling data before optimization.
  • Fundamental fixes first: Evaluate caches, algorithms, bypassing layers before code changes.
  • Anti-rationalization & safety rails: Includes an anti-rationalization table to mitigate bias and pressure tactics.
  • End-to-end workflow: Measure -> Identify -> Fix -> Verify for performance bottlenecks.
  • Use Case: A developer notices a slow hotspot and uses the skill to measure first, confirm bottlenecks, and verify improvements with measurements.

Quick Start

Measure the current performance first, then identify bottlenecks, implement a data-backed fix, and re-measure to verify improvements.

Frequently Asked Questions about optimizing-critical-paths

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

FAQPage Schema
How do I identify performance bottlenecks before optimizing code?

To identify performance bottlenecks effectively, you must gather profiling data first to measure the current slow paths. This measurement-first approach ensures your optimization efforts target actual high resource usage rather than intuition-based guesses.

What is the best way to verify performance optimization fixes?

The best way to verify performance optimization fixes is by running repeatable benchmarks before and after code changes. This data-driven evaluation confirms that fundamental fixes, such as algorithmic improvements or cache additions, actually resolved the bottleneck.

How do I stop rationalizing premature code optimizations?

To stop rationalizing premature optimizations, use an anti-rationalization table and enforce a mandatory measurement gate. This prevents bias and pressure tactics by requiring concrete profiling data to confirm a slow hotspot exists before any code changes begin.

What should I evaluate first when fixing slow code paths?

When fixing slow code paths, you should evaluate fundamental fixes first, such as implementing caches, upgrading algorithms, or bypassing unnecessary layers. This ensures you address root causes before making superficial code changes.

Can I optimize resource-intensive code without profiling data?

No, you should not optimize resource-intensive code without profiling data. A mandatory measurement gate requires you to profile and confirm the exact bottleneck first, ensuring all subsequent optimizations are strictly data-driven and validated.