performance
/performance
Pomaga optymalizować wydajność aplikacji: strategie cache, eager loading, optymalizacja zapytań, wzorce Redis i projektowanie zadań w tle.
- Autor
- event4u-app ↗
- Repozytorium
- agent-config ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga optymalizować wydajność aplikacji: strategie cache, eager loading, optymalizacja zapytań, wzorce Redis i projektowanie zadań w tle.
Oryginalny opis (EN)
Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design.
Jak działa
- When to use
- Procedure: Optimize performance
- Conventions
- Output format
- Gotcha
- Do NOT
- Auto-trigger keywords
Podgląd SKILL.md
--- model_tier: medium name: performance description: "Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design." domain: engineering workspaces: - engineering packs: - engineering-base --- # performance ## When to use Use when optimizing slow endpoints, designing caching, or improving query performance. Do NOT use when: - Database schema design (use `database` skill) - Queue job creation (use `jobs-events` skill) ## Procedure: Optimize performance ### Step 0: Identify the bottleneck 1. Don't optimize prematurely — measure first. 2. Use `DB::enableQueryLog()` or Telescope to find slow queries. 3. Check for N+1 queries on list endpoints. 4. Search for existing cache services in the project. **Performance complexity is a claim, and a claim needs evidence.** No cache layer, no denormalised column, no materialised view, no read replica ships on "this will be slow" — it ships on a profile, a query log, or a timing that names the bottleneck. The added complexity is permanent (invalidation bugs, stale reads, a second source of truth); the speedup is hypothetical until measured. State the measurement in the change, or do not add the mechanism. **Carve-out — this does not override the `scale-discipline` floor.** Where that pack is installed, R-A2 *mandates* an index on every FK and every WHERE / ORDER BY column, and R-A4 governs duplicated data by waiver. Those are structural defaults that ship with the query, not optimisations awaiting a profiler; the evidence gate above applies to *added mechanisms* (caches, denormalisation, replicas, bespoke indexes beyond parity), never to the floor's baseline. ### Step 1: Apply the right fix | Bottleneck | Fix | |---|---| | N+1 queries | Eager loading with `with()` | | Slow queries | Add indexes, optimize (see `database` skill) | | Repeated expensive queries | Cache with TTL | | Blocking API calls | Queue as background job | | Large datasets | Paginate, chunk, cursor | | Missing counts | `withCount()` instead of loading relations | ### Step 2: Verify Re-measure after fix. Check that cache invalidation works correctly. ## Conventions → See guideline `php/performance.md` for caching patterns, Redis, response time targets. ## Output format 1. Optimized code with before/after performance comparison 2. Caching strategy or query optimization applied ## Gotcha - Cache invalidation bugs are worse than slow queries — don't add caching everywhere. - Eager loading N+1 is the #1 win — always check list endpoints. - Don't cache ORM collections/entities with loaded relations (Eloquent, Doctrine, Prisma) — too large. - Always include tenant ID in cache keys (multi-tenant). ## Do NOT - Do NOT cache without tenant isolation in multi-tenant contexts. - Do NOT use `get()` or `all()` on large tables — paginate or chunk. - Do NOT add indexes blindly — analyze query patterns first. ## Auto-trigger keywords - performance - caching - eager loading - query optimization - Redis
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · event4u-app/agent-config | 100 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| davila7/claude-code-templates | 100 | MIT |
| motormetrics/motormetrics | 100 | MIT |
| motormetrics/motormetrics | 100 | MIT |
| arxdsilva/ai-loops | 100 | MIT |
| krzysztofsurdy/code-virtuoso | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 5154f0446178 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90FastAPI Caching
Podaje wzorce cache'owania w FastAPI z Redisem: cache odpowiedzi API, unieważnianie cache, warstwa cache i optymalizacja wydajności. - 90nextjs-performance
Audytuje i optymalizuje wydajność aplikacji Next.js, w tym cache i strategie renderowania. - 90caching-strategy
Wdraża wzorce Redis i Memcached oraz strategie unieważniania cache w aplikacji. - 100redis-development
Pomaga optymalizować wydajność Redisa i stosować dobre praktyki przy strukturach danych, Redis Query Engine, wyszukiwaniu wektorowym z RedisVL i semantycznym cache z LangCache. - 95database-expert
Wspiera projektowanie schematów, optymalizację zapytań i wydajność baz PostgreSQL, MongoDB i Redis oraz wzorce danych. - 100django-redis-caching
Wdraża cache Django w Redis z django-cacheops: dodawanie cache, unieważnianie, optymalizacja wydajności API i diagnozowanie problemów z cache w backendzie.