CPU Usage Monitor Skill for Repeated Computation
Find repeated local work and compare process CPU time while keeping inputs and output checks fixed.
中文Install in Claude Code
Use your Python script, a fixed fixture, and a measurement method. The example uses time.process_time.
- Get the complete `plugins/performance/cpu-usage-monitor/skills/monitoring-cpu-usage` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/monitoring-cpu-usage/SKILL.md`, start Claude Code at the project root, and call `/monitoring-cpu-usage`.
Example task
Repeatedly build a lookup from the same 2,000 tags. Compare with a version that builds it once and reuses it for the same queries.What to check
Results match. The report shows measured CPU time for repeated construction and reuse.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does CPU time equal the user's wait?
CPU time covers processor execution. Measure wall-clock time as well when waiting and I/O matter.