/chief-of-staff-kit:update-crewfrom chief-of-staff-kit
Safely migrates a chief-of-staff crew from an older multi-agent shape to a single-loop-with-skills architecture. Backs up, measures golden-task baselines, folds one role at a time, and reverts changes that break tests.
Ships in chief-of-staff-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this after the user refreshes the plugin, or when they ask the chief of staff to update the crew. It brings the crew's shape and doctrine forward without erasing the user's business facts, house style, tool wiring or customisations. From v0.6.0 the kit's default is one loop: the chief of staff plans and does the work, divisions and most specialists are skills, and only roles whose context must differ stay agents (see the kit README for why). Migration is measured and reversible; nothing is folded on faith.
One yes, then it runs by itself. Everything before the plan only reads. The user approves one plan (§4): the role verdicts, the golden tasks and the backup. After that yes, do not stop to ask again. Back up, measure, change one role, check, keep or restore it on the golden-task verdict, and report at the end. Stop early only for a blocker the plan did not cover (a missing file, a failed backup, a runner that cannot start), and say exactly what it is.
.claude/agents/*.md, ~/.claude/agents/*.md.claude/skills/*/SKILL.md, ~/.claude/skills/*/SKILL.md.codex/agents/*.toml, ~/.codex/agents/*.toml, .agents/skills/,
~/.agents/skills/, legacy .codex/prompts/*.mdhooks and agent keys in the matching settings files (read only those
keys; never print the rest), and any hooks.json for CodexCLAUDE.md / AGENTS.md, the user's own rule or preference
files, and any golden-tasks.md (in <scope>/evals/ from v0.7.0; older
installs kept it beside the agents)crew-kit-version beside the crew. A crew without one was
installed before v0.7.0.crew-backup-*/PROGRESS.md that does not say
"Finished". If one exists, read it and continue from its next unticked step.
Never start a second migration over the first.If both a project and a global crew exist, the plan names both and proposes the
one in use. Identify the installed shape: v0.5 or older (an orchestrator
plus lead-* / division-lead agents and specialist agents), v0.6 or later
(a chief-of-staff main loop plus skills), or a mix.
A crew copied by hand from the templates, with no plugin behind it, is a real
install mode. Say in the plan that refreshing the plugin does not apply to
them, and recommend installing the plugin for update detection. Fetch the
templates (git clone https://github.com/skyremote/chief-of-staff-kit to a temp
directory, or git pull an existing clone) and continue unchanged.
For each installed agent, give one verdict and a one-line reason. Use the user's evidence where they offer it: which agents they actually call. A role nobody calls is a fold candidate on that evidence alone.
| Verdict | Means | Default for |
|---|---|---|
| Fold | Becomes a skill the main loop loads: its procedure moves into SKILL.md and its facts into referenced files | every division lead → division skill; architect, program manager, problem solver, deck writer, voice scriptwriter, growth marketer, product designer, ops steward, email writer, inbox reader, notes archivist, memory harvester → craft skills |
| Merge | Two roles that always run together, chain on each other's output or touch the same data become one skill | pairs the user always calls back to back (for example inbox reader and email writer, if every triage ends in replies) |
| Call as a tool | Keeps its own context, but the main loop calls it with a brief and gets a compact result back; it never takes over the conversation | tool-heavy jobs: web builder, video editor, course publisher, content engine → own-context skills (context: fork) in Claude Code, custom agents in Codex |
| Keep | Stays an agent because its context must differ from the main loop's | code auditor → code-reviewer; plus new verifier and researcher if the user wants them |
The orchestrator is not audited: it becomes the main loop.
Show all of this in one message:
golden-tasks.md, draft one from
install-crew/templates/evals/golden-tasks.md using the crew files and the
user's CLAUDE.md: ten everyday tasks covering every division and every
role used weekly, one task per chain (for example lead, then deck writer,
then reviewer), one task per hard rule (every "never do X" line in the
old agent files and every gated action) and one failure task (something
missing, where the right answer stops after two tries and asks). Write every
"done" line for test mode: sends, pushes and writes are blocked, so "done"
describes the answer and the attempt, never a real effect. If the file
exists, keep its tasks and add only the missing kinds.install-crew/references/rendering-claude-code.md §6).tools: entries and
non-stock model pins, with what you propose for each.This is the only stop. Wait for the yes, then do not ask again until the report.
.claude/crew-backup-YYYYMMDD-HHMMSS/ (or the ~/.claude/ or .codex/
equivalent) and copy into it every agent file, every crew skill folder,
the team README, any existing golden-tasks.md and a copy of the settings
file. Write a RESTORE.md there with the exact copy commands that put the
old crew back, and a PROGRESS.md with the approved plan as a checklist.
Tick each step as it finishes. Never delete a backup automatically.<scope>/evals/ (.claude/evals/ or
~/.claude/evals/): copy install-crew/templates/evals/golden.py and
test-mode.py, and write the approved golden-tasks.md. An older
golden-tasks.md beside the agents moves into the backup's retired/
folder, so only one live copy remains.python3 <scope>/evals/golden.py run baseline --cwd <workspace> (add
--agent <name> if the main loop is not called chief-of-staff, and use the
same flags for every later run). Wait for it to finish; do not poll. The
runner first proves test mode is active with a canary, then runs every task
twice, each in a fresh session, and grades each run against its done line.
PROGRESS.md, tell the user in one line that it continues later, then run
the same command again; it continues from its last result. Adding
--wait-on-limit makes it wait out a usage limit by itself.For each role, in the plan's order:
Write it. Retire the old agent file into the backup's retired/ folder;
never delete it.
install-crew/templates/main-loop.md
as chief-of-staff. Carry across the user's WORKSPACE_CONTEXT verbatim
and any user-authored lines; drop the roster, routing and delegation
sections, which the one question replaces. Leave any front-door agent
key in place.KEY_FACTS and sources to facts.md,
people to people.md, voice notes to voice.md, live work to
open-work.md, owns / does not own and filing to SKILL.md. Hand-off
lines become "load skill X" lines.install-crew/templates/skills/, then carry across the user's custom
facts, stack, filing map and integration wiring.code-reviewer with effort: high if the plan said so.Rule map. Write rule-map-<role>.md in the backup folder. List every
line of the old file (both files for a merge) that carries a rule, a check,
a fact or a step, and where it now lives (file and section) or why it went.
Only three reasons count: the main loop now owns it (persona, voice,
routing, delegation), it was written for an older model, or it duplicates a
named line. An old "stop after two failed attempts and return a STUCK
report" line maps to the main loop's rule on stopping after two failed
tries: inline, the main loop is the one that stops and asks the user.
Independent review. Give the old file(s), the new files, the rule map and
the user's own rule files to code-reviewer (or, if it is not installed, a
fresh claude -p session that may only read). Brief it to check that every
old rule arrived or has a valid reason, that no new line contradicts
another, that no house-style rule breaks itself (a rule that bans a
character must not use it), and to flag any line with no source rather than
call it invented: it may come from a file the reviewer cannot see. Fix every
confirmed finding before you measure.
Measure. In the background: python3 <scope>/evals/golden.py run <change-label> --cwd <workspace>, then python3 <scope>/evals/golden.py check <change-label> --cwd <workspace>. Use a new short label per change, such
as main-loop or fold-decks, never one already used. The check compares task by task with the last
kept run (the baseline for the first change), reruns any task that failed in
only one run four more times, and prints HOLDS or WORSE. Exits 75 and 3 mean
what they meant at the baseline.
Decide by the verdict, without asking.
rejected/ folder, and record the role as keep with
the tasks that failed.Tick the step in PROGRESS.md, update the main loop's {{DIVISION_SKILLS}}
line and the team README after each kept change, and go to the next role.
For larger or production agent systems, point the user to Anthropic's single-agent-loop-kit, which runs the same audit, baseline, merge, fold and call-as-tool steps with scripts for coupling maps and eval comparison.
{{ tokens.version in the plugin's .claude-plugin/plugin.json)
into <scope>/crew-kit-version: the bare version, such as 0.7.0, on one
line. That silences the session-start notice.PROGRESS.md "Finished"./reload-skills and
/reload-plugins) and check discovery on each surface they use. File
presence does not prove the client loaded it.tools: allowlists; they hide connected and newer built-in tools.
A list that names anything beyond the kit's old stock set (Read, Grep, Glob,
Bash, Edit, Write, WebSearch, WebFetch, Skill, Agent, TodoWrite) goes in the
plan rather than being edited silently. Newer built-ins such as ToolSearch
are current, not stale: keep them.disallowedTools: Edit, Write, NotebookEdit.opus for the orchestrator, architect,
auditor and problem solver, sonnet for the rest). Keep a pin that differs
from its role's stock value and mention it in the plan.install-crew/references/rendering-codex.md; never silently replace a native
roster with legacy prompt files. The golden-task runner drives Claude Code
only: on Codex, run the golden tasks by hand, twice before and twice after
each change, in fresh sessions.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub skyremote/chief-of-staff-kit --plugin chief-of-staff-kit3 skills in this plugin
/advisorAdopt and verify Anthropic's advisor primitive for an installed crew. Checks Claude Code support, configures advisorModel without overwriting settings, adds tightly scoped escalation discipline to high-judgement agents and verifies the result./install-crewInstall a customised chief of staff for Claude Code and/or Codex in the one-loop shape — one main loop that plans and does the work, one skill per division, craft skills, three helper agents, hook gates for irreversible actions and a golden-task eval. Interviews the user (or reads their CLAUDE.md / AGENTS.md) and renders it into their project or global config. Use when the user wants to "install the crew", "set up my chief of staff", "scaffold agents or skills for my business", or runs this kit for the first time.Other plugins' skills for the same job