planning-with-files
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Read-only measured performance diagnosis for latency, CPU, throughput, I/O, contention, traces, or hillclimbing. Improvement is a Ground or Verify method inside a caller-owned mutation lifecycle. Use memory-profiler for leaks, OOM, or heap fragmentation.
$ npx -y skills add khaneliman/khanelinix --skill performance-forensics --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/performance-forensicsContext preview
The summary Claude sees to decide when to auto-load this skill.
Read-only measured performance diagnosis for latency, CPU, throughput, I/O, contention, traces, or hillclimbing. Improvement is a Ground or Verify method inside a caller-owned mutation lifecycle. Use memory-profiler for leaks, OOM, or heap fragmentation.
name: performance-forensics description: "Read-only measured performance diagnosis for latency, CPU, throughput, I/O, contention, traces, or hillclimbing. Improvement is a Ground or Verify method inside a caller-owned mutation lifecycle. Use memory-profiler for leaks, OOM, or heap fragmentation." license: Complete terms in LICENSE
Use this skill for empirical performance diagnosis and optimization. Performance engineering requires measurement artifacts instead of speculative code inspection.
For memory leaks, out-of-memory errors, and heap fragmentation, use `memory-profiler`.
Select the mode that matches the task trigger:
contention, or I/O stalls. Read [references/runtime-forensics.md](references/runtime-forensics.md).
and traces. Read [references/trace-forensics.md](references/trace-forensics.md).
bottleneck. Read [references/perf-issue.md](references/perf-issue.md).
cycles. Read [references/hillclimb.md](references/hillclimb.md).
Diagnosis tasks are read-only by default. Do not mutate production code during diagnosis unless requested.
1. **Capture evidence.** Obtain a CPU profile, trace, or execution log using a realistic workload. 2. **Reduce artifacts.** Query the profile to identify the dominant bottleneck or hot call tree. 3. **Confirm the mechanism.** Verify the bottleneck on the running target before proposing changes. 4. **Attribute to source.** Map the hotspot to the exact file, symbol, and line number. 5. **Report findings.** Provide the diagnosis, source location, and artifact paths.
When authorized to mutate code, follow this measurement loop:
1. **Ground the workload.** Define a representative workload matching real input distributions. 2. **Establish baseline.** Capture baseline metrics and profile artifacts. Save the artifact path. 3. **Formulate single hypothesis.** Pick a targeted strategy from the eight strategy families in [references/perf-issue.md](references/perf-issue.md). 4. **Apply isolated change.** Modify only the code related to the selected hypothesis. 5. **Measure post-fix result.** Run the identical workload. Compare the new artifact against baseline. 6. **Evaluate outcome.** Keep confirmed improvements. Restore only experiment changes owned by this run after regressions or neutral results. Flag inconclusive measurements. 7. **Iterate or stop.** For sustained optimization, follow the stop rules in [references/hillclimb.md](references/hillclimb.md).
For diagnosis, return the workload, baseline artifact, source attribution, and status. For authorized optimization, also return:
Run packages directly with: Or install from the packages output. For example:
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use…
Design and audit agent instructions, skills, plugins, subagents, prompts, hooks, and provider configuration. Use for AI-tool…
Sketch interfaces, state, and module structure before code. Use for explicit design-led implementation or as a caller-owned…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Bevy workflows for ECS, migrations, first-party UI/input/rendering/assets/shaders, plugin selection, scenes, scheduling, hot…