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

make-it-right

/make-it-right

Wykonuje przebieg „make it right” po tym, jak kod działa: testuje, czy zmiana spełnia wymagania, ocenia poprawność wykonania, weryfikuje znaleziska względem źródła, naprawia je i raportuje, co musi jeszcze obejrzeć człowiek.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.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
17
Skrypty
2
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 sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/new_lines.sh, scripts/snapshot.sh

Co robi i kiedy

Wykonuje przebieg „make it right” po tym, jak kod działa: testuje, czy zmiana spełnia wymagania, ocenia poprawność wykonania, weryfikuje znaleziska względem źródła, naprawia je i raportuje, co musi jeszcze obejrzeć człowiek.

Wyzwalacze z opisu

make it rightreview and fixclean this up before the PRget this up to standardreview my changescode review this branchis this ready for reviewsimplify this
Oryginalny opis (EN)

The "make it right" pass after code works. Tests whether the change meets its requirements and reviews whether it is done correctly, verifies every finding against the source, fixes them, and reports what a human still needs to look at. Use when the user says "make it right", "review and fix", "clean this up before the PR", "get this up to standard", "review my changes", "code review this branch", "is this ready for review", "simplify this", "YAGNI review", or "QA this in the browser".

Jak działa

  1. Arguments
  2. 1. Gather the packet
  3. 2. Run the linters and specs
  4. 3. Launch the agents
  5. 4. Track and verify
  6. 5. Address
  7. 6. Round 2, then UI/UX
  8. 7. Finish
  9. Gotchas
Sekcje z nagłówków SKILL.md, w oryginale · 217 linii, 1 759 słów
Podgląd SKILL.md
---
name: make-it-right
description: >-
  The "make it right" pass after code works. Tests whether the change meets
  its requirements and reviews whether it is done correctly, verifies every
  finding against the source, fixes them, and reports what a human still
  needs to look at. Use when the user says "make it right", "review and fix",
  "clean this up before the PR", "get this up to standard", "review my
  changes", "code review this branch", "is this ready for review", "simplify
  this", "YAGNI review", or "QA this in the browser".
metadata:
  author: rolemodel
  version: "2.3"
  triggers: "make it right, review and fix, code review, review my changes, review this branch, clean this up, get this up to standard, ready for review, simplify, yagni review, over-engineered, qa in the browser"
license: MIT
---

# Make It Right

"Make it work" got the change running. This pass makes it trustworthy. Two
groups of agents look at it:

- **Test** asks whether the requirements are met. These agents run things:
  specs, the app, a browser.
- **Review** asks whether it is done correctly. These agents only read.

A verifier subagent checks their findings. This session fixes them and
reports, then offers [`make-it-fast`](../make-it-fast) before
[`create-pr`](../create-pr). `SKILL_DIR` is the directory this file was loaded
from. `make-it-fast` refers to these steps by number; renumber both.

The principle files deal in principles. Stack and project knowledge enters
through two hooks that step 1 resolves once and every agent receives: **Rule
sources**, the project's own rules, which win over everything else; and the
**Stack map**, `references/stacks/<stack>.md`, this stack's spellings under
headings the principle files cite. No map means the principles run as written.

## Arguments

- A base ref (default: the merge base with the default branch).
- `threshold=critical|high|medium|low`: the lowest severity fixed in
  **existing** code (default `high`).
- `skip=<principle>,…` by file name: `skip=ui-ux,blast-radius`.
- `report-only`: change no file. Run linters without autocorrect, fix no
  failing spec, and stop after step 4; a passed redesign goes under "Look here".
- `redesign=ask|apply` (default `ask`): see `references/redesign.md`.

## 1. Gather the packet

```bash
git fetch -q origin && git remote set-head origin -a >/dev/null 2>&1
BASE=$(git merge-base HEAD "$(git symbolic-ref --short refs/remotes/origin/HEAD)")  # or the user's ref
OUT=$(mktemp -d "${TMPDIR:-/tmp}/make-it-right.XXXXXX"); echo "$BASE" > "$OUT/base.txt"
git diff --stat "$BASE"; git status --short
"$SKILL_DIR/scripts/new_lines.sh" "$BASE" > "$OUT/new_lines.txt"
```

Lines in `new_lines.txt` are **new code**; every other line is **existing
code**, even in files the change edited, unless the defect exists only
because of the change (the verifier decides).

Write the change's **intent** in one or two sentences. If a ticket is named,
copy its acceptance criteria; otherwise use the conversation, PR description,
or commits, or state the intent you're assuming. Save it to
`$OUT/intent.txt`.

**Rule sources.** List in `$OUT/rules.txt`: `AGENTS.md` / `CLAUDE.md`,
`docs/conventions/*.md`, and every installed skill (`.claude/skills/*/SKILL.md`,
`$SKILL_DIR/../*/SKILL.md`) whose description or triggers match a changed
file's directory or extension.

**Stack map.** Pick one by detection: a `Gemfile` naming `rails` →
`$SKILL_DIR/references/stacks/rails.md`; no match → none. From its "Leans on"
table, the sibling files that exist are `Also read`; the missing go in the
report once.

