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

optimizer-skill

/optimizer-skill

Ulepsza oprogramowanie, znajdując najmniejszą bezpieczną zmianę, która przyspiesza, upraszcza, porządkuje kod lub jego architekturę.

Licencja
MIT
Ostatnia zmiana repozytorium
27.10.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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.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

Ulepsza oprogramowanie, znajdując najmniejszą bezpieczną zmianę, która przyspiesza, upraszcza, porządkuje kod lub jego architekturę.

Oryginalny opis (EN)

Improve software by finding the smallest safe change that makes it faster, simpler, cleaner, or better organized. Use for performance work, refactoring, code cleanup, architecture improvements, and reviews where optimization is requested.

Jak działa

  1. Required workflow
  2. Optimization priorities
  3. Clean-code rules
  4. Safety rules
  5. Response format
Sekcje z nagłówków SKILL.md, w oryginale · 74 linii, 487 słów
Podgląd SKILL.md
---
name: optimizer-skill
description: Improve software by finding the smallest safe change that makes it faster, simpler, cleaner, or better organized. Use for performance work, refactoring, code cleanup, architecture improvements, and reviews where optimization is requested.
---

# Optimizer Skill

Optimize for **correctness first, measurable performance second, and simplicity always**.
Do not rewrite code merely to make it look different.

## Required workflow

1. **Understand the boundary**
   - Inspect the relevant files, callers, data flow, dependencies, and existing tests.
   - Identify the actual bottleneck, duplication, defect, or organizational problem.
   - Preserve public behavior unless the user explicitly requests a behavior change.

2. **Measure or establish a baseline**
   - Prefer existing benchmarks, profilers, logs, query plans, bundle reports, or test timings.
   - If no measurement exists, state the assumption and add the smallest useful check.
   - Never claim a performance improvement without evidence.

3. **Choose the smallest effective change**
   - Prefer deletion, a standard-library solution, an existing helper, or a native platform feature.
   - Avoid speculative abstractions, premature caching, unnecessary dependencies, and broad rewrites.
   - Keep validation, error handling, security, accessibility, and type safety intact.

4. **Implement surgically**
   - Follow the repository's existing conventions.
   - Fix the shared root cause rather than patching individual callers.
   - Keep unrelated behavior and files unchanged.

5. **Verify**
   - Run the narrowest relevant tests, linter, formatter, type checker, and benchmark.
   - Check edge cases introduced by the change: empty input, large input, failure paths, concurrency, and resource cleanup when applicable.
   - Compare the result with the baseline and report tradeoffs honestly.

## Optimization priorities

Use this order unless evidence justifies another:

1. Remove unnecessary work.
2. Choose the correct algorithm or data structure.
3. Reduce I/O, network calls, database round trips, and serialization.
4. Reuse existing computation safely.
5. Improve memory use without harming clarity.
6. Only then consider micro-optimizations.

## Clean-code rules

- One clear responsibility per function or module.
- Names should explain intent; comments should explain only non-obvious constraints.
- Prefer straightforward control flow over clever compression.
- Do not create an abstraction with only one meaningful consumer.
- Do not split small, cohesive logic into files just for organization.
- Keep configuration for values that genuinely vary.
- Remove dead code and unused dependencies only when their scope is clear.

## Safety rules

- Do not remove input validation, authorization, escaping, rate limits, retries, or error handling to gain speed.
- Do not introduce global mutable state or unbounded caches.
- Do not optimize database code without checking indexes, query plans, transaction behavior, and result cardinality.
- Do not trade correctness for speed without explicit approval.
- Flag changes that need production profiling, load testing, migration, or monitoring.

## Response format

Return:

1. **Finding** — the bottleneck, complexity, duplication, or organization issue.
2. **Change** — what was changed and why this is the smallest effective fix.
3. **Evidence** — tests, measurements, or the assumption used.
4. **Tradeoffs** — behavior, memory, compatibility, or operational impact.
5. **Skipped** — tempting work that was intentionally not added and when it would be justified.

If no meaningful optimization is supported by evidence, say so and leave the code unchanged.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • examples/optimization-report.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie optimizer-skill.

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

  • 95matlab-performance-optimizer
    Przyspiesza kod MATLAB przez wektoryzację, zarządzanie pamięcią i profilowanie, gdy kod działa za wolno.
  • 86minimal-change
    Wprowadza najmniejszą bezpieczną zmianę w kodzie, zachowując dotychczasowe działanie i decyzje, przy poprawkach i zatwierdzonych zmianach.
  • 90principle-smallest-change
    Wybiera najmniejszą zmianę, która w pełni rozwiązuje zadanie, obejmując wszystkie miejsca, do których musi dotrzeć.
  • 100refine-code
    Upraszcza lub refaktoryzuje istniejący kod, poprawia architekturę i wskazuje bezpieczne usunięcia, przy czyszczeniu kodu, redukcji złożoności i ocenach refaktoryzacji.
  • 95code-optimizer
    Analizuje i optymalizuje kod Python i Java pod kątem szybkości, pamięci i wydajności I/O, w tym zapytań do bazy, z przykładami przed i po oraz analizą złożoności.
  • 100pytest-optimizer
    Przyspiesza wolne testy i fixtures pytest przez zmierzoną optymalizację z zabezpieczeniami.

Uwagi i zgłoszenia

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