chief-upgrade

chief-upgrade is a skill for Claude Code from thaitype/chief. It costs 54 tokens per session (1,331 once invoked), scanned C, original, MIT.

A guide for upgrading the Chief framework to a chosen version, such as a release tag or development branch. It checks the local setup and uses an upgrade script before falling back to manual steps if needed.

In plain words
What is it for?
It helps upgrade the framework to the latest stable version, a canary branch, or a specific version while checking the configured coding agent and file-linking method.
Why use it?
It reduces the risk of upgrading the wrong agent setup or installation style. Reviewing the planned changes helps identify effects on project instructions before applying them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions AGENTS.md; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .chief-agent-tmp/scripts/upgrade.sh --plan --agent <agent> --mode <mode>.

Part of the chief-skills plugin — 15 skills shipped together

Good fit It helps upgrade the framework to the latest stable version, a canary branch, or a specific version while checking the configured coding agent and file-linking method.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/thaitype/chief
agentmods
npx agentmods add skills/thaitype/chief/chief-upgrade

Made for: Claude Code.

Or install chief-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chief-upgrade

README.md
[![agentmods](https://agentmods.dev/badge/skills/thaitype/chief/chief-upgrade/github.svg)](https://agentmods.dev/skills/thaitype/chief/chief-upgrade)
Your own site
<a href="https://agentmods.dev/skills/thaitype/chief/chief-upgrade"><img src="https://agentmods.dev/badge/skills/thaitype/chief/chief-upgrade/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chief-upgrade

Your own site · 80×15
<a href="https://agentmods.dev/skills/thaitype/chief/chief-upgrade"><img src="https://agentmods.dev/badge/skills/thaitype/chief/chief-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,331 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01331
Opus 5.5 $0.00022 $0.00532
Sonnet 5.5 $0.00011 $0.00266
Haiku 4.5 $0.00005 $0.00133

Measured 2mo ago against content hash 0eaee180d694, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

chief-upgrade scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .chief-agent-tmp
skills/setup/chief-upgrade/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upgrade the Chief to the version specified in the arguments.

Arguments

The first argument is the target version (branch or tag). Optional.

  • No argument → upgrade to the latest stable release (highest semver tag). Find it by running 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 version

Steps

0. Detect coding agent and install mode

Detect which coding agent the user has set up:

  1. .claude/agents/ exists → suggest claude-code
  2. .github/agents/ exists → suggest copilot
  3. Only .agents/ exists → suggest opencode

Detect install mode:

  1. Any file in the agent-specific directory is a symlink → link
  2. Files are regular files → copy
  3. No agent-specific directory → suggest link

Ask the user to confirm agent and mode.

1. Clone target version

git clone --depth 1 --branch <version> https://github.com/thaitype/chief.git .chief-agent-tmp

2. Run upgrade.sh --plan and diff AGENTS.md

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:

  • The Project Rules section at the top is user-owned — NEVER overwrite it.
  • Everything below (Rules Hierarchy, Chief, etc.) is framework content that may need updating.

3. Wait for user approval

Ask the user to review. They may:

  • Approve all
  • Cancel
  • Ask for more detail on a specific file

4. Run upgrade.sh (apply) and merge AGENTS.md

bash .chief-agent-tmp/scripts/upgrade.sh --agent <agent> --mode <mode>

Then merge AGENTS.md manually. Use this priority order:

  1. If the user's AGENTS.md contains <!-- chief-framework:begin --> and <!-- chief-framework:end --> markers (new lazy-install convention):
    • Replace everything between the markers with the contents of .chief-agent-tmp/template/AGENTS.md.
    • Keep everything outside the markers exactly as-is.

Read the full file on GitHub · 151 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 151 lines · 54 tokens per session scan C 0eaee180d694

Subscribe to this mod's changes

chief-upgrade is a skill published in the GitHub repository thaitype/chief (68 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 1,331 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

chief-upgrade compared with skills from other repositories

chief-upgrade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chief-upgradethaitype/chiefSkill681mo agoMITC54Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code