k-setup
/k-setup
Konfiguruje routing ról do poziomów modeli w K-stack (Haiku, Sonnet lub Opus z wybranym wysiłkiem), zapisując blok kstack-routing w pliku CLAUDE.md.
- Autor
- Kasempiternal ↗
- Repozytorium
- Claude-Agent-System ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 2
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Konfiguruje routing ról do poziomów modeli w K-stack (Haiku, Sonnet lub Opus z wybranym wysiłkiem), zapisując blok kstack-routing w pliku CLAUDE.md.
Wyzwalacze z opisu
Oryginalny opis (EN)
Configure K-stack's role-to-tier routing (which Haiku, Sonnet or Opus effort each role uses). Writes a managed kstack-routing block into ~/.claude/CLAUDE.md so routing loads in every session. Use for /k-setup, "configure kstack", "kstack preset", or changing K-stack's model routing. For a quick level switch, /k-effort is faster.
Jak działa
- 1. Check the tier agents
- 2. Load current state
- 3. Pick a preset
- 4. Confirm
- 5. Write the block
- 6. Retire legacy config
- 7. Token use (optional)
- 8. Report
Podgląd SKILL.md
---
name: k-setup
description: Configure K-stack's role-to-tier routing (which Haiku, Sonnet or Opus effort each role uses). Writes a managed kstack-routing block into ~/.claude/CLAUDE.md so routing loads in every session. Use for /k-setup, "configure kstack", "kstack preset", or changing K-stack's model routing. For a quick level switch, /k-effort is faster.
disable-model-invocation: true
---
# K-setup
Write the `kstack-routing` block in `~/.claude/CLAUDE.md`. `k-mode` and every `k-*` skill read it. To switch between presets without the checks below, `/kstack:k-effort` does it in one command.
## 1. Check the tier agents
List the agent types available in this session. Confirm all eleven `kstack:k-*` tiers from `../k-mode/references/routing.md` are present. If any are missing, stop. Tell the user to run `/plugin update kstack` (or `/plugin install kstack@k-stack`) and start a new session. There is no Sonnet Max tier; it is forbidden. If a stale `kstack:k-sonnet-max` still appears, tell the user to run `/plugin update kstack` and never dispatch it.
Then check what the aliases resolve to. Dispatch `kstack:k-haiku-medium`, `kstack:k-sonnet-low` and `kstack:k-opus-medium` in one message, each with the prompt `Reply with only your exact model ID.` Report all three. If Sonnet is not 5.5, say that the routing still works but its benchmark basis was Sonnet 5.5, and that `claude update` plus account access moves it there automatically. If Haiku is not 5.5 (Bedrock, Google Cloud and Foundry still serve Haiku 4.5, which has no effort control), say so and plan to write the block with `--haiku off`, so every Haiku role runs as `sonnet-low`.
## 2. Load current state
Read `~/.claude/CLAUDE.md`. If a block between `<!-- kstack-routing: begin -->` and `<!-- kstack-routing: end -->` exists, its `# preset` line and role lines are the current choices. Otherwise start from Balanced.
Legacy config from the pstack port: `~/.claude/pstack-models.md` and `~/.claude/agents/opus-{low,medium,high,xhigh,max}.md`. If any exist, note them for step 6. Do not touch them yet.
## 3. Pick a preset
Ask with AskUserQuestion. Name the current preset when one is recorded.
- `Balanced (recommended)`: Haiku for lookups and mechanical edits, Sonnet High for everyday code, Sonnet XHigh for hard code, Opus Medium for exploration, Opus High for design and review, Opus XHigh for sweeps.
- `Lean`: every role one effort step lower, and docs move to Haiku.
- `Quality`: every role one step higher, capped at XHigh. Mechanical edits move back to Sonnet.
- `Custom`: start from Balanced and change individual roles.
Build the table from the matching column in `routing.md`. For Custom, show every role with its tier. Offer the ten non-Max tiers and `inherit` (the role runs on the lead's model, and `model` is omitted on the Agent call). Max tiers are never offered, since Burn reaches them per task.
## 4. Confirm
Show the final role → tier table and ask to accept it or change specific roles.
## 5. Write the block
Write it with the k-effort script, which replaces the existing block or appends one and leaves the rest of `CLAUDE.md` byte-for-byte unchanged:
```
node "${CLAUDE_PLUGIN_ROOT}/skills/k-effort/scripts/k-effort.js" --data "${CLAUDE_PLUGIN_DATA}" --session-id "${CLAUDE_SESSION_ID}" set <lean|balanced|quality> [role=tier ...] [--haiku off]
```
For Custom, pass Balanced as the base and one `role=tier` per changed role; the script records `# preset: custom`. Add `--haiku off` when step 1 found Haiku 4.5. If the output starts with `k-effort error:`, fix the choice with the user and run it again.
Re-read the file and confirm the block appears exactly once.
## 6. Retire legacy config
If step 2 found legacy files, list them. Ask once whether to move them to `~/.claude/backups/pstack-legacy-<date>/`. Only move on yes. Never delete them.
## 7. Token use (optional)
Ask once with AskUserQuestion: `Optimise token use too?` with `Yes (Recommended)` and `Skip`. On yes, run the `/kstack:k-tokens apply` screen from `../k-tokens/SKILL.md`. On skip, say that `/kstack:k-tokens audit` shows where tokens go whenever they want it.
## 8. Report
Say the block was written and which preset is active. It is also active in this session from now on, and other sessions pick it up when they restart. Mention `/kstack:k-effort` for switching levels later, and `/kstack:k-tokens` if token settings were applied or skipped. Recommend Opus 5.5 at High as the lead model (`/model opus`, effort high) if the session is on something else.
Wersje
W bazie nie ma innych skilli o nazwie k-setup.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki f0bb9be63527 (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
- 90k-effort
Przełącza poziom routingu K-stack, na przykład lean, balanced lub quality, i zapisuje go jako domyślny albo tylko na sesję. - 90setup
Jednorazowo przygotowuje projekt pod kstack: zapisuje reguły uprawnień, szkielet dokumentacji i wskaźnik w pliku CLAUDE.md. - 95claude-opus-4-5-migration
Migruje prompty i kod z Claude Sonnet 4.0, Sonnet 4.5 lub Opus 4.1 na Opus 4.5: aktualizuje identyfikatory modeli i dostosowuje prompty do znanych różnic zachowania. - 90tasktide
Koordynuje zadania przez subagentów Claude Code i kieruje pracę między modelami Haiku, Sonnet i Opus: planowanie, wdrożenia i testy. - 100cc-model-routing
Dobiera model Claude (Fable, Opus, Sonnet, Haiku) do zadania i zarządza kosztem: macierz decyzji, tabele kosztów, planowanie budżetu i strategia kaskadowa. - 100select-claude-models
Rekomenduje wybór modeli Claude i pary wieloagentowe (Opus planuje, Sonnet wykonuje, advisor-executor, orchestrator-worker) oraz routing kosztu względem inteligencji.