loopx-performance-diagnosis
What it does
This skill helps find the cause of slow or heavy program behavior in a process you own. It is for developers who see a clear slowdown and want evidence before changing code.
When to use it
- ✓When a command, program or process is clearly slower or heavier than it should be.
- ✓When you need to measure CPU, memory or file input and output on a program you own.
- ✓When a slowdown appears after a change and you need profiling evidence before fixing it.
Skill link
https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My Python script takes 30 seconds to start, help me find out why.”
5 new skills a week. 1 minute to read.
How it works
It guides the agent to define the real operation and the expected result, measure it with suitable profiling tools on a safe copy, and summarize the evidence without exposing private paths or data.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
LoopX performance diagnosis
First identify the question. For a LoopX-managed benchmark's outcome quality, score growth, useful progress per time/token, or agent trajectory, use loopx-benchmark. A flatter score curve, repeated reads or more tokens alone do not establish a process-performance regression. Keep that analysis with the benchmark owner; use this skill as a focused subtask only when evidence identifies a slow owned command or resource cost. Do not require a profiler before analyzing effectiveness or interaction overhead.
Read the current Goal/Todo contract and repository optimization evidence rules. State the real user operation, observed failure and owning acceptance. Preserve the exact source, runtime/interpreter, backend/history, inputs and concurrency. Use an owned disposable target for writes. Do not attach to a production process, elevate privileges, weaken OS policy, or start paid/remote workloads without the existing authorization. Raw stacks, paths, arguments and profiles stay ignored and local-private; public summaries contain only generalized evidence.
Read loopx/capabilities/performance_diagnosis/README.md for tool selection and
blind spots. On installed copies use loopx capability show performance-diagnosis
to locate its canonical documentation. Python waits/startup: Pyinstrument; Python
threads/native on Linux: py-spy; allocations: Memray; Node/TS: V8 CPU/heap.
Go/JVM/kernel costs need their native tools. Research official sources when the
installed runtime or missing evidence makes the documented choice uncertain.
Do not choose a tool from popularity or claim one profiler covers every layer.
- Run the uninstrumented target and record ordinary elapsed time. Use repeated controlled samples for comparisons; profiling time is not a baseline or p95.
- Verify the optional tool version locally. Preserve the selected interpreter; install optional tools in an isolated environment when authorized. Do not silently install them into product dependencies or fall back on permissions.
- Write the exact target argv to an ignored JSON array. Run
loopx performance-diagnosis plan --tool TOOL --command-json FILE --output-directory FRESH_IGNORED_DIRECTORY --format json. Read the whole plan. A plan has not executed or verified tool readiness. - Execute
profile_argvthrough the Host executor as an argv array without shell interpolation. Capture only the owned process; record failures and coverage gaps. Profile a separate Node worker instead of inferring its CPU from Python transport waits. Do not collect locals or automatically profile unrelated children. - Require actual successful target exit and nonempty artifact. Read Speedscope
or V8 CPU using
loopx performance-diagnosis inspect --profile-json FILE --format json; Memray/heap use their own reporters. Keep threads independent and self/inclusive time distinct. Never sum inclusive rows to obtain latency. - Turn the hotspot into a falsifiable hypothesis. Use a controlled intervention to distinguish caller/transport, shared semantics and backend cost. Reuse the owning contract; do not skip freshness, authority checks or decision inputs.
- Repeat the original uninstrumented workload and semantic checks after a fix. Preserve passed, failed and untested results and update the existing checkpoint. Readback of a stack does not prove root cause, improvement or provider admission.
Do not add a new receipt/approval requirement or automatically mutate scheduling, Goal state or telemetry. Stop invoking the workflow to disable it; remove optional tools/captures from their owned local environment when no longer needed.
FAQ
Does this measure whether a model answers well?
No. Benchmark quality and agent efficiency are covered by a separate benchmark skill.
Can it profile a live production server?
No. The skill says not to attach to production processes or raise privileges.
Which tools does it use?
It chooses profilers based on the language, such as Pyinstrument for Python startup and waits.
Details
Original description by the author
Diagnose demonstrated CPU, command latency, allocation or IO regressions in an owned process with controlled measurements and language-appropriate profilers. Route benchmark effectiveness, score growth and trajectory efficiency to loopx-benchmark; profiling does not qualify a budget or grant execution authority.
repo: loopx-project/loopx
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13875
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
loopx
6.5kTeaches your agent to set up and run LoopX, a local tool that keeps long-running goals, tasks and evidence on track across chat sessions.
loopx-change-quality
6.5kGuides your agent to review the exact final code change for a LoopX goal, checking quality before a merge and writing a quality receipt.
loopx-doc-registry
6.5kTeaches your agent to record and index durable project materials, such as design docs and research notes, so future agents can find them.
loopx-material
6.5kGuides your agent through managing a project's stored research material, including inventory, moving items between stages, ranking and owner-approved changes.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.