본문으로 건너뛰기
Skillpedia
일반 코딩6.5k · #13875

loopx-performance-diagnosis

하는 일

이 스킬은 자신이 소유한 프로세스에서 느리거나 무거운 프로그램 동작의 원인을 찾도록 돕습니다. 느려짐이 분명하고 코드를 바꾸기 전에 증거를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓명령, 프로그램, 프로세스가 기대보다 분명히 느리거나 무거울 때.
  • ✓자신이 소유한 프로그램의 CPU, 메모리, 파일 입출력을 측정해야 할 때.
  • ✓변경 후 느려짐이 나타나 고치기 전에 프로파일링 증거가 필요할 때.

스킬 링크

https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

  1. Run the uninstrumented target and record ordinary elapsed time. Use repeated controlled samples for comparisons; profiling time is not a baseline or p95.
  2. 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.
  3. 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.
  4. Execute profile_argv through 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.
  5. 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.
  6. 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.
  7. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