iterative-code-performance/SKILL.md
Improve an existing codebase through repeated evidence-based repository-wide performance scans, module-by-module deep-read coverage, and behavior-safe speed optimizations until no known in-scope actionable bottleneck or unvisited in-scope module remains: measure hot paths, reduce algorithmic complexity, remove avoidable repeated work, optimize IO and batching, control allocation churn, improve caching only where invalidation is clear, and add benchmark or regression guardrails while preserving intended business behavior and the system's macro architecture. Use when users ask for comprehensive speed, latency, throughput, CPU, memory-allocation, query, batching, or hot-path optimization across a repository.
npx skillsauth add laitszkin/apollo-toolkit iterative-code-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
align-project-documents and maintain-project-constraints after the repository is truly iteration-complete.systematic-debug when a performance test, benchmark, load run, or production trace exposes a real business-logic defect that must be fixed at the true owner; improve-observability when profiling signals are missing or measurement requires durable logs, metrics, or traces.discover-edge-cases for high-risk boundary, concurrency, cache-invalidation, or load-shape exploration before changing hot paths.Leave the repository materially faster by continuously scanning the whole codebase, landing the highest-value safe performance optimizations available at each moment, and repeating until there is no known in-scope actionable performance gap left to fix.
For this skill, macro architecture means the system's top-level runtime shape and overall operating logic: major subsystems, top-level execution model, deployment/runtime boundaries, persistence model, service boundaries, and the end-to-end way the whole system works. Ordinary module interactions, helper extraction, local data-structure changes, internal batching, query shaping, memoization inside an owner, and local hot-path decomposition do not count as macro-architecture changes by themselves.
AGENTS.md/CLAUDE.md, README*, package manifests, task runners, CI/test config, benchmark tooling, profiler setup, and major project docs.references/repository-scan.md for the scan checklist and performance-backlog shaping rules.references/module-coverage.md for module inventory, performance deep-read coverage, easy-first ordering, and completion rules.Load references for this step only as needed:
references/module-coverage.md for choosing the next module and proving every in-scope module has been deeply read through the available performance-job lenses.references/job-selection.md for next-job choice conditions and tie-breakers.references/measurement-and-benchmarking.md for profiling, benchmark, baseline, and before/after comparison rules.references/algorithmic-complexity.md for complexity, data-structure, and repeated-work optimization.references/io-batching-and-queries.md for database, network, filesystem, external API, and batching optimization.references/caching-and-memoization.md for safe cache introduction, cache removal, and invalidation rules.references/allocation-and-hot-loops.md for CPU loops, allocation churn, serialization, parsing, and memory-pressure cleanup.references/concurrency-and-pipelines.md for bounded parallelism, async pipelines, backpressure, and queue throughput.references/coupled-hot-path-strategy.md for staged unlock work on large coupled or apparently core hot-path files.references/iteration-gates.md for validation cadence, stage-gate rules, and stop criteria.Only enter this step when the latest full-codebase scan confirms there is no remaining known actionable in-scope performance issue and every in-scope module has received a deep-read iteration, except items explicitly classified as blocked, unsafe, speculative, low-value, excluded, approval-dependent, or requiring production-only measurement that is unavailable.
align-project-documents when README, architecture notes, setup docs, benchmark docs, performance budgets, operational docs, or test guidance may have drifted.maintain-project-constraints to verify AGENTS.md/CLAUDE.md still matches the repository's real architecture, business flow, commands, and conventions.Only report completion after Step 3 is done, the latest Step 1 scan is clear, and the module coverage ledger has no unvisited in-scope module.
Return:
N/A reasons where relevant.AGENTS.md/CLAUDE.md synchronization status.development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。
development
Incrementally refresh the architecture atlas when the project diagram drifts from actual code. Measures drift before updating to determine scope, then updates the base atlas and re-renders HTML.