improve-measured

Profile, implement, and validate code improvements with baseline measurements.

Updated Jun 22, 2026
One-click install
npx skills add https://github.com/skylarsabo/code-ops --skill improve-measured
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: improve-measured
Source: https://github.com/skylarsabo/code-ops/tree/main/plugins/rigor/skills/improve-measured
Command: npx skills add https://github.com/skylarsabo/code-ops --skill improve-measured

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of making measurable, behavior-preserving improvements to code, eliminating speculative refactoring and ensuring that changes have a positive impact.

Core Features & Use Cases

  • Behavior-Preserving Improvements: Ensures that code optimizations and changes do not break existing functionality.
  • Measurable Results: Provides before-and-after metrics to validate the effectiveness of changes.
  • Use Case: Use this Skill to optimize a critical section of code, such as a frequently called function, to improve performance without introducing bugs.

Quick Start

Run the improve-measured command to start optimizing your code, ensuring that changes are both measurable and behavior-preserving.

Frequently Asked Questions about improve-measured

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

FAQPage Schema
How do I optimize code performance without breaking existing functionality?▼

Code optimization without breaking functionality requires behavior-preserving improvements validated against a baseline. This Skill automates profiling and implementing changes while running regression testing to ensure no functionality breaks.

What is behavior preservation in code optimization?▼

Behavior preservation in code optimization ensures that performance tuning changes do not alter existing functionality. It relies on a safety-net of regression tests to validate that the modified code produces identical outputs to the original baseline.

How do I measure the impact of code improvements?▼

Measuring the impact of code improvements requires capturing before-and-after metrics during profiling. This Skill automates the process of taking a baseline measurement, implementing optimizations, and validating the measurable results against the original performance.

Do I need regression tests to automate performance tuning?▼

Yes, you need regression tests as a safety-net to automate performance tuning. This Skill requires a baseline measurement and existing regression tests to prevent regressions and validate behavior preservation during the code improvement process.

What's the best way to automate refactoring a frequently called function?▼

The best way to automate refactoring a frequently called function is using measured code improvement workflows. This approach profiles the target code, applies optimizations, and validates behavior preservation to eliminate speculative refactoring and ensure measurable results.