# Krytyk AI: drugi model, który nie ufa pierwszemu

> Drugi model sprawdza pracę pierwszego, zanim ją zobaczysz, i kończy werdyktem PASS albo FAIL.

Canonical: https://dawidgac.com/pl/skills/krytyk-ai
Opublikowano: 2026-11-18

## Co robi

Model, który coś zrobił, czyta to z tymi samymi martwymi polami, które miał przy pracy. Zapytany „czy to dobre?” mówi, że tak. Ten skill stawia osobnego krytyka między „agent mówi, że gotowe” a „Ty to widzisz”. Krytyk to inny model albo przynajmniej nowa sesja bez pamięci pracy i bez prawa zapisu. Dostaje tylko wynik i brief z wierszami done_when. Nie dostaje wyjaśnień autora. Każdy wiersz ocenia jako spełniony, niespełniony albo niesprawdzalny, z dowodem, który obejrzał. Każde ustalenie ma wagę, miejsce i konkretny przypadek błędu: dane albo kroki, które pokazują problem. Ustalenie bez przypadku błędu odpada. Werdykt w pierwszej linii to PASS albo FAIL. Zawsze idzie też drugi, świeży przebieg, nawet po PASS. Jeśli nie znajdzie nic nowego, koniec.

## Kiedy używać

- Agent skończył zadanie i za chwilę zobaczysz wynik Ty albo klient.
- Agent napisał tekst, który pójdzie do ludzi: opis produktu, maila, stronę.
- Agent zmienił kod, który trafi na produkcję.
- Chcesz sprawdzić, czy „gotowe” od agenta to prawda.

## Kiedy nie używać

- Szkic, który i tak wyrzucisz.
- Odpowiedź na proste pytanie o fakt.
- Praca, która ma już osobną recenzję w innym procesie.

## Tabela decyzyjna

| Sytuacja | Co robi krytyk |
| --- | --- |
| Każdy wiersz spełniony, brak ustaleń HIGH | VERDICT: PASS, uwagi MEDIUM i LOW wracają do autora, potem drugi, świeży przebieg |
| Choćby jeden wiersz niespełniony albo niesprawdzalny | VERDICT: FAIL, autor poprawia, potem drugi przebieg |
| Choćby jedno ustalenie HIGH | VERDICT: FAIL, nawet gdy wszystkie wiersze są spełnione |
| Ustalenie bez przypadku błędu | Odpada, nie trafia do werdyktu |
| Drugi przebieg nie znajduje nic nowego | Koniec, praca trafia do Ciebie |
| Limit przebiegów osiągnięty | Stop, otwarte ustalenia trafiają do Ciebie |

## Czego potrzebujesz

### An AI coding agent: Claude Code, Codex CLI or Cursor

wymagane, aplikacja: https://code.claude.com/docs/en/overview

Skill to plik instrukcji w markdown. Potrzebujesz agenta, który go czyta i ma dostęp do Twoich plików.

