Installs the Chief framework into a project: subagents and AGENTS.md only. Supports version selection and multiple coding agents.
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.
Install the Chief framework into the current project.
This is a lazy install: only subagents and AGENTS.md are placed at install time. .chief/ (project.md, milestones, rules) is created on demand by chief-agent — run /chief-init to bootstrap project context, or just start with /chief-plan.
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 versionCheck if the Chief is already installed by looking for these signals:
.agents/agents/chief-agent.md existsAGENTS.md at root contains the keyword "Chief" or "chief-agent" (check file content, not just existence — these files may exist from other setups)If any of these match → the framework is likely already installed. Warn the user and suggest upgrading instead. Show them:
npx skills@latest add thaitype/chief --skill chief-upgrade
/chief-upgrade
Do NOT proceed unless the user explicitly confirms they want a fresh install.
If none match → proceed.
Ask the user:
claude-code, opencode, codex, cursor, copilot, gemini-cli, amp, windsurf, kiro, aiderclaude-code and copilot)
.agents/git config --global core.symlinks true. If unavailable, suggest copy mode.AGENTS.md and .agents/ directlygit clone --depth 1 --branch <version> https://github.com/thaitype/chief.git .chief-agent-tmp
bash .chief-agent-tmp/scripts/setup.sh --agent <agent> --mode <mode>
The script installs:
.agents/agents/*.md — subagent definitions (chief, builder, tester, review-plan)AGENTS.md — framework rules (Fresh write if absent; appended in a <!-- chief-framework:begin --> block if AGENTS.md already exists).claude/agents/, .github/agents/) for claude-code / copilotIt does NOT create .chief/. That is intentional.
If the setup script fails completely (non-zero exit code or crashes), skip to step 3b for full manual install. Do NOT run rm -rf .chief-agent-tmp yet — it's needed for manual steps.
If the setup script succeeds, proceed to step 4.
If the setup script failed, perform the entire install manually:
# Subagent definitions (canonical)
cp -r .chief-agent-tmp/template/.agents .agents
Install AGENTS.md (Fresh-or-Append):
if [ ! -f AGENTS.md ]; then
cp .chief-agent-tmp/template/AGENTS.md AGENTS.md
elif ! grep -qF "<!-- chief-framework:begin -->" AGENTS.md; then
{
echo ""
echo "<!-- chief-framework:begin -->"
cat .chief-agent-tmp/template/AGENTS.md
echo "<!-- chief-framework:end -->"
} >> AGENTS.md
fi
For claude-code only, set up Claude Code integration:
Link mode:
ln -s AGENTS.md CLAUDE.md
mkdir -p .claude/agents
for f in .agents/agents/*.md; do ln -s "../../$f" ".claude/agents/$(basename "$f")"; done
Copy mode:
cp AGENTS.md CLAUDE.md
mkdir -p .claude/agents
cp .agents/agents/*.md .claude/agents/
For copilot only, set up GitHub Copilot integration:
Link mode:
mkdir -p .github/agents
for f in .agents/agents/*.md; do ln -s "../../$f" ".github/agents/$(basename "$f")"; done
Copy mode:
mkdir -p .github/agents
cp .agents/agents/*.md .github/agents/
For all other agents — no extra steps needed.
For non-claude-code agents, ask the user for model names:
o3, gemini-2.5-pro)gpt-4.1, gemini-2.5-flash)Replace ${thinking_model} with the Thinking Model in chief-agent, and ${coding_model} with the Coding Model in all other agent files. For claude-code, auto-replace with opus and sonnet (no prompt needed). For copilot, update files in .github/agents/. For other agents, update files in .agents/agents/.
Skip any file that already exists (warn the user).
After the setup script or manual install completes, verify:
Subagent files exist:
.agents/agents/chief-agent.md.agents/agents/builder-agent.md.agents/agents/tester-agent.md.agents/agents/answer-verifier-agent.mdreview-plan-agent.md is deprecated and is not installed for new projects. Existing installs that still have it locally are left untouched on upgrade.
AGENTS.md exists and contains chief framework content (either the whole file or a <!-- chief-framework:begin --> block).
Claude Code only (if agent is claude-code):
CLAUDE.md exists (symlink or copy depending on mode).claude/agents/ contains entries for all 4 agentsCopilot only (if agent is copilot):
.github/agents/ contains entries for all 4 agents (symlinks or copies depending on mode).chief/ is not expected to exist after install — do not flag its absence.
If any verification check fails, fix it manually:
.chief-agent-tmp/template/.agents/agents/ if it still exists, otherwise clone again and copy the specific fileln -s AGENTS.md CLAUDE.md) or copy depending on modemkdir -p .claude/agents
ln -s ../../.agents/agents/<file>.md .claude/agents/<file>.md
Ensure .chief-agent-tmp is removed:
rm -rf .chief-agent-tmp
Tell the user:
/chief-init to bootstrap .chief/project.md with your tech stack and dev commandsAGENTS.md and customize if needed/chief-plan (or ask chief-agent directly).chief/ and its subfolders will be created automatically as you work — milestone folders, rule subfolders, and reports are all written on first need.
AGENTS.md already exists and contains content, append the chief block; do NOT overwrite/chief-upgrade instead.chief-agent-tmp even if the install is cancelled or fails.chief/ at install — that is now lazyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 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-init/chief-skills:chief-installfrom chief-skills
npx claudepluginhub thaitype/chief --plugin chief-skillsOther plugins' skills for the same job