mise
Skill76 starsChanged 4 months agoMITView on GitHub
Mise en place - setup and health check. Verifies Codex CLI and auth, installs the delegation profile, scaffolds AGENTS.md, and offers the routing policy. Re-run anytime, and after plugin updates to refresh the profile. Use when the user asks to set up sous-chef, or when another sous-chef skill fails because Codex or the profile is missing.
- Pipes a download into a shell
- Reads credentials
- Installs packages
6 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- dstotijn/agent-skillstheir own version, first seen Sep 21, 2026
- petr-korobeinikov/skillstheir own version, first seen Jun 28, 2026
- aaronflorey/agent-skillstheir own version, first seen Apr 23, 2026
- markpitt/claude-skillstheir own version, first seen Nov 22, 2025
- ivy/dotfilestheir own version, first seen Oct 16, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- markpitt/claude-skills★ 23same name
- fmind/dot★ 10same name
- ivy/dotfiles★ 9same name
- aaronflorey/agent-skills★ 2same name
- dstotijn/agent-skills★ 1same name
- petr-korobeinikov/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 5 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Every other skill assumes a chain: CLI → auth → profile → repo standards → routing policy, proven by a smoke test.
- Very specific: line 35
Not logged in (exit 1) → tell the user to run codex login in a separate terminal (it's an interactive browser flow), then re-run …
- Very specific: line 43
Check [ -n "$CODEX_API_KEY" ] || [ -n "$CODEX_ACCESS_TOKEN" ]: these two env vars override the login in codex exec, which is why sous-chef …
- Very specific: line 50
If ~/.codex/sous-chef.config.toml does not exist, copy it from the plugin:
- Very specific: line 56
If it exists, diff it against the plugin's copy: identical → say so and move on.
- Very specific: line 75
If set, say so and offer to add service_tier = "default" to the sous-chef profile (there's a commented line ready in the file).
- Very specific: line 83
If the current repo has no root AGENTS.md: offer to create one from ${CLAUDE_PLUGIN_ROOT}/templates/AGENTS.template.md, filled in from what …
- Distinctive: line 84
If AGENTS.md exists: leave it.
- Distinctive: line 128
If no block exists, fold one routing question into the existing batched AskUserQuestion round:
- Distinctive: line 143
If the autonomous block was installed, run the follow-ups:
- Very specific: line 144
Ask before adding Bash(env -u CODEX_API_KEY -u CODEX_ACCESS_TOKEN codex exec*) to permissions.allow in ~/.claude/settings.json, creating …
- Very specific: line 148
Read-only check ~/.claude.json for skillUsage entries for the four skills autonomous routing self-triggers - sous-chef:serve, …
- Distinctive: line 154
If their CLAUDE.md already mandates a pre-commit review or commit gate, point out that simmer makes per-lap checkpoint commits and taste is …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mise en place - set up the kitchen before service
Every other skill assumes a chain: CLI → auth → profile → repo standards → routing policy, proven by a smoke test. Mise walks that chain and makes each link true. Open with the plan so the user knows the shape: "Four checks, at most a couple of questions, one ~30s smoke test." Report each check as pass/fixed/needs-user, batch any questions into a single AskUserQuestion call rather than interrogating one at a time, and never overwrite an existing file without asking.
1. Codex CLI present and current
codex --version- Missing → offer to install it for the user (
npm i -g @openai/codexorbrew install codex); if they decline or it fails, stop here and tell them to re-run/sous-chef:miseafter installing. - Version below 0.134.0 → warn: this plugin uses file-per-profile config
(
~/.codex/sous-chef.config.toml). Older Codex only reads[profiles.*]tables from config.toml, which 0.134+ silently ignores - ask the user to upgrade rather than shipping a config that does nothing.
2. Auth
codex login status- Not logged in (exit 1) → tell the user to run
codex loginin a separate terminal (it's an interactive browser flow), then re-run/sous-chef:mise. Stop here - the remaining steps end in a smoke test that would fail confusingly without auth. - Logged in with ChatGPT (the normal, recommended setup - no API key needed): all good; delegated runs bill the subscription and tokens auto-refresh, even mid-run.
- Logged in with an API key instead: warn that usage bills at per-token API rates and some models available on ChatGPT plans (GPT-5.5 included) may not be available at all under API-key auth.
- Check
[ -n "$CODEX_API_KEY" ] || [ -n "$CODEX_ACCESS_TOKEN" ]: these two env vars override the login incodex exec, which is why sous-chef invocations unset them - mention it if either is set. (OPENAI_API_KEYis harmless; current Codex doesn't read it for auth.)
3. Delegation profile
If ~/.codex/sous-chef.config.toml does not exist, copy it from the plugin:
cp "${CLAUDE_PLUGIN_ROOT}/codex/sous-chef.config.toml" ~/.codex/sous-chef.config.tomlIf it exists, diff it against the plugin's copy: identical → say so and move on;
differs only in comments or blank lines (compare grep -vE '^\s*(#|$)' of both) →
refresh it without asking and say so - doc-only drift is not a question worth the
user's attention; effective settings differ → show the diff and ask whether to keep
theirs or refresh (this is also the update path when the plugin ships profile
changes). The profile intentionally sets
only execution-safety settings (approval policy, sandbox mode, network access) -
model and reasoning effort fall through to the user's ~/.codex/config.toml, which
is where they should live. If the user has no model configured there, suggest
model = "gpt-5.6-sol" and model_reasoning_effort = "xhigh" for implementation-grade
delegation (gpt-5.6-terra, advertised as 5.5-class output at 40% of the API-list
price). Warn that 5.6's ultra mode multiplies token spend by design and should
stay off for delegated background runs.
Also check ~/.codex/config.toml for a service_tier set to anything but
"default". Premium tiers flow into delegated background runs: "fast" burns
credits at 2.5x (GPT-5.6/5.5) for a 1.5x speedup, and "priority" bills 2x the
standard API token rate whenever the run's auth is an API key - paying double for
latency a background run mostly doesn't need.
If set, say so and offer to add service_tier = "default" to the sous-chef profile
(there's a commented line ready in the file); their interactive sessions stay fast
either way. Fold this into the batched question round.
4. Repo AGENTS.md - the standing orders
Codex rebuilds its instruction chain from AGENTS.md on every run, including non-interactive codex exec. That makes it the one place repo standards reach the sous-chef automatically.
- If the current repo has no root
AGENTS.md: offer to create one from${CLAUDE_PLUGIN_ROOT}/templates/AGENTS.template.md, filled in from what you can read in the repo (real build/test/lint commands, real entry points - verify each command exists in package.json/Makefile/pyproject before writing it). - If
AGENTS.mdexists: leave it. - Bridge it for Claude: the repo's
CLAUDE.mdshould contain the line@AGENTS.mdso both models read the same standards. Add the line (or create a minimal CLAUDE.md containing it) with the user's OK. A symlinkCLAUDE.md -> AGENTS.mdalso works if there's no Claude-specific content. - Note: fire needs a git repo with at least one commit - if this directory isn't one, say so now.
5. Alternate workers (optional second implementer)
Claude Sonnet 5 route (no setup): nothing to install - claude -p --model
claude-sonnet-5 on the user's own subscription is always available as a
fallback worker (see fire's references/worker-routes.md, Route C). Mention it
only if the user asks, or when Codex auth/quota is the reason mise was re-run.
Grok 4.5 route: skip silently unless command -v grok succeeds or the user
asked about Grok. Asked but not installed → offer the official installer
(curl -fsSL https://x.ai/cli/install.sh | bash). When present, check auth
with grok models - exit 0 and its first line names the login; not logged
in → tell the user to run grok login in a separate terminal (an interactive
browser flow), then re-run /sous-chef:mise. Nothing else to install: the
route rides entirely on flags (fire's references/worker-routes.md, Route D),
including --sandbox workspace - a real OS sandbox the claude -p worker
routes lack.
GLM-5.2: skip silently unless ZAI_API_KEY or OPENROUTER_API_KEY is set in the
environment, or the user asked about GLM. When it applies:
ZAI_API_KEYset → route A, Claude-headless worker: if~/.sous-chef/glm-claude/settings.jsondoes not exist,mkdir -p ~/.sous-chef/glm-claude && cp "${CLAUDE_PLUGIN_ROOT}/templates/glm-claude-settings.json" ~/.sous-chef/glm-claude/settings.json; if it exists, leave it and say so.OPENROUTER_API_KEYset → route B, Codex profile: if~/.codex/sous-chef-glm.config.tomldoes not exist, copy it from${CLAUDE_PLUGIN_ROOT}/codex/- the file is self-contained (it carries its own[model_providers.openrouter]block); if it exists, leave it and say so.
Details and invocations: ${CLAUDE_PLUGIN_ROOT}/skills/fire/references/worker-routes.md.
6. Routing policy (pick a mode, once per machine)
Detection first: if ~/.claude/CLAUDE.md exists, grep it for
Division of labor (sous-chef. A heading with manual routing is manual, a heading
with autonomous routing is autonomous, and a heading with no mode suffix is legacy
manual. If a block exists, say which mode is installed and offer to switch by replacing
that block with the other template; never append a duplicate. If the user declines,
leave it.
If no block exists, fold one routing question into the existing batched AskUserQuestion round:
- Manual (recommended) - skills run when the user invokes them or accepts a one-line offer; today's behavior.
- Autonomous - Claude routes task-shaped work to serve/fire/taste/refire itself by invoking the Skill tool, announcing in one line first; simmer stays explicit-ask.
- Skip.
Manual appends ${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.routing-manual.md; autonomous
appends ${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.routing-auto.md. If the user has no
global CLAUDE.md at all, offer ${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.global.example.md
as the slim starting point - it carries no routing block, just a placeholder comment
the chosen template replaces. Its Environment section is placeholder text they must
edit to match their machine.
If the autonomous block was installed, run the follow-ups:
- Ask before adding
Bash(env -u CODEX_API_KEY -u CODEX_ACCESS_TOKEN codex exec*)topermissions.allowin~/.claude/settings.json, creating the file/key if absent. Permission prompts still gate delegated runs; without this rule, autonomous routing stops at a dialog on the first fire - noisier, not broken. - Read-only check
~/.claude.jsonforskillUsageentries for the four skills autonomous routing self-triggers -sous-chef:serve,sous-chef:fire,sous-chef:taste,sous-chef:refire. Report any missing entries and tell the user each missing skill needs one manual invocation to register. Never write~/.claude.json.
If their CLAUDE.md already mandates a pre-commit review or commit gate, point out
that simmer makes per-lap checkpoint commits and taste is a second review layer - let
them decide how the pieces stack before they collide mid-loop.
7. Smoke test
SMOKE="$SCRATCHPAD/mise-smoke.log" # $SCRATCHPAD = your session scratchpad directory - substitute its absolute path
test -f ~/.codex/sous-chef.config.toml && \
env -u CODEX_API_KEY -u CODEX_ACCESS_TOKEN codex exec --profile sous-chef --skip-git-repo-check \
-c model_reasoning_effort=low "Reply with exactly: MISE OK" > "$SMOKE" 2>&1; \
tail -5 "$SMOKE"; grep -m1 'model:' "$SMOKE"; grep -m1 'sandbox:' "$SMOKE"Success = the output contains MISE OK AND the banner's sandbox: line says
workspace-write - that second check proves the profile actually loaded, because
Codex silently ignores a missing profile file and would happily run under the
user's own defaults. Use effort low, not minimal (minimal 400s when the user's
config enables tools like web_search); --skip-git-repo-check keeps the test
working outside a git repo. On failure, show the log tail and the likely cause
(auth, profile syntax, version).
Finish with a one-screen summary: what passed, what was installed, which model and effort delegated runs will use (the banner's model: line is ground truth for the model; effort falls through to ~/.codex/config.toml - the smoke test pins its own to low), and what the user still needs to do. If ~/.sous-chef/ledger.jsonl exists, close with the running tab - jq -s '{jobs: length, tokens: (map(.tokens) | add)}' ~/.sous-chef/ledger.jsonl - delegated jobs to date and the tokens they kept off Claude.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

