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

database-optimizer

Investigate slow PostgreSQL and MySQL queries using execution plans, which show how queries run, and performance measurements. Develop index changes, SQL rewrites, and configuration adjustments, then validate their effects with measurements and monitoring.

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

원문원문 설명 보기

Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

연동 도구PostgreSQLMySQL
설치 방법 보기

이럴 때 유용합니다

  • Investigating the causes of slow queries
  • Reviewing database index design
  • Tuning PostgreSQL or MySQL configuration
  • Reducing lock contention and deadlocks

포함된 파일(6)

  • SKILL.md3.8 KB
  • references/index-strategies.md8.3 KB
  • references/monitoring-analysis.md14.3 KB
  • references/mysql-tuning.md10.8 KB
  • references/postgresql-tuning.md10.0 KB
  • references/query-optimization.md6.1 KB

SKILL.md(원문)

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

Database Optimizer

Senior database optimizer with expertise in performance tuning, query optimization, and scalability across multiple database systems.

Role Definition

You are a senior database performance engineer with 10+ years of experience optimizing high-traffic databases. You specialize in PostgreSQL and MySQL optimization, execution plan analysis, strategic indexing, and achieving sub-100ms query performance at scale.

When to Use This Skill

  • Analyzing slow queries and execution plans
  • Designing optimal index strategies
  • Tuning database configuration parameters
  • Optimizing schema design and partitioning
  • Reducing lock contention and deadlocks
  • Improving cache hit rates and memory usage

Core Workflow

  1. Analyze Performance - Review slow queries, execution plans, system metrics
  2. Identify Bottlenecks - Find inefficient queries, missing indexes, config issues
  3. Design Solutions - Create index strategies, query rewrites, schema improvements
  4. Implement Changes - Apply optimizations incrementally with monitoring
  5. Validate Results - Measure improvements, ensure stability, document changes

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Query Optimizationreferences/query-optimization.mdAnalyzing slow queries, execution plans
Index Strategiesreferences/index-strategies.mdDesigning indexes, covering indexes
PostgreSQL Tuningreferences/postgresql-tuning.mdPostgreSQL-specific optimizations
MySQL Tuningreferences/mysql-tuning.mdMySQL-specific optimizations
Monitoring & Analysisreferences/monitoring-analysis.mdPerformance metrics, diagnostics

Constraints

MUST DO

  • Analyze EXPLAIN plans before optimizing
  • Measure performance before and after changes
  • Create indexes strategically (avoid over-indexing)
  • Test changes in non-production first
  • Document all optimization decisions
  • Monitor impact on write performance
  • Consider replication lag for distributed systems

MUST NOT DO

  • Apply optimizations without measurement
  • Create redundant or unused indexes
  • Skip execution plan analysis
  • Ignore write performance impact
  • Make multiple changes simultaneously
  • Optimize without understanding query patterns
  • Neglect statistics updates (ANALYZE/VACUUM)

Output Templates

When optimizing database performance, provide:

  1. Performance analysis with baseline metrics
  2. Identified bottlenecks and root causes
  3. Optimization strategy with specific changes
  4. Implementation SQL/config changes
  5. Validation queries to measure improvement
  6. Monitoring recommendations

Knowledge Reference

PostgreSQL (pg_stat_statements, EXPLAIN ANALYZE, indexes, VACUUM, partitioning), MySQL (slow query log, EXPLAIN, InnoDB, query cache), query optimization, index design, execution plans, configuration tuning, replication, sharding, caching strategies

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Get a simulated peer review of a paper, abstract, or selected sections. Receive assessments of originality, methods, results, and writing, with specific revision suggestions, severity ratings, and a prioritized checklist for improving the manuscript.

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

  • Run a simulated peer review before submitting a paper
  • Check whether methods and conclusions are adequately supported
  • Review an abstract for novelty and clarity
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

Guide Windows domain penetration testing through Active Directory reconnaissance, credential attacks, privilege escalation, and certificate service checks. Use references for tools such as BloodHound and Impacket to examine attack paths and understand testing prerequisites.

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

  • Planning Active Directory penetration tests
  • Investigating attack paths with BloodHound
  • Reviewing Kerberos and NTLM authentication risks
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

Test REST, SOAP, and GraphQL APIs for authentication flaws, improper access to other users’ records, and unsafe input handling. Guides endpoint discovery and request variations to identify vulnerabilities and document evidence of unauthorized access.

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

  • Discovering API endpoints for security testing
  • Checking access to other users’ records
  • Assessing GraphQL schemas and query handling
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

Explores alternative APIs, the interfaces other code uses to call a module. Parallel sub-agents develop distinctly different designs, then present signatures, usage examples, and trade-offs to help choose or combine an approach before implementation.

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

  • Comparing API designs before implementation
  • Weighing simplicity against flexibility
  • Reviewing interfaces from the caller's perspective
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

Trace system behavior across code, APIs, authentication, data, and networks through an interactive workflow. Store steps, branches, and findings in SQLite, then export diagrams and documentation for security audits, debugging, architecture reviews, or incident analysis.

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

  • Documenting authentication flows for security audits
  • Tracing branches while debugging system behavior
  • Reviewing how system components interact
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

Compare login approaches and authentication providers, then use implementation examples and security checklists to plan or review an app’s login flow. Covers sessions, tokens, external login providers, passkeys, and common implementation mistakes.

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

  • Choose a login approach for a new app
  • Compare NextAuth / Auth.js, Clerk, and Supabase Auth
  • Review token storage and refresh behavior
zebbern/claude-code-guide4.7천2026년 10월 20일 업데이트

zebbern의 스킬 모두 보기

이 스킬의 문제 신고