architecture-breakdown
Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…
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.
Claude Code
$ npx -y skills add autohandai/code-cli --skill performance-analysis --agent claude-code
Codex
$ npx skills add autohandai/code-cli --skill performance-analysis -a codex -y
Cursor
$ npx skills add autohandai/code-cli --skill performance-analysis -a cursor -y
Gemini CLI
$ npx skills add autohandai/code-cli --skill performance-analysis -a gemini-cli -y
GitHub Copilot
$ npx skills add autohandai/code-cli --skill performance-analysis -a github-copilot -y
OpenCode
$ npx skills add autohandai/code-cli --skill performance-analysis -a opencode -y
Windsurf
$ npx skills add autohandai/code-cli --skill performance-analysis -a windsurf -y
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
Optimizing without a measurement changes the code without changing the outcome. Every step below produces a number you can show.
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.
CPU work; the fix differs.
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.
expected gain before making it.
budget constant, or a test that the work is deferred or cached.
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.
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,
Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…
Turn a rough software idea into a clear, well-scoped design before any code is written. Use when the user wants to design,…
Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and…
Operate native desktop applications through Autohand Computer Use. Use when the user asks Autohand to open, drive, click, type,…
Explore, clean, analyze, and model data in the workspace (CSV, JSON, Parquet, SQL, notebooks) with reproducible scripts and…
Conduct iterative, multi-source deep research on a topic and produce a cited project report.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.