Skip to content
Development
Skill

/performance-analysis

Measure before optimizing. Profile startup time, latency, throughput, memory, or bundle size, find the dominant cost with evidence, and propose the smallest change that moves the number. Use for "slow", "takes N seconds", "high CPU or memory", and performance regressions.

From plugin
code-cli
21814 skills15 agents

Claude Code

$ npx -y skills add autohandai/code-cli --skill performance-analysis --agent claude-code

SKILL.md

performance-analysis.SKILL.md
name: performance-analysis
description: Measure before optimizing. Profile startup time, latency, throughput, memory, or bundle size, find the dominant cost with evidence, and propose the smallest change that moves the number. Use for "slow", "takes N seconds", "high CPU or memory", and performance regressions.
allowed-tools: read_file find_grep fff_find list_tree run_command git_log git_diff file_stats

Analyze performance with numbers

Optimizing without a measurement changes the code without changing the outcome. Every step below produces a number you can show.

Establish the baseline

1. Define the metric and the scenario exactly: what is slow, from which event to which, on what input size, on what machine. Ask if unclear. 2. Measure it three times with the tools the project already has (timers, `--profile` flags, `time`, `hyperfine`, language profilers, `--cpu-prof`, heap snapshots, bundle analyzers). Record median and spread. 3. Record the environment: load average, CPU count, disk free, network, concurrent processes. A loaded machine invalidates comparisons.

Find the dominant cost

  • Break the total into phases with timestamps or a profiler; sort by time.
  • Distinguish blocking waits (network, disk, subprocess, locks, timeouts) from

CPU work; the fix differs.

  • Look for the usual shapes: sequential awaits that could be parallel, work

repeated per item that could be cached, unbounded scans that need a budget, startup work that could be lazy or deferred, N+1 calls, large payloads, synchronous I/O on the main thread, retries with long timeouts.

  • Check what scales with input size using two sizes and compare.

Change one thing, then measure again

  • Pick the change with the best ratio of expected gain to risk. State the

expected gain before making it.

  • Re-measure the same way. Report before and after with the spread.
  • Add a guard so it stays fixed: a timing assertion with a generous bound, a

budget constant, or a test that the work is deferred or cached.

Report

Metric, scenario, baseline, cause with file:line, change, result, and what was not addressed. If the measurement showed the suspected cause was wrong, say so.

Read more
@autohandai
Ships withcode-cli

Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia A fast, self-improving terminal-native AI coding agent for planning, reflecting,

21814 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
218
Star history of autohandai/code-cli on GitHub, a chart by star-history.com

Other skills on code-cli.

architecture-breakdown

architecture-breakdown

Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…

@autohandai@autohandaiInstall Skill
brainstorm

brainstorm

Turn a rough software idea into a clear, well-scoped design before any code is written. Use when the user wants to design,…

@autohandai@autohandaiInstall Skill
code-reviewer

code-reviewer

Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and…

@autohandai@autohandaiInstall Skill
computer-control

computer-control

Operate native desktop applications through Autohand Computer Use. Use when the user asks Autohand to open, drive, click, type,…

@autohandai@autohandaiInstall Skill
data-scientist

data-scientist

Explore, clean, analyze, and model data in the workspace (CSV, JSON, Parquet, SQL, notebooks) with reproducible scripts and…

@autohandai@autohandaiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react9d252k
@facebook@facebookInstall Skill

Questions about performance-analysis.

Which coding agents can use performance-analysis?
performance-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.