loopx-performance-diagnosis
하는 일
이 스킬은 자신이 소유한 프로세스에서 느리거나 무거운 프로그램 동작의 원인을 찾도록 돕습니다. 느려짐이 분명하고 코드를 바꾸기 전에 증거를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓명령, 프로그램, 프로세스가 기대보다 분명히 느리거나 무거울 때.
- ✓자신이 소유한 프로그램의 CPU, 메모리, 파일 입출력을 측정해야 할 때.
- ✓변경 후 느려짐이 나타나 고치기 전에 프로파일링 증거가 필요할 때.
스킬 링크
https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 Python 스크립트가 시작하는 데 30초가 걸려요. 왜 그런지 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
실제 작업과 기대 결과를 정의하고, 안전한 복사본에서 적절한 프로파일링 도구로 측정하고, 개인 경로나 데이터를 드러내지 않고 증거를 요약하도록 에이전트를 안내합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
모델이 답변을 잘하는지 측정하나요?
아니요. 벤치마크 품질과 에이전트 효율은 별도의 벤치마크 스킬에서 다룹니다.
운영 중인 실서버를 프로파일링할 수 있나요?
아니요. 이 스킬은 운영 프로세스에 붙거나 권한을 올리지 말라고 말합니다.
어떤 도구를 쓰나요?
언어에 따라 프로파일러를 고릅니다. 예를 들어 Python 시작과 대기 시간에는 Pyinstrument를 씁니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 6.5k
- 순위
- #13875
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
loopx
6.5k에이전트가 로컬 도구 LoopX를 설정하고 실행하도록 가르칩니다. LoopX는 채팅 세션을 넘어 장기 목표, 작업, 근거를 추적합니다.
loopx-change-quality
6.5k에이전트가 병합 전에 LoopX 목표의 최종 코드 변경을 검토하고, 품질을 확인한 뒤 품질 확인 기록을 남기도록 안내합니다.
loopx-doc-registry
6.5k에이전트가 설계 문서와 조사 노트 같은 지속적인 프로젝트 자료를 기록하고 색인해 나중의 에이전트가 찾을 수 있게 하도록 가르칩니다.
loopx-material
6.5k에이전트가 재고 파악, 후보와 보관 단계 사이의 이동, 순위 매기기, 소유자 승인 변경을 포함해 프로젝트의 연구 자료 저장소를 관리하도록 안내합니다.