1. Zainstaluj jednego agenta: Claude Code (https://code.claude.com/docs/en/overview), Codex CLI (https://developers.openai.com/codex/cli) albo Cursor (https://cursor.com/docs).
2. Otwórz agenta w folderze swojego projektu.
3. Zainstaluj skill według kroków z sekcji instalacji.

### A second model or a fresh session as the critic

opcjonalne, aplikacja: https://code.claude.com/docs/en/sub-agents

Krytyk nie może być autorem. Najlepiej model innego dostawcy, a jeśli masz jeden, to nowa sesja bez pamięci pracy i bez prawa zapisu.

1. Claude Code: utwórz pod-agenta z narzędziami tylko do czytania według strony podlinkowanej wyżej.
2. Codex CLI: uruchamiaj krytyka poleceniem codex exec --sandbox read-only "<prompt krytyka>" (https://developers.openai.com/codex/cli).
3. Bez narzędzi: otwórz nowy czat z innym modelem i wklej tylko brief oraz wynik.
4. Wpisz wybrany sposób w CONTEXT.md w polu krytyka.

## Instalacja

1. Pobierz folder files i zmień nazwę CONTEXT.template.md na CONTEXT.md.
2. Claude Code: wrzuć folder do .claude/skills/krytyk/ w projekcie albo do ~/.claude/skills/krytyk/ dla wszystkich projektów. Claude ładuje skill, gdy opis pasuje do zadania, albo gdy wpiszesz /krytyk.
3. Codex: wklej treść SKILL.md do AGENTS.md w katalogu głównym repozytorium albo do ~/.codex/AGENTS.md.
4. Cursor: dodaj SKILL.md jako regułę projektu albo wklej go do AGENTS.md.
5. Inny agent: wklej SKILL.md do pliku instrukcji projektu lub promptu systemowego i trzymaj obok CONTEXT.md oraz KRYTYK.template.md.
6. Wypełnij CONTEXT.md swoimi danymi: projekt, foldery, zasady.

## Działa, jeśli

- Po każdym zadaniu w folderze werdyktów pojawia się plik krytyk-<data>-<nazwa>-pass<n>.md.
- Pierwsza linia każdego werdyktu to VERDICT: PASS albo VERDICT: FAIL.
- Każde ustalenie ma przypadek błędu, który możesz sam powtórzyć.
- Werdykt kończy się linią „Not checked:”.
- Krytyk nie zmienia żadnego pliku; werdykt zapisuje agent, który go wywołał.

## Wymagania

- Agent AI, który czyta pliki instrukcji, na przykład Claude Code, Codex CLI albo Cursor.
- Drugi model albo możliwość otwarcia nowej sesji bez pamięci pracy.
- Brief z wierszami done_when. Najlepiej z darmowego skilla brief-dla-agenta-ai.

## FAQ

### Czy krytyk może być tym samym modelem co autor?

Może, jeśli działa w nowej sesji, bez pamięci pracy i bez prawa zapisu. Model innego dostawcy często wyłapuje inne błędy.

### Dlaczego krytyk nie dostaje wyjaśnień autora?

Bo wyjaśnienia to argumenty za tym, że jest dobrze. Krytyk, który je czyta, zaczyna się z nimi zgadzać.

### Co to jest przypadek błędu?

Konkretne dane albo kroki, po których problem widać. Nie „mogłoby być jaśniej”, tylko „klient z długim nazwiskiem widzi ucięty przycisk na telefonie”.

### Dlaczego dwa przebiegi?

Jeden krytyk też coś przeoczy, a poprawki potrafią coś zepsuć. Drugi, świeży krytyk sprawdza aktualną wersję zawsze, także po PASS. Jeśli nie znajduje nic nowego, kończysz i nie kręcisz się w pętli.

### Czy to działa poza kodem?

Tak. Weź opis produktu, otwórz nową sesję z innym modelem i zadaj jedno pytanie: co tu jest nieprawdą?

## Gdzie to pasuje

Drugi z trzech skilli. Brief (brief-dla-agenta-ai) daje wiersze done_when, według których krytyk ocenia. Po werdykcie PASS autor oddaje raport z dowodem (raport-z-dowodem), a krytyk może powtórzyć każdy dowód.

## Źródła

- Claude Code docs: skills: https://code.claude.com/docs/en/skills (dostęp 2026-09-22)
- Codex docs: AGENTS.md: https://developers.openai.com/codex/guides/agents-md (dostęp 2026-09-22)
- Cursor docs: rules: https://cursor.com/docs/context/rules (dostęp 2026-09-22)
- Claude Code docs: subagents: https://code.claude.com/docs/en/sub-agents (dostęp 2026-09-22)

## Pliki

### SKILL.md

Metoda: autor nigdy nie ocenia siebie, co krytyk dostaje, a czego nie, ocena wierszy done_when, ustalenia z przypadkiem błędu, PASS albo FAIL i dwa przebiegi.

Pobierz: https://dawidgac.com/pl/skills/krytyk-ai/files/SKILL.md

````markdown
---
name: krytyk
description: Sends finished work to a second model or a fresh session that does not trust the first one. The critic grades the result against the brief's done_when rows, gives every finding a concrete failing case, ends with exactly PASS or FAIL, and never lets the author grade their own work. Use it when the user says "review this", "check the agent's work", "is this really done", "critic", "krytyk", "sprawdź to", or before any agent's work reaches a person, a customer or production.
---

# Krytyk: a second model that does not trust the first

The model that did the work reads it with the same blind spots it had while doing it. Ask it "is
this good?" and it says yes. This skill puts a separate critic between "the agent says done" and
"you see it". The critic gets the result and the criteria, not the author's story, and its verdict
can send the work back.

Read `CONTEXT.md` next to this file before the first review. It names your critic, the pass limit
and where verdicts are saved. If a field you need is blank, ask the user for that one field and
write the answer in.

## Rule zero: the author never grades their own work

- The critic is a different model, or at least a fresh session with no memory of the work.
  The same agent "double-checking" in the same conversation is not a review.
- A model from another vendor catches different mistakes. Use one if you have it (see `CONTEXT.md`).
- The critic has read and run tools only. No write access. A critic that can edit fixes what it
  finds, and then nobody checks the fix. It returns the verdict as text; the agent that called it
  saves that text as the verdict file.
- The critic stops after the verdict. Fixing is the author's job.

## What the critic gets, and what it does not

Give it:

1. **The brief**, with its done_when rows (from the `brief` skill, or written now if missing).
2. **The result**: the files, the diff, the text, the output, the URL.
3. **How to run it**, if it is code: the test and build commands.

Do not give it:

- the author's explanation of why it is fine;
- the author's report or self-assessment;
- the chat history of the build.

Those are the author's excuses. A critic that reads them starts agreeing with them.

## How the critic grades

1. **Every done_when row**: met, not met, or not checkable, with the evidence it looked at (a file
   and line, a command it ran and what came back). "Not checkable" counts as not met until the
   author supplies proof.
2. **Findings.** Each finding has:
   - a severity: HIGH (breaks a row or misleads a user), MEDIUM (wrong but contained), LOW (polish);
   - a location: file and line, or the exact sentence;
   - a **failing case**: the input, steps or example that shows the problem happening. "Could be
     clearer" is not a finding. "A customer with a 30-character name sees the button text cut off on
     a phone 375 px wide" is.
   - a suggested fix, in one line.
   A finding with no failing case is dropped. This keeps the critic honest and keeps the author from
   chasing opinions.
3. **Checks run**: the exact commands and their real results.
4. **Not checked**: what it could not verify and why. Never left out; "nothing" is a valid answer only
   if it is true.
5. **Verdict**: the first line of the output is exactly `VERDICT: PASS` or `VERDICT: FAIL`.
   - FAIL if any done_when row is not met or not checkable.
   - FAIL if any HIGH finding stands.
   - PASS otherwise. MEDIUM and LOW findings go back to the author but do not block.

Use `KRYTYK.template.md` for the output.

## Two passes, then stop

1. Pass 1: the critic reviews and returns a verdict.
2. The author fixes every HIGH finding and every unmet row. Not the critic.
3. Pass 2, always, even after a PASS: a **fresh** critic (new session) reviews the current version
   against the same brief. One clean pass is not enough; a second pair of eyes finds what the first missed.
4. If pass 2 finds nothing new and its verdict is PASS, stop. The work is ready for a person.
5. If pass 2 finds new problems, fix and run again, up to the pass limit in `CONTEXT.md`
   (default 3). At the limit, stop and hand the open findings to the user instead of looping.

## Dispatch prompt

```
Role: critic. You did not make this. You do not trust it.

Brief: <path or pasted brief with done_when rows>
Result: <paths / diff / text / URL>
How to run it: <commands, if code>

For each done_when row: met / not met / not checkable, plus the evidence you looked at.
For each finding: severity HIGH / MEDIUM / LOW, location, a concrete failing case
(steps or input that show it), a one-line fix. No failing case, no finding.
List the commands you ran with their real output.
End with "Not checked:" and what you could not verify.
First line of your answer: VERDICT: PASS or VERDICT: FAIL.
FAIL if any row is not met, any row is not checkable, or any HIGH finding stands.
Do not fix anything. Stop after the verdict.
```

## Example outside code: a product description

You wrote a product description with an agent. Open a new session with a different model, give it
the description and the brief, and ask one question: **"What here is not true?"**

```
VERDICT: FAIL
Row 1 "every claim matches the product sheet": not met.
1. HIGH, sentence 2: "ships in 24 hours". Failing case: the product sheet says
   dispatch in 2-3 working days; a customer who orders on Friday gets it next week
   and asks for a refund. Fix: "ships in 2-3 working days".
2. LOW, sentence 5: "premium" says nothing a buyer can check. Fix: name the material.
Not checked: whether the size chart matches the supplier's latest sheet.
```

## Done check for this skill

- No work reaches the user without a verdict file from a critic that did not make it.
- Every finding in every verdict has a failing case.
- Every verdict starts with PASS or FAIL and ends with "Not checked:".
- No review loop runs past the pass limit.

## How it fits with the other two

- **brief** sets the done_when rows. Without them the critic grades against its own taste.
- **raport** is what the author hands over after a PASS: every row, with proof the critic can re-run.
````

### KRYTYK.template.md

Szablon werdyktu krytyka: PASS albo FAIL w pierwszej linii, tabela wierszy, ustalenia, uruchomione komendy, czego nie sprawdzono. Z przykładem.

Pobierz: https://dawidgac.com/pl/skills/krytyk-ai/files/KRYTYK.template.md

````markdown
VERDICT: PASS | FAIL

_First line, exactly one of the two. FAIL if any done_when row is not met or not checkable, or any HIGH finding stands._

## Reviewed

- Brief: <path to the brief>
- Result: <paths, diff range, URL or pasted text>
- Version: <commit, file date or draft number>
- Critic: <model or tool>, fresh session, read-only
- Pass: <1 or 2 or n> of <limit>. New findings since the last pass: <yes / no>

## done_when

_One line per row. Evidence = what you opened or ran, not what the author said._

| # | Row | Met / not met / not checkable | Evidence looked at |
|---|---|---|---|
| 1 | <row text> | <status> | <file:line / command + result> |

## Findings

_Each one needs a failing case: the input or steps that make the problem happen. No failing case, no finding._

1. <HIGH / MEDIUM / LOW>, <file:line or exact sentence>
   - What is wrong: <one line>
   - Failing case: <steps or input that show it>
   - Fix: <one line>

## Checks run

```
<command>
<real output, trimmed>
```

## Not checked

_What you could not verify and why. Write "nothing" only if it is true._

- <item and reason>

---

VERDICT: FAIL

## Reviewed

- Brief: briefs/brief-<yyyymmdd>-contact-form.md
- Result: src/pages/contact, commit <abc1234>
- Version: <abc1234>
- Critic: second model from another vendor, fresh session, read-only
- Pass: 1 of 3. New findings since the last pass: n/a

## done_when

| # | Row | Met / not met / not checkable | Evidence looked at |
|---|---|---|---|
| 1 | Name, email, message required | met | contact form file, lines 12-30; empty submit shows 3 errors |
| 2 | Test message arrives | not checkable | no inbox screenshot in the result |
| 3 | Build passes | met | `<your build command>` exit 0 |

## Findings

1. HIGH, contact form file line 41
   - What is wrong: the submit button stays active while sending.
   - Failing case: double-click Send on a slow connection; two identical messages arrive.
   - Fix: disable the button until the request returns.
2. LOW, contact page heading
   - What is wrong: the heading says "Get in touch" twice on mobile.
   - Failing case: open the page 375 px wide; the hero and the form both show it.
   - Fix: drop the form's own heading.

## Checks run

```
<your build command>
exit 0
```

## Not checked

- Spam behaviour: out of scope in the brief.
````

### CONTEXT.template.md

Twój krytyk i jak go otworzyć, foldery na briefy i werdykty, limit przebiegów i komendy do sprawdzania pracy.

Pobierz: https://dawidgac.com/pl/skills/krytyk-ai/files/CONTEXT.template.md

```markdown
# Krytyk: your context

Copy this file to CONTEXT.md next to SKILL.md and fill in every blank. Never put passwords, access
keys or card numbers here.

## Your project

(One line: what you build and who it is for.)
Example: an online store selling garden tools.

Project:

## Your critic

(Which model, tool or session reviews the work. Prefer a different vendor from the one that does
the work. If you only have one model, write "fresh session, read-only tools".)
Example: a second model from another vendor, opened in a new chat with only the brief and the result.

Critic:
How to open it:
Tools it may use (read and run only):

## Where briefs and verdicts live

(Folders, so every verdict points at the brief it graded.)
Example: briefs/ and reviews/

Briefs folder:
Verdicts folder:
Verdict file name: krytyk-<yyyymmdd>-<short-name>-pass<n>.md

## Pass limit

(How many critic passes before the open findings go to you instead of another loop.)
Example: 3

Pass limit:

## How to run the work

(Commands the critic may run to check code: tests, build, a local preview.)
Example: `<your test command>`, `<your build command>`

Commands:

## What must always go through the critic

(Work that never reaches you or a customer without a verdict.)
Example: anything customers read; any code change; any message sent in my name.

Always review:

## Trigger phrases

(Extra words, in any language you use, that mean "check this before I see it".)
Example: "sprawdź to", "czy to prawda".

Trigger phrases:
```
