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

sorting-hat

/sorting-hat

Sprawdza każdego agenta w repozytorium i przypisuje mu poziom modelu: planista, budowniczy lub sędzia, z jawnym modelem dla roli.

Repozytorium
opus-pocus ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.08.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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Sprawdza każdego agenta w repozytorium i przypisuje mu poziom modelu: planista, budowniczy lub sędzia, z jawnym modelem dla roli.

Wyzwalacze z opisu

which agents should run on which modelcut my token spendset up model tiersOpus is doing grunt work
Oryginalny opis (EN)

Audit and assign model tiers to every agent in the repo — classify each as planner, builder, or judge, and pin an explicit model per role so expensive models plan and judge while cheaper models execute. Use for "which agents should run on which model", "cut my token spend", "set up model tiers", "Opus is doing grunt work", or as part of /opus-pocus. Reports the classification table and the frontmatter edits; prescribes a lint so future agents must declare a tier. NOT for choosing the user's interactive session model — agents only.

Jak działa

  1. What to scan
  2. Classification
  3. When this spell has no subject
  4. Anti-patterns to find
  5. Fix prescriptions
  6. Bounds
  7. Report format
Sekcje z nagłówków SKILL.md, w oryginale · 90 linii, 851 słów
Podgląd SKILL.md
---
name: sorting-hat
description: Audit and assign model tiers to every agent in the repo — classify each as planner, builder, or judge, and pin an explicit model per role so expensive models plan and judge while cheaper models execute. Use for "which agents should run on which model", "cut my token spend", "set up model tiers", "Opus is doing grunt work", or as part of /opus-pocus. Reports the classification table and the frontmatter edits; prescribes a lint so future agents must declare a tier. NOT for choosing the user's interactive session model — agents only.
---

# ✨ The Sorting Hat

> *"Not every task deserves the expensive wizard. Opus plans, Sonnet toils, Haiku fetches — Opus returns to judge."*

The thesis: use the top model as a **planner and judge, not an executor**. Architecture,
decomposition, and final review reward the strongest model; mechanical execution mostly doesn't.
An agent roster with no declared tiers runs everything on the session default — usually the
most expensive model doing the least discriminating work.

## What to scan

Every agent definition (`.claude/agents/*.md` and plugin agents), each one's `model:`
frontmatter (or its absence), its tool set, and what its body actually asks it to do.

## Classification

Read the agent's *task shape*, not its name:

| Role | Task shape | Tier |
|---|---|---|
| **Judge** | Reviews, audits, refutes, grades; output is a verdict someone acts on; being wrong is expensive | Top model (Opus-class) |
| **Planner** | Decomposes, architects, writes briefs others execute | Top model |
| **Builder** | Writes code/content against a settled spec; correctness is checkable downstream (compiles, tests, lints) | Mid model (Sonnet-class) |
| **Mechanical** | Renames, format fixes, lookups, file moves; a wrong answer is obvious and cheap | Small model (Haiku-class) |

Edge rules:

- An agent that both builds and self-reviews is a **builder** — the judging belongs in a
  separate judge pass, which is the whole point of the split.
- Read-only auditors whose findings block a merge are **judges** even when cheap to run wrong —
  a plausible-but-wrong finding costs more than the model saved.
- When genuinely torn, tier UP for verdict-producers, DOWN for artifact-producers.

## When this spell has no subject

**Fewer than about five agents: report the classification table and stop.** Do not prescribe a
decision record, do not prescribe a lint. Both are drift-control for a roster large enough to
drift; on three agents the frontmatter *is* the policy, and a human reading three files *is* the
enforcement. Prescribing governance for two lines of YAML is the scale inversion this book grades
elsewhere.

**A missing `model:` is not automatically a finding.** Inheriting the session model is the right
call when the agent's cost is negligible, or when the user's plan may not grant the tier you would
pin — a hard pin to a model the account cannot reach fails at dispatch, which is worse than an
untiered agent. Flag a missing `model:` only when the agent is **frequently dispatched** *and* its
role tier **differs from the session default**, and say which of the two you observed.

