Skip to content
Back to skills

Measure First

ASecurity

Diagnose a suspected performance or resource regression using a repeatable baseline before optimization.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 13, 2026
ai-agentsperformance

Security analysis

A100/100

Scanned October 13, 2026

npx -y skills add sujith011/agentic-pro-skills --skill measure-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Measure First?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Measure First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sujith011-measure-first/badge)](https://www.skillsdirectory.com/skills/sujith011-measure-first)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: measure-first
description: "Diagnose a suspected performance or resource regression using a repeatable baseline before optimization."
---

# Measure First
Optimize the dominant measured cost and preserve correctness.

## Process
1. Define the metric, representative workload, environment, and acceptance target.
2. Warm up when appropriate and collect repeated baseline measurements.
3. Profile to localize the dominant cost rather than guessing.
4. Make one targeted change and rerun the same workload.
5. Compare distributions and resource usage, not a single best run. Recheck behavior.
6. Retain the change only if the measured benefit justifies complexity.

## Example
For slow list rendering, compare render duration and interaction latency on the same dataset/device before introducing memoization.

## Stop conditions
Do not claim a tiny improvement that is within measurement noise or compare different workloads as if they were equivalent.

## Evidence
- [ ] Baseline and candidate use comparable conditions.
- [ ] Profiling supports the targeted change.
- [ ] Results, variability, and correctness checks are recorded.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.