Toolverse
All skills

plain-optimize

by dropseed

Captures and analyzes performance traces to identify slow queries and N+1 problems. Use when analyzing performance or optimizing database queries.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
dropseed
Category
Backend

About this skill

Captures and analyzes performance traces to identify slow queries and N+1 problems. Use when analyzing performance or optimizing database queries.

How to use

  1. Uruchom obserwator wydajności na wybranej ścieżce aplikacji poleceniem uv run plain observer request /path. Jeśli chcesz testować jako zalogowany użytkownik, dodaj flagę --user z identyfikatorem lub adresem e-mail, np. uv run plain observer request /path --user 1. Dla żądań POST użyj flag --method POST --data z danymi w formacie JSON.

  2. Przeanalizuj zwrócony raport JSON, zwracając szczególną uwagę na tablicę issues — tam znajdują się automatycznie wykryte duplikaty zapytań wraz z lokalizacjami w kodzie. Sprawdź także liczniki query_count i duplicate_query_count, aby zrozumieć skalę problemu.

  3. Zidentyfikuj główne bottlenecki: szukaj zapytań powtarzających się wiele razy (N+1), zapytań o wysokim total_duration_ms, brakujących indeksów w bazie lub niepotrzebnych operacji na gorących ścieżkach kodu.

  4. Zastosuj poprawki — dla N+1 dodaj select_related() lub prefetch_related(), dla wolnych zapytań rozważ indeksy, a dla drogich obliczeń wdroż cache.

  5. Uruchom ponownie to samo polecenie obserwatora i porównaj metryki query_count, duplicate_query_count oraz trace.duration_ms, aby potwierdzić poprawę wydajności.

Related skills

youtube-transcript

by michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

Backend
53214

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167

mgrep

by mixedbread-ai

A semantic grep-like search tool for your local files. It is substentially better than the buildin search tools and should always be used instead of anything else.

Backend
30140

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109