## Anti-patterns to find

1. **No `model:` on a frequently-dispatched agent whose tier differs from the session default** —
   it silently inherits whatever the session runs, which is the wrong tier by the roster's own
   classification. (On a small roster, or where the inherited tier is already correct, this is not
   a finding — see above.)
2. **Judge on a builder tier** (a reviewer pinned to a small model to save cost).
3. **Mechanical work on the top tier** (a rename bot inheriting Opus).
4. **Tier decided at dispatch time per call** — callers guess differently; the definition is
   the single source.
5. **No enforcement** — nothing makes the NEXT agent declare a tier, so the roster drifts back.

## Fix prescriptions

- Emit the full classification table: agent · current model · role · prescribed model · one-line
  rationale. The user approves before edits.
- Apply as `model:` frontmatter edits — one per agent definition. Use the **alias**
  (`opus` / `sonnet` / `haiku` / `inherit`), never a dated model ID: IDs age out and a stale one
  fails at dispatch. Where the account may not hold the top tier, prefer `inherit` for judges and
  pin only the down-tiers.
- **On a roster of about five or more:** record the policy as a decision doc (ADR or equivalent)
  so the tiers are argued once, not re-litigated per agent.
- **On a roster of about five or more:** add the lint — a wiring or CI check that every agent
  definition declares `model:`. The check, not the doc, is what keeps the roster sorted. Below
  that size the lint governs less than it costs.
- Derived, never typed: if the repo documents the roster (a README table), generate the tier
  column from the frontmatter — a hand-typed copy drifts.

## Bounds

- Scope: agent definitions and their frontmatter. Nothing else, and never the user's interactive session model.
- Cap: the full classification table is the deliverable, so no cap applies — but findings (mis-tiered agents) rank at 15.
- Done when every agent has been classified once. A repo with no agents gets `SCANNED NOTHING` and grades `N/A`, never `O`.
- Quote once, at read time; mark anything you cannot re-confirm `UNVERIFIED` rather than re-reading to check yourself.
- See `skills/opus-pocus/references/casting-safety.md` for the full rules.

## Report format

The classification table, the count of agents changed per direction (up-tiered / down-tiered /
newly declared), the estimated spend impact (which frequent agents moved down), and the lint
status (exists / prescribed). `SCANNED NOTHING` if the repo has no agents.

Wersje

W bazie nie ma innych skilli o nazwie sorting-hat.

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

  • 100opus-pocus
    Uruchamia audyt Opus Pocus nad warstwą instrukcji Claude w repozytorium (pliki pamięci, hooki, skille, agenci) i warstwą automatyzacji, a wynik daje w raporcie O.W.L. z oceną i tabelą poprawek do zatwierdzenia.
  • 100configure
    Dobiera, które zaklęcia Opus Pocus ładują się w sesji, zapisując wpisy skillOverrides w ustawieniach: rozpoznaje typ repozytorium, proponuje profil i pokazuje diff przed zapisem.
  • 90model-routing
    Dobiera model do każdego wywołania, łącząc Opus, Sonnet, Haiku i modele OpenAI oraz Gemini, by ciąć koszty bez spadku jakości.
  • 100agent-builder
    Tworzy podagentów Claude Code i dobiera do każdego model oraz poziom wysiłku według kosztu, opóźnienia i możliwości, a także przegląda istniejących agentów.
  • 100synthesis-model-tiers
    Porządkuje modele językowe w poziomy: rozumowanie, rutynę i pracę masową, z mapowaniem dla każdego dostawcy.
  • 90model-tiers
    Dobiera poziom modelu dla delegowanego agenta: najwyższy, wysoki lub szybki, i zamienia go na konkretną wartość.

Uwagi i zgłoszenia

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