본문으로 건너뛰기
cccskills
무료GitHub에 공개

performance-profiler

Performance profiling for Node.js, Python, and Go: CPU flamegraphs, memory leak detection, bundle analysis, query optimization, and k6 load testing. Use when diagnosing slow endpoints, memory growth, large bundles, or traffic spikes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(7)

  • SKILL.md7.0 KB
  • references/cpu-and-memory-profiling.md3.0 KB
  • references/database-and-bundle.md3.3 KB
  • references/load-testing-and-methodology.md7.0 KB
  • scripts/benchmark_reporter.py12.6 KB
  • scripts/bottleneck_detector.py12.5 KB
  • scripts/resource_analyzer.py16.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Performance Profiler

Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU bottlenecks with flamegraphs, detects memory leaks with heap snapshots, analyzes bundle sizes, optimizes database queries, detects N+1 patterns, and runs load tests with k6 and Artillery. Enforces a measure-first methodology: establish baseline, identify bottleneck, fix, and verify improvement.

Golden Rule — Measure First: Profile → Confirm bottleneck → Fix → Measure again → Verify improvement. Every optimization needs baseline metrics, profiler evidence, the fix, post-fix metrics, and a delta. Full rule in references/cpu-and-memory-profiling.md.

Core Capabilities

  • CPU profiling — Clinic.js/V8 flamegraphs (Node), py-spy/cProfile/scalene (Python), pprof (Go), Chrome DevTools (browser).
  • Memory profiling — heap snapshots and before/after comparison, GC pressure analysis, leak detection, retained object graphs.
  • Database optimization — EXPLAIN ANALYZE plan reading, N+1 detection and batching, slow query logs, missing-index identification, connection pool sizing.
  • Bundle analysis — webpack/Next.js analyzers, tree-shaking, dynamic imports, heavy dependency identification.
  • Load testing — k6 ramp-up scripts, SLA threshold enforcement in CI, P50/P95/P99 latency tracking, concurrent user simulation.

When to Use

  • App is slow and you do not know where the bottleneck is.
  • P99 latency exceeds SLA before a release.
  • Memory usage grows over time (suspected leak).
  • Bundle size increased after adding dependencies.
  • Preparing for a traffic spike (load test before launch).
  • Database queries taking >100ms, or verifying no regressions after a dependency upgrade.

Clarify First

Before profiling, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Runtime & symptom — Node / Python / Go and CPU / memory / bundle / query / load-spike (selects the profiler and toolchain)
  • Baseline + SLA target — current numbers and the P95/P99 (or size) threshold to beat (measure-first needs both to verify a delta)
  • Environment — local / staging / prod determines the safe profiling method and whether load testing is allowed

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
benchmark_reporter.pyParse benchmark results and report regressions/improvements vs thresholdspython scripts/benchmark_reporter.py results.json --fail-on-regression
bottleneck_detector.pyAnalyze logs/traces to flag slow latency, queries, and spanspython scripts/bottleneck_detector.py trace.json --latency-threshold 200
resource_analyzer.pyAnalyze CPU/memory/disk usage data and flag anomalies and trendspython scripts/resource_analyzer.py metrics.json --cpu-threshold 80

All three accept a file path or - for stdin and support --json.

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/cpu-and-memory-profiling.md — the full Measure-First rule, Node.js CPU profiling (Clinic.js flamegraphs, V8 CPU profiles), and memory leak detection (Node heap snapshots, Python memray/tracemalloc). Read when chasing CPU or memory issues.
  • references/database-and-bundle.md — EXPLAIN ANALYZE workflow, N+1 detection patterns and middleware script, Next.js bundle analyzer setup, quick size checks, and the common-bundle-wins table. Read when optimizing queries or bundle size.
  • references/load-testing-and-methodology.md — full k6 load-test script, the before/after measurement template, quick-win optimization checklist, common pitfalls, best practices, troubleshooting table, and success criteria. Read when load testing or documenting a win.

Scope & Limitations

This skill covers:

  • CPU and memory profiling for Node.js, Python, and Go applications using flamegraphs and heap snapshots
  • Database query optimization including EXPLAIN ANALYZE interpretation, N+1 detection, and index recommendations
  • Frontend bundle analysis and size reduction strategies for webpack and Next.js projects
  • Load testing methodology with k6 including ramp-up patterns, threshold enforcement, and CI integration

This skill does NOT cover:

  • Application Performance Monitoring (APM) platform setup and configuration (Datadog, New Relic, Grafana) — see engineering/observability-designer
  • Infrastructure-level performance tuning (kernel parameters, network stack, container resource limits) — see engineering/senior-devops
  • Security-focused performance concerns such as DDoS mitigation or rate limiting — see engineering/senior-security
  • Mobile application profiling (iOS Instruments, Android Profiler) — see engineering/senior-mobile

Integration Points

SkillIntegrationData Flow
engineering/observability-designerPerformance profiling findings feed into observability dashboard design; alerting thresholds derived from profiling baselinesProfiler baselines and SLA thresholds → Prometheus/Grafana alert rules and dashboard panels
engineering/ci-cd-pipeline-builderk6 load tests and bundle size checks integrate as CI pipeline gatesk6 threshold configs and bundle budget scripts → CI pipeline stage definitions
engineering/database-designerQuery optimization recommendations inform schema design decisions; index suggestions feed back to schema migrationsEXPLAIN ANALYZE findings and index recommendations → schema migration files and index definitions
engineering/senior-backendBackend architecture decisions incorporate profiling data; connection pool sizing and caching strategies validated by load testsProfiling reports and load test results → architecture decision records and implementation guidance
engineering/tech-debt-trackerPerformance regressions and unresolved bottlenecks are tracked as technical debt items with measured impactBefore/after measurement reports and unresolved findings → tech debt backlog with quantified cost
engineering/senior-frontendBundle analysis results drive frontend optimization work; code-splitting and lazy-loading decisions backed by profiler dataBundle analyzer output and Lighthouse scores → frontend optimization tasks and component refactoring plans

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

aeo

무료

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9482026년 10월 7일 업데이트

borghei의 스킬 모두 보기

이 스킬의 문제 신고