Skip to content
Back to skills

Setup

ASecurity

Configure which models keel uses per role. Checks for the Codex CLI, offers Claude Code's model aliases, and writes keel-models.md in the active Claude config directory, which every keel skill reads to override its defaults. Use for /keel:setup, "configure keel models", or changing keel's model choices.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 29, 2026
ai-agentsbashrefactoring

Works with

  • claude code
  • cursor
  • cli

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add alexnthnz/keel --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnthnz-setup/badge)](https://www.skillsdirectory.com/skills/alexnthnz-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup
description: Configure which models keel uses per role. Checks for the Codex CLI, offers Claude Code's model aliases, and writes keel-models.md in the active Claude config directory, which every keel skill reads to override its defaults. Use for /keel:setup, "configure keel models", or changing keel's model choices.
disable-model-invocation: true
---

# Setup keel

Write `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/keel-models.md`, a plain file that sets keel's model per role. Claude Code has no always-applied rule outside CLAUDE.md, so each keel skill that spawns a subagent reads this file itself.

The file lives in the active Claude config directory, so each profile run through `CLAUDE_CONFIG_DIR` keeps its own models. Resolve the path in Bash with `echo "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/keel-models.md"` and never hard-code `~/.claude`.

## Steps

### 1. Detect available models

Claude Code subagents take a model alias, not a vendor slug. The valid values are `opus`, `sonnet`, `haiku`, and `fable`. The aliases `inherit`, `inherit-parent`, and `auto` are always valid and all mean the same thing: omit the Agent call's `model` so the role runs on the parent model. That is how a user who picks the model per session keeps that choice.

Then check the cross-vendor lane with `command -v codex`. When it succeeds, `codex` is also a valid panel entry. It is not a subagent. The **interrogate** skill runs it from Bash with the OpenAI Codex CLI. When the check fails, leave `codex` out of every list and say so.

### 2. Load current state

The default role-to-model mapping is the file shape shown in step 5 below. If `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/keel-models.md` already exists, read it and treat its role values as the current choices. Otherwise start from those defaults. A line whose role is not in step 5, such as `hardest tasks`, `how explorer`, `how explainer`, `why investigators`, `why synthesizer`, `reflect tooling`, `reflect judgment, divergent, synthesizer`, or `architect runners`, is from a retired role. Drop it. A `# budget` or `# defaults` line is from the Cursor version. Drop it too, since Claude Code subagents have no reasoning budget to set and keel keeps no defaults marker.

### 3. Map and confirm

**(a) Build the table.** Start from the skill defaults, and on a re-run keep any role the user changed. A value that is not one of the aliases in step 1 (such as a vendor slug copied from the Cursor rule) needs a choice. Suggest the default for that role. A value may end in an effort, one of `low`, `medium`, `high`, or `xhigh`, as `swarm workers: opus high` does. No role runs above `xhigh`, so an effort of `max` needs a choice too.

**(b) Show the roles and confirm.** Show every role with its model, marking any value that needs a choice. Also list each line step 2 dropped. Ask whether to accept as-is or change specific roles, offering `opus`, `sonnet`, `haiku`, `fable`, and `inherit`, plus `codex` for panel roles when step 1 found it. Prefer AskUserQuestion over free text. It takes at most four options per question and adds an "Other" choice itself, so put the four most likely values first. For panel roles (arena runners, interrogate reviewers) the value is a list, and one reviewer runs per entry, alias entries included, so the list length sets the count. Three different Claude models give a panel its diversity. `codex` belongs only in `interrogate reviewers`, since arena runners must write files through the Agent tool. `arena cross-judge pool` is also a list, but Arena runs one judge. It tries only values that name a different model from the parent's, in list order, so order it by preference. An `inherit`, `inherit-parent`, or `auto` value never judges. `swarm workers` is the default model for every worker unless a race or comparison assigns another model per arm.

### 4. Validate

Every value written must be `opus`, `sonnet`, `haiku`, `fable`, `inherit`, `inherit-parent`, or `auto`, or `codex` inside `interrogate reviewers` when step 1 found it. An alias may be followed by an effort of `low`, `medium`, `high`, or `xhigh`, and never `max`. If a chosen value is not valid, stop and ask again.

### 5. Write the file

Write `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/keel-models.md` with one line per role, using the same labels the lead skill uses. Overwrite the whole file so re-runs stay idempotent. Shape:

```
# keel model configuration. One line per role. Delete a line to fall back to the skill default.
# Values: opus, sonnet, haiku, fable, optionally followed by an effort (low, medium, high, xhigh). No role runs above xhigh. `inherit` (or `inherit-parent`, `auto`): the role runs on the parent model (omit the Agent call's `model`). Alias entries in a panel list still count toward its fan-out.
# `codex` (interrogate reviewers only): a cross-vendor reviewer run from Bash with the OpenAI Codex CLI.
feature, refactoring: inherit
bug-fix: inherit
perf-issue: inherit
hillclimb: inherit
judgment and prose: inherit
arena runners: opus, fable, sonnet
arena cross-judge pool: opus, sonnet
swarm workers: opus high
interrogate reviewers: opus, fable, sonnet, codex
```

When step 1 found no `codex`, write `interrogate reviewers: opus, fable, sonnet`.

### 6. Confirm

Tell the user the file was written and that keel skills read it on their next spawn, in this session and new ones. Re-running this skill updates it.

### 7. Offer a verification skill (optional)

Check whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: "want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with /keel:create-verification-skill." On yes, run the **create-verification-skill** skill. The Skill tool refuses keel skills, so read `${CLAUDE_SKILL_DIR}/../create-verification-skill/SKILL.md` and follow it. On no, move on without pushing.

### 8. Offer a formal verification skill (optional)

Check whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: "want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with /keel:create-formal-verification-skill." On yes, run the **create-formal-verification-skill** skill. The Skill tool refuses keel skills, so read `${CLAUDE_SKILL_DIR}/../create-formal-verification-skill/SKILL.md` and follow it. On no, move on without pushing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.