Upgrades the Chief framework to a specific version (stable, canary, or tagged). Handles cloning, running upgrade scripts, and merging AGENTS.md with user-owned content preservation.
Ships in chief-skills. 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.
Upgrade the Chief to the version specified in the arguments.
The first argument is the target version (branch or tag). Optional.
git ls-remote --tags https://github.com/thaitype/chief.git, strip refs/tags/, ignore ^{} entries, and pick the highest semver version.canary → latest canary branch (active development, unreleased)v1.0.0, v2.0.0, etc. → specific tagged versionDetect which coding agent the user has set up:
.claude/agents/ exists → suggest claude-code.github/agents/ exists → suggest copilot.agents/ exists → suggest opencodeDetect install mode:
Ask the user to confirm agent and mode.
git clone --depth 1 --branch <version> https://github.com/thaitype/chief.git .chief-agent-tmp
Run the upgrade script plan:
bash .chief-agent-tmp/scripts/upgrade.sh --plan --agent <agent> --mode <mode>
Then separately diff AGENTS.md (the script does not handle this file):
diff AGENTS.md .chief-agent-tmp/template/AGENTS.md
Show both outputs to the user. For AGENTS.md, explain:
Ask the user to review. They may:
bash .chief-agent-tmp/scripts/upgrade.sh --agent <agent> --mode <mode>
Then merge AGENTS.md manually. Use this priority order:
If the user's AGENTS.md contains <!-- chief-framework:begin --> and <!-- chief-framework:end --> markers (new lazy-install convention):
.chief-agent-tmp/template/AGENTS.md.Else if the user's AGENTS.md has a ## Project Rules section (legacy v4 layout):
## Project Rules to the next --- as user-owned.Else (no markers, no Project Rules section):
Show the user the merged result and get confirmation before writing.
.chief/ (project.md, milestones, rules) is never touched by upgrade — it is user state, even when empty.
If upgrade.sh succeeds, skip to step 6.
If upgrade.sh fails, proceed to step 5.
Perform the upgrade manually, same as chief-install fallback pattern:
Overwrite agent files — For each .chief-agent-tmp/template/.agents/agents/*.md:
model: value from the local file${thinking_model} and ${coding_model} with extracted model valueUpdate integration files based on agent and mode:
claude-code link:
for f in .agents/agents/*.md; do ln -sf "../../$f" ".claude/agents/$(basename "$f")"; done
claude-code copy:
cp .agents/agents/*.md .claude/agents/
copilot link:
for f in .agents/agents/*.md; do ln -sf "../../$f" ".github/agents/$(basename "$f")"; done
copilot copy:
cp .agents/agents/*.md .github/agents/
Other agents — no integration files needed.
Model placeholders — If any file still has ${thinking_model} or ${coding_model}:
opus/sonnetCheck that all expected files exist and symlinks resolve (if link mode). Fix any issues found.
rm -rf .chief-agent-tmp
Report what was changed, what was skipped, and any manual steps remaining.
.chief-agent-tmp/. NEVER write to /tmp, session dirs, home dirs, or any other location outside the repo..chief/ milestones (goals, contracts, plans, reports).chief-agent-tmp even if the upgrade is cancelledWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/chief-skills:chief-upgradefrom chief-skills
npx claudepluginhub thaitype/chief --plugin chief-skills15 skills in this plugin
/chief-autopilotRun chief-agent in full autopilot. Requires goals and contracts to exist. Chief creates TODO, delegates to builder, and repeats until milestone is done. Auto mode makes all decisions autonomously; safe mode stops on ambiguity. Use "/chief-autopilot" for auto or "/chief-autopilot safe" for safe mode./chief-grillDeep grill that interviews the user one question at a time AND verifies each answer against the codebase via background `answer-verifier-agent` calls. Catches factual conflicts, contradictions with prior decisions, and unfounded assumptions inline. Persists the session to `.chief/_grill/opened/NNNN-topic.md` so it survives context compaction. Use when the user wants a stress-tested grill — when stakes are high, when claims must be cross-checked against actual repo state, or when the topic spans many decisions. Heavier than `/grill-design`; prefer this when correctness matters more than speed./chief-initOther plugins' skills for the same job