**Commands.** From the rule sources, then the stack map's "Linters and check"
and "Boot and data": lint, specs for files, full suite, boot, seed. Write them
to `$OUT/commands.txt`.

## 2. Run the linters and specs

Run the linters with autocorrect on (keep what it changes), and the specs for
the changed files. Reviewers never report what a linter catches. A failing
spec means the change doesn't work yet: fix it when the fix is small, else
stop and say so. Rerun each failure with the same command and seed in a
worktree at the base (`git worktree add "$OUT/base" "$BASE"`, if the project's
setup runs there). One that fails there too was already broken; report it, it
doesn't count against the change. One that passes there is the change's, even
if it passes alone: a new spec can leak state into a later one. Leave the stack map's
"Scanners left to CI" to CI.

## 3. Launch the agents

| Group | Principle | File | Run when the change touches |
|---|---|---|---|
| test | acceptance | `test/acceptance.md` | any behavior |
| test | coverage | `test/coverage.md` | any behavior |
| test | blast-radius | `test/blast-radius.md` | existing code, not only new files |
| test | ui-ux | `test/ui-ux.md` | anything that renders a screen: views, components, client-side code, CSS, routes |
| review | security | `review/security.md` | anything but CSS, docs, or specs alone |
| review | maintainable | `review/maintainable.md` | any code |
| review | readability | `review/readability.md` | any code |
| review | conventions | `review/conventions.md` | any code |
| review | data-patterns | `review/data-patterns.md` | anything that stores or migrates data: models, migrations, queries, jobs, exports |

**Small change** (≤ 50 lines, ≤ 3 files): no subagents. Check it yourself
against each principle file that applies, then do the verifier's checks from
`references/verifier.md`, score and `new` / `existing` mark included.

**Otherwise**, launch every principle that applies except `ui-ux` (step 6) in
**one message**, giving each only the **packet**. Launch review principles as
`rolemodel-skills:make-it-right:reviewer` and test principles as
`rolemodel-skills:make-it-right:tester` when those types are listed. Otherwise,
such as when this skill was copied in rather than installed as a plugin,
or the host isn’t Claude Code, use parallel general-purpose subagents.

> SKILL_DIR is `<SKILL_DIR>`. Read `<SKILL_DIR>/<group>/<principle>.md` and
> `<SKILL_DIR>/references/findings.md`, then check the change.
> The change is `git diff <BASE>` plus any untracked files listed in
> `<path to new_lines.txt>`. Intent: `<intent and criteria>`.
> Rule sources: `<path to rules.txt>`. Stack map: `<path, or none>`.
> Also read: `<paths found, or none>`. Commands: `<path to commands.txt>`.

Add for **review** agents: "Read only. Do not edit, create, or delete any
file." For **test** agents: "You may run specs and the app. Do not edit app
code or specs; report what's missing." Never pass this session's history: an
agent that knows why the author chose something stops questioning it.

Before launching, snapshot the tree: `PRE=$("$SKILL_DIR/scripts/snapshot.sh")`.
When they return, compare: `git diff --stat "$PRE" "$("$SKILL_DIR/scripts/snapshot.sh")"`.
Restore each file an agent changed with `git restore --source="$PRE" --worktree
-- <path>`, delete any it created, and note them in the report. `git status`
can't see a second edit to a file the user already changed.

## 4. Track and verify

Put every finding on a task list as it arrives, and append each agent's
return, unedited, to `$OUT/findings.md`. The run ends when the list is
empty, every open item names its blocker, or round 2 is done. Don't end a turn
by announcing the next step; take it.

Launch one subagent, as `rolemodel-skills:make-it-right:verifier` when
that type is listed, with the packet, the principle file replaced by
`<SKILL_DIR>/references/verifier.md`, the review agents' read-only line, and
every finding. It merges, checks,
scores, and marks each `new` or `existing`. Save its return, unedited, to
`$OUT/verified.md`. Keep findings scored **75 or
above**. Its open questions go to "Look here", the three with the widest
effect; the rest go under "Not fixed" as `open question`.

Then snapshot the tree before any fix:
`FIX_BASE=$("$SKILL_DIR/scripts/snapshot.sh")`. Round 2 diffs against it.

**Redesign.** If the verifier passes a `redesign:` finding, follow
`$SKILL_DIR/references/redesign.md` before step 5.

## 5. Address

**What gets fixed:** every kept `new` finding, whatever its severity, and
`existing` findings at or above `threshold`. The rest go under "Not fixed".

**Order.** Acceptance, blast radius, and security; then maintainable (deleted
code takes its findings with it), data patterns, readability, conventions;
coverage last. UI/UX fixes follow in step 6.

**How:**

- Fix serially in this session. Never have parallel agents edit files.
- For a bug, write the failing spec first, at the lowest level that shows it,
  then fix it. Specs go at the levels `$SKILL_DIR/test/coverage.md` sets, in the style of
  the test conventions skill the stack map names. Run each new spec without
  the fix and watch it fail for the reason you claim; if it passes, the setup
  doesn't reach the trigger, so change the setup, not the assertion.
- After each principle's batch, run the linters and the specs for the touched
  files. If a fix breaks something and two attempts don't repair it, revert
  that fix and report it.
- **Fix toward the intent.** When a finding has more than one fix, such as
  removing a control that does nothing or making it work, pick the one that
  makes the intent true, even when it's bigger.
- **Conflicts.** A fix that adds code must pass the ladder in
  `$SKILL_DIR/review/maintainable.md`. When adding structure and deleting it disagree,
  deleting wins, but never over behavior the intent asks for. Nothing removes
  what that file's "Never cut" lists; only coverage deletes a
  spec, and only a framework test or a duplicate.
- **Precedence.** A written rule outranks a general principle; one example in
  the codebase outranks neither.
- **Push back.** A verified finding can still be wrong for this change, such
  as one that conflicts with the intent or a written rule. Reject it with a
  one-line reason, in the report.

## 6. Round 2, then UI/UX

**Round 2.** Fixes are new code: rerun `"$SKILL_DIR/scripts/new_lines.sh"
"$BASE" > "$OUT/new_lines.txt"`. Then check only the fix hunks, as in step 3,
with the change set to `git diff $FIX_BASE` plus the untracked files. Pick principles from the step 3 table by
what each fix touches: always acceptance and conventions; security for a new
action, query, param, or response; coverage for an added or changed spec;
blast radius when existing behavior changes; data patterns when records are
copied, saved, or migrated differently; readability and maintainable when a
class or method is rewritten. Findings go through step 4; one that would undo
a fix from this run is rejected, naming the fix. Fix what survives, then stop,
even if findings remain, and list them as `round-2 limit`.

**UI/UX.** If it applies, launch $SKILL_DIR/test/ui-ux.md with the packet,
as the tester type when it’s listed, against the fixed code.
Subagents often lack browser tools; then walk the states yourself
from the same file. Its findings go through steps 4 and 5. After UI fixes,
re-walk only the states they touched, and run acceptance and conventions on
any fix hunk in server code or a template, as in round 2.

## 7. Finish

Run the linters and the full spec suite once. Leave the changes uncommitted
unless the user asked for commits. `create-pr` commits and opens the PR.
Offer `make-it-fast` when the change adds or alters queries, endpoints, jobs,
or spec setup, markup that loads images, embeds, frames, fonts, or scripts,
or any agent tagged a `fast:` finding; for other copy, markup, or style
changes, say it's skipped. Report in one screen, in the shape
`references/report.md` gives. Leave `$OUT` in place: `made-it-wrong-retro` replays
agents and the verifier from it.

## Gotchas

- The reviewer agent has no Edit or Write, but Bash can still change files,
  and the general-purpose fallback has every tool. Keep the snapshot
  comparison in step 3 either way.
- Don't give the tester `isolation: worktree`. The worktree branches from the
  default branch, not this working tree, so it would test code without the
  change in it.
- Hooks resolve once, in step 1. Principle files that probed `../` on their
  own found a sibling in one run and not the next. The packet carries it all.
Pliki w paczce (17)
  • SKILL.md 12 KB
  • references/findings.md 3 KB
  • references/redesign.md 1 KB
  • references/report.md 1 KB
  • references/verifier.md 5 KB
  • references/stacks/rails.md 6 KB
  • review/conventions.md 2 KB
  • review/data-patterns.md 2 KB
  • review/maintainable.md 7 KB
  • review/readability.md 2 KB
  • review/security.md 2 KB
  • scripts/new_lines.sh 1 KB
  • scripts/snapshot.sh 1 KB
  • test/acceptance.md 2 KB
  • test/blast-radius.md 2 KB
  • test/coverage.md 4 KB
  • test/ui-ux.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie make-it-right.

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

  • 100make-it-fast
    Przegląda zmianę pod kątem szybkości i wydajności (zapytania do bazy, czas żądania, szybkość testów, responsywność stron), weryfikuje każde znalezisko, naprawia to, co da się zmierzyć, i raportuje liczby przed i po.
  • 100requesting-code-review
    Przed scaleniem sprawdza, czy zmiana spełnia wymagania, prosząc o przegląd kodu po zakończeniu zadania lub większej funkcji.
  • 100requesting-code-review
    Weryfikuje, czy ukończone zadanie spełnia wymagania, zanim trafi do scalenia, i wskazuje, co trzeba poprawić przed przeglądem.
  • 100requesting-code-review
    Prosi o przegląd kodu po zakończeniu zadania, przed scaleniem, by sprawdzić, czy praca spełnia wymagania.
  • 100requesting-code-review
    Zleca przegląd kodu po ukończeniu zadania, sprawdzając, czy spełnia wymagania i nie wprowadza regresji.
  • 100requesting-code-review
    Prosi o przegląd kodu po zakończeniu zadania lub dużej funkcji, by sprawdzić, czy praca spełnia wymagania przed scaleniem.

Uwagi i zgłoszenia

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