Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

performance-optimizer

/performance-optimizer

Analizuje kod pod kątem wydajności i jakości, a potem stosuje optymalizacje: wąskie gardła, rozmiar paczek, zasoby i zduplikowany kod.

Repozytorium
web-dev-agent ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Analizuje kod pod kątem wydajności i jakości, a potem stosuje optymalizacje: wąskie gardła, rozmiar paczek, zasoby i zduplikowany kod.

Wyzwalacze z opisu

make the code faster/cleaner/lightercheck the performance of this projectoptimize my codebasefind and fix inefficienciesreduce bundle sizeclean up duplicated code
Oryginalny opis (EN)

Analyze codebase for performance issues and code quality problems, then apply optimizations directly to code. Use when user asks to analyze performance, audit code quality, find bottlenecks, reduce bundle size, optimize images/assets, remove duplicated code, or "make the code faster/cleaner/lighter" — even if not named explicitly. Trigger on "check the performance of this project", "optimize my codebase", "find and fix inefficiencies", "reduce bundle size", "clean up duplicated code".

Jak działa

  1. Phase 1 — Analyze
  2. Phase 2 — Optimize
  3. Rules
Sekcje z nagłówków SKILL.md, w oryginale · 36 linii, 363 słów
Podgląd SKILL.md
---
name: performance-optimizer
description: Analyze codebase for performance issues and code quality problems, then apply optimizations directly to code. Use when user asks to analyze performance, audit code quality, find bottlenecks, reduce bundle size, optimize images/assets, remove duplicated code, or "make the code faster/cleaner/lighter" — even if not named explicitly. Trigger on "check the performance of this project", "optimize my codebase", "find and fix inefficiencies", "reduce bundle size", "clean up duplicated code".
---

# Codebase Performance Optimizer

Two phases: **Analyze** then **Optimize**. Always show findings before touching code, unless user says "just fix it".

## Phase 1 — Analyze

1. Map project: language(s), framework, build tool, package manager. `view` root dir, then relevant configs (package.json, webpack/vite config, tsconfig, etc).
2. Scan issue categories (grep/find via shell, or language-specific tools when available):
   - **Duplication**: repeated logic/blocks across files (near-identical functions, copy-pasted components).
   - **Bundle size**: heavy/unused deps, missing tree-shaking, no code-splitting, large barrel imports.
   - **Images/assets**: uncompressed images, wrong format (PNG where WebP/AVIF fits), oversized dimensions, missing lazy-loading.
   - **Runtime perf**: N+1 queries, unnecessary re-renders (React: missing memo/useMemo/useCallback, inline object/function props), blocking sync I/O, unindexed DB queries, O(n²) loops on large data.
   - **Dead code**: unused exports, unreachable branches, commented-out blocks.
   - **Build config**: missing minification, no compression (gzip/brotli), dev-only code shipped to prod.
3. Produce findings report (chat, concise): per issue — file:line, issue, impact (high/medium/low), proposed fix.
4. Ask user which categories to act on if list long, unless already said "fix everything".

## Phase 2 — Optimize

Apply fixes incrementally, one category at a time, so changes stay reviewable:

- **Dedup**: extract shared logic into function/module/component; update call sites.
- **Bundle**: replace heavy deps with lighter alternatives (only if drop-in compatible), add/adjust code-splitting or dynamic imports, fix barrel-import issues.
- **Images**: recompress/convert via shell (`cwebp`, `sharp`, `imagemin` if available — check what's installed first), resize to actual display dimensions, add lazy-loading attributes.
- **Runtime**: memoization, batch queries, replace O(n²) with efficient structures/algorithms.
- **Dead code**: remove after confirming no external references (grep whole repo first).

After each category: run existing tests/build if project has them (`npm test`, `npm run build`, etc.) to confirm nothing broke. Report changes + why, file by file, short summary — not just "done".

## Rules

- Never guess at "optimized" behavior that changes program output — perf fixes must be behavior-preserving.
- Don't install new deps for a fix if native/existing solution works.
- No test suite → flag it, proceed more conservatively (smaller diffs, manual reasoning about correctness).
- Very large repos → sample representative files/modules first, not blind full scan; ask user for subfolder if scope unclear.

Wersje

RepozytoriumWynikLicencja
Ta strona · Domenico-Tenace-Open-Labs/web-dev-agent90MIT
smicolon/ai-kit100MIT
armanzeroeight/fastagent-plugins100MIT
armanzeroeight/fastagent-plugins100MIT
JochenYang/Jochen-ai-rules90MIT
420company/artemis86MIT

Migawka bazy z 13.11.2026 · wersja paczki 15e37f9d75f7 (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

  • 90perf-audit
    Audytuje rozmiar bundla frontendu i ryzyka Core Web Vitals, aby znaleźć wąskie gardła po stronie przeglądarki.
  • 90code-review
    Przegląda kod pod kątem jakości, bezpieczeństwa, wydajności i architektury: audyt OWASP, zasady SOLID, wąskie gardła wydajności i luki w testach.
  • 84review-code
    Recenzuje zmiany w kodzie pod kątem jakości, bezpieczeństwa i wydajności, w tym architektury i stylu, i ocenia, czy PR jest gotowy.
  • 100optimization
    Optymalizuje kod pod kątem wydajności i zużycia pamięci bez zmiany działania, np. przy prośbie o szybszy lub lżejszy program.
  • 100audit-bundle-size
    Analizuje i zmniejsza bundle JavaScript aplikacji webowej, w tym code splitting i wolne ładowanie początkowe.
  • 100prism-audit
    Audytuje frontend pod kątem rozmiaru bundla, zależności, dostępności, wydajności i jakości komponentów, przy przeglądzie frontendu lub kontroli wydajności i dostępności.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.