Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

php-review

/php-review

Przegląda kod PHP w projektach Laravel lub Symfony pod kątem błędów transakcji, wyścigów, zapytań N+1 i luk bezpieczeństwa.

Repozytorium
claude-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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 10.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

Przegląda kod PHP w projektach Laravel lub Symfony pod kątem błędów transakcji, wyścigów, zapytań N+1 i luk bezpieczeństwa.

Wyzwalacze z opisu

проверь кодсделай ревьюreview this PHPпосмотри PR
Oryginalny opis (EN)

Review PHP code in Laravel or Symfony projects for real bugs - transactions, race conditions, N+1 queries, security holes, unsafe migrations. Use when the user asks to "проверь код", "сделай ревью", "review this PHP", "посмотри PR", or before committing changes in a Laravel or Symfony project.

Jak działa

  1. What to review
  2. Checklist
  3. Output
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 579 słów
Podgląd SKILL.md
---
name: php-review
description: Review PHP code in Laravel or Symfony projects for real bugs - transactions, race conditions, N+1 queries, security holes, unsafe migrations. Use when the user asks to "проверь код", "сделай ревью", "review this PHP", "посмотри PR", or before committing changes in a Laravel or Symfony project.
---

# PHP review

Find problems that will hurt in production. Skip style: formatting, naming taste and "I would have written it differently" are not findings.

## What to review

1. Default: the current diff (`git diff` and `git diff --staged`). If it is empty, the last commit. If the user names files, a branch or a PR, review that.
2. Detect the framework from `composer.json` (`laravel/framework` or `symfony/framework-bundle`) and its version.
3. Read every changed file fully, not only the diff hunks, and open the code they call when a finding depends on it.

## Checklist

Go through every item that applies to the changed code.

**Data and transactions**
- Several writes that must succeed together without `DB::transaction` / `$em->wrapInTransaction`.
- External calls (HTTP, queues, emails) inside a transaction, or events dispatched before commit (`afterCommit` missing for Laravel jobs and listeners).
- Read-then-write races: checking a balance or stock and then updating without `lockForUpdate()` / pessimistic lock or an atomic `UPDATE ... WHERE`.
- Unique things guarded only in code without a unique index.
- Money in `float`. Dates without explicit timezone.

**Queries**
- N+1: relations used in a loop without `with()` / joins / `fetch="EAGER"` where needed.
- `->get()` or `findAll()` on tables that grow; missing pagination or `chunkById` / `toIterable()`.
- Raw SQL built with string concatenation of user input.
- New `WHERE` / `ORDER BY` columns on big tables without an index.

**Migrations**
- Locking changes on big tables: adding a `NOT NULL` column without default, changing column types, adding indexes without `CONCURRENTLY` on PostgreSQL.
- Destructive changes (drop column, rename) in the same release as the code that stops using them.
- `down()` that cannot restore data, when the project relies on rollbacks.

**Security**
- Missing authorization: no policy / voter / `authorize()` check, object fetched by id without checking the owner.
- Mass assignment: `$guarded = []`, `fill($request->all())`, Symfony forms without explicit fields.
- Validation missing or done after use. Trusting `id`s, prices or roles from the request.
- `{!! !!}` in Blade or `|raw` in Twig with user data.
- File uploads: no type or size check, original file name used in a path.
- Secrets in code or logged. Sensitive data in exceptions returned to the client.

**Retries and queues**
- Jobs that are not safe to run twice (charging, sending, incrementing) without an idempotency guard.
- POST endpoints that create money-related records without idempotency.
- Missing `$tries`, `$backoff`, `failed()` for jobs that call external services.

**Errors**
- Swallowed exceptions (`catch (\Throwable) {}`), especially around money and external calls.
- Wrong HTTP status for the situation (500 for validation, 200 with `"error"` in body).

**Tests**
- Changed behaviour without a test. Point to the exact case that is missing, not "add more tests".

## Output

Write in Russian. For every finding:

```
[критично | важно | заметка] path/to/File.php:42
Что не так: одно предложение.
Когда сломается: конкретный сценарий с данными.
Как исправить: код или точное действие.
```

Order by severity. "Критично" means data loss, money, security or a crash in a common path; "важно" means a real bug in a less common path or a serious performance problem; "заметка" is everything else worth knowing.

Only report what you verified in the code. If something depends on code you could not see, say so and do not guess. If nothing is wrong, say that plainly in one line instead of inventing findings.

Do not change files unless the user asks to fix the findings.

Wersje

W bazie nie ma innych skilli o nazwie php-review.

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

  • 100php-ecosystem-reference
    Pomaga wybrać narzędzie PHP spoza Laravela (komponenty Symfony, API Platform, Slim) i przekierować do implementacji.
  • 100review-code
    Przegląda zmianę pod kątem błędów, bezpieczeństwa, zgodności ze specyfikacją, skali, testów i kontraktów.
  • 95sentry-php-sdk
    Konfiguruje Sentry w PHP, Laravel i Symfony: błędy, tracing, profilowanie, logi, metryki i zadania cykliczne.
  • 90php-symfony
    Pisze i przegląda kod Symfony zgodnie z oficjalnymi dobrymi praktykami, przy plikach PHP, YAML, XML i Twig.
  • 100php-pro
    Wspiera projekty PHP 8.3 i nowsze ze ścisłym typowaniem, w Laravel lub Symfony, przy optymalizacji wydajności i wzorcach asynchronicznych.
  • 100symfony-code-contribution
    Sprawdza kod PHP w pull requestach do Symfony pod kątem standardów, nazewnictwa, deprecjacji i zgodności wstecznej.

Uwagi i zgłoszenia

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