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

performance-analysis

Performance audit — bottleneck profiling, N+1 query detection, hot-path analysis; explicit request only, not part of regular feature work.

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

연동 도구Redis
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.1 KB

SKILL.md(원문)

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

performance-analysis

Mission

Find performance bottlenecks before they affect users. This skill is proactive — it analyzes code for performance issues, not just responds to "it's slow" reports.

For writing performant code patterns (caching, eager loading, Redis), use the performance skill. For test suite performance, use test-performance.

When to use

Use this skill when:

  • Auditing a codebase or flow for performance bottlenecks
  • analysis-autonomous-mode routes here after detecting slow patterns
  • Reviewing code that handles large datasets, loops, or external calls
  • Investigating why a specific endpoint or job is slow

Do NOT use when:

  • Writing new caching/optimization code → use performance
  • Optimizing test suite speed → use test-performance
  • Hunting for functional bugs → use bug-analyzer (proactive mode)

Procedure: Performance analysis

1. Identify hotspots

Focus on code paths with high execution frequency or large data volumes:

  • API endpoints called frequently (list endpoints, dashboards)
  • Queue jobs processing batches
  • Scheduled commands running on large datasets
  • Import/export operations
  • Report generation

2. Database query analysis

PatternWhat to look for
N+1 queries->load() or relationship access in loops, missing ->with()
Missing indexesWHERE clauses on unindexed columns, slow ORDER BY
Full table scansSELECT * without WHERE, LIKE '%term%'
Unnecessary queriesSame query executed multiple times in one request
Large result setsLoading thousands of models when only counts or IDs are needed
Missing pagination->get() on unbounded queries
Suboptimal joinsMultiple queries that should be a single JOIN
Transaction scopeTransactions holding locks longer than necessary

3. Application-level bottlenecks

PatternWhat to look for
Synchronous I/OHTTP calls, file operations, or API calls in the request cycle
Memory bloatLoading entire collections when chunking would work
Redundant computationSame calculation repeated without caching
Missing cacheData that rarely changes but is queried on every request
Stale cacheCache that is never invalidated or has wrong TTL
Serialization overheadLarge models serialized to JSON unnecessarily
Loop inefficiencyO(n²) patterns with nested loops or repeated array searches

4. Queue and job analysis

  • Jobs that should be batched but run individually
  • Missing chunk() for large dataset processing
  • Retry storms from failing jobs without backoff
  • Jobs that hold database connections too long
  • Missing WithoutOverlapping for idempotency-critical jobs

5. Infrastructure-level checks

  • Missing Redis for session/cache (using file/database driver)
  • Missing CDN for static assets
  • Missing response caching for read-heavy endpoints
  • Database connection pooling and limits
  • Queue worker concurrency vs database connection limits

Output format

  1. Emit one entry per bottleneck using the field list below; never collapse multiple bottlenecks into a single entry.
  2. Severity, Effort, and Confidence are required for every entry and must use the bounded vocabulary (Low / Medium / High / Critical for severity).
  3. Close with a Recommended Fix Order ranked by Impact ÷ Effort and capped at 5 items.

For each bottleneck:

  • Issue: concise title
  • Location: file, line, or endpoint
  • Severity: Low / Medium / High / Critical
  • Impact: estimated effect (e.g., "adds ~500ms per request", "causes N+1 on 100+ records")
  • Evidence: code reference, query pattern, or measurement
  • Fix: concrete optimization
  • Effort: Low / Medium / High
  • Confidence: Low / Medium / High

Integration with other skills

  • analysis-autonomous-mode — routes here when performance concerns are detected
  • performance — complementary: performance is about writing fast code, this is about finding slow code
  • test-performance — for test suite speed specifically
  • bug-analyzer — some performance issues are actually bugs (N+1, infinite loops)
  • database — for deep DB optimization guidance

Gotcha

  • Don't present raw numbers without context — "200ms" means nothing without knowing the baseline.
  • The model tends to focus on code-level optimization when the bottleneck is a database query.
  • Profiling in development differs from production — different data volumes, different query plans.

Do NOT

  • Do NOT micro-optimize code that runs infrequently or on small datasets
  • Do NOT recommend caching without considering invalidation
  • Do NOT assume bottlenecks — measure or trace the actual code path
  • Do NOT confuse code style preferences with performance issues
  • Do NOT recommend infrastructure changes when code fixes would suffice

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

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

event4u-app/agent-config122026년 10월 18일 업데이트

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

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

event4u-app/agent-config122026년 10월 18일 업데이트

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

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

event4u-app/agent-config122026년 10월 18일 업데이트

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

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

event4u-app/agent-config122026년 10월 18일 업데이트

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

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

event4u-app/agent-config122026년 10월 18일 업데이트

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

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

event4u-app/agent-config122026년 10월 18일 업데이트

event4u-app의 스킬 모두 보기

이 스킬의 문제 신고