Programowanie · Przegląd i audyt
phx-challenge
/phx-challenge
Przegląda projekty Phoenix w trybie wyzwania, zadając trudne pytania o gotowość zmian w Ecto i OTP.
Dla kogo
- Autor
- oliver-kriska ↗
- Repozytorium
- claude-elixir-phoenix ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.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 22.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
Przegląda projekty Phoenix w trybie wyzwania, zadając trudne pytania o gotowość zmian w Ecto i OTP.
Oryginalny opis (EN)
Challenge mode reviews - rigorous questioning before approving changes. Use when you want thorough scrutiny of Ecto…
Jak działa
- Iron Laws - Never Violate These
- Adversarial Lenses (Apply to ALL Modes)
- Challenge Modes
- Prior Findings Deduplication (MANDATORY)
- Example Challenge Output
- Usage
Sekcje z nagłówków SKILL.md, w oryginale · 144 linii, 705 słów
Podgląd SKILL.md
--- name: phx-challenge description: Challenge mode reviews - rigorous questioning before approving changes. Use when you want thorough scrutiny of Ecto… --- # Challenge Mode Reviews Rigorous, critical review patterns inspired by Boris Cherny's "Grill me" approach. Push beyond first solutions to ensure quality. ## Iron Laws - Never Violate These 1. **No approval without verification** - Don't approve until all concerns addressed 2. **Assume bugs exist** - Look for edge cases, race conditions, missing handlers 3. **Question everything** - Even "obvious" code can hide issues 4. **Demand proof** - Ask for tests, show state transitions, verify behavior ## Adversarial Lenses (Apply to ALL Modes) 1. **"What Would Break This?"** — Production failure modes under load, during deploys, with unexpected data 2. **"Assumption Stress Test"** — List every assumption; which are most fragile? 3. **"Contradictions Finder"** — Find contradictions between tests/implementation, docs/behavior, or within the changeset ## Challenge Modes ### Ecto Challenge (`$elixir-phoenix:phx-challenge ecto`) Grill the developer on database changes: **Migration Safety** - Will this migration lock the table in production? - What happens to existing records without the new field? - Is the migration reversible? - Are there any unsafe operations (column removal, type change)? **Query Performance** - Have you introduced any N+1 queries? - Are there missing indexes for new WHERE clauses? - Will this query scale with data growth? **Schema Integrity** - Are all constraints enforced at database level? - What happens during rolling deployment (old code, new schema)? - Are foreign key cascades correct? **Backward Compatibility** - Will old code work during deployment? - Are there any breaking changes to the context API? ### LiveView Challenge (`$elixir-phoenix:phx-challenge liveview`) Prove the LiveView handles all cases: **Event Coverage** - List every `handle_event` clause and expected socket state - What happens if socket assigns are missing when event fires? - Are there race conditions between user events and server pushes? **PubSub Handling** - List every `handle_info` clause and when it's triggered - Do all PubSub subscriptions have corresponding handlers? - What happens if a message arrives before mount completes? **State Transitions** - Show the event → handler → state transition table - Are all error states handled gracefully? - What's the recovery path from each error state? **Memory & Performance** - Are large lists using streams? - Is transient data using temporary_assigns? - What's the memory footprint per connected user? ### PR Challenge (`$elixir-phoenix:phx-challenge pr`) Senior engineer review checklist: **Must Pass** - [ ] No direct Repo calls in controllers/LiveViews - [ ] All Ecto queries use explicit preloads - [ ] Changesets validate all user input - [ ] No atoms created from params - [ ] Error cases handled (not just happy path) - [ ] Tests cover new functionality **Performance** - [ ] No queries in Enum.map loops - [ ] LiveView streams for lists > 100 items - [ ] Indexes exist for WHERE clause columns **OTP** - [ ] GenServers have supervision - [ ] Timeouts set for GenServer.call - [ ] No unbounded process spawning **Security** - [ ] No SQL injection via raw queries - [ ] No path traversal in file handling - [ ] Authorization checks present ## Prior Findings Deduplication (MANDATORY) Run this before analysis so consecutive runs don't re-report identical issues. 1. **Search** `.claude/plans/*/reviews/` and `.claude/reviews/` for prior findings 2. **Read ALL** prior findings before analyzing code 3. **Check each finding** against priors: - Fixed → **SKIP** | Still present → **PERSISTENT** (one line) | New → **NEW** (full analysis) | Reintroduced → **REGRESSION** 4. **Present**: NEW first (full), then PERSISTENT (one-line), then REGRESSION ## Example Challenge Output ```markdown ## Challenge: Ecto — Orders Migration ### FINDING 1: Table lock risk (HIGH) AddColumn on `orders` (2.1M rows) will lock table during deploy. **Proof needed**: Run `SELECT count(*) FROM orders` — if >1M, use `ALTER TABLE ... ADD COLUMN ... DEFAULT NULL` (no lock). ### FINDING 2: Missing index (MEDIUM) New `WHERE status = ?` query on line 45 has no index. **Action**: Add `create index(:orders, [:status])` to migration. ### Status: BLOCKED — 2 unresolved findings ``` ## Usage Run `$elixir-phoenix:phx-challenge [mode]` to initiate a rigorous review. The reviewer will not approve until all concerns are addressed with evidence. Example workflow: 1. Run `$elixir-phoenix:phx-challenge ecto` after migration changes 2. Answer each question with code references or test results 3. Address all concerns before proceeding to PR
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · oliver-kriska/claude-elixir-phoenix | 100 | MIT |
| oliver-kriska/claude-elixir-phoenix | 100 | MIT |
| oliver-kriska/claude-elixir-phoenix | 100 | MIT |
| oliver-kriska/claude-elixir-phoenix | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 28f6425e07bd (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
- 100challenge
Przeprowadza rygorystyczne przesłuchanie zmian przed zatwierdzeniem, ze szczególną uwagą na zmiany Ecto, zdarzenia LiveView, projekty OTP i gotowość PR. - 100phx-examples
Podaje przykłady kodu Phoenix, LiveView, Ecto, OTP i Oban wraz z oczekiwanym przebiegiem pracy. - 95elixir
Odpowiada na pytania o narzędzia Elixira: Mix, OTP, Phoenix, Ecto, współbieżność, testy i wdrożenia produkcyjne. - 100ecto
Prowadzi przez schematy Ecto, changesety, zapytania, migracje i Ecto.Multi oraz pomaga wybrać między DSL zapytań Ecto a surowym SQL. - 95elixir
Pomaga budować aplikacje w Elixirze i Phoenix: zasady OTP, granice kontekstów, stan w LiveView i drzewa nadzoru. - 95using-elixir-skills
Kieruje pracę w Elixirze do właściwego skilla myślowego, zanim zacznie się eksplorowanie kodu w projektach Phoenix, Ecto i OTP.