Skip to content

thaitype/chief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chief ⚔️

English | ไทย

A portable framework that reduces the cognitive load of working with AI coding agents — without sacrificing quality or speed.

Chief is part of the chief-tribe ecosystem. It uses sage as its behavioral baseline.

Under the hood, Chief is just markdown files. It defines structure for your AI agents to follow.

You're currently on v3 docs. If you have v1 or v2 installed, follow the upgrade instructions below or see the v1 docs. Chief was previously known as chief-agent-framework.

Chief is a structured workflow for AI coding agents. You define rules and goals once, and agents handle planning, building, and verification across sessions — milestone by milestone.

When you use AI on a real project, the challenge isn't writing code — it's the constant decision-making. Which architecture, which pattern, which direction next. Every AI interaction is a decision. The more you rush, the more you skip, and the more tech debt follows.

Chief externalizes those decisions into a system:

  • A planning agent breaks work into milestones and tasks
  • A builder agent implements them
  • A tester agent verifies the results
  • A review agent can check plans for contradictions when you want a second opinion

Built for developers already using AI coding agents who want a structured workflow instead of ad-hoc prompting. Learn more about the design philosophy.

Supported Coding Agents

Coding Agent Integration Notes
Claude Code CLAUDE.md → AGENTS.md symlink + .claude/ symlinks Full support (agents + skills)
GitHub Copilot .github/agents/ symlinks or copies Full support (agents)
OpenCode, Codex, Cursor, Gemini CLI, Amp, Windsurf, Kiro, Aider Reads AGENTS.md natively Should work out of the box (untested ⚠️open an issue if you hit problems)

Setup

Current version is v3. If you have v1 or v2 installed, follow the upgrade instructions below.

npx skills@latest add thaitype/chief --skill chief-install
/chief-install

The skill asks which coding agent you use, picks the install mode, copies framework files, and sets up everything.

For manual installation options (shell script, git clone), see docs/manual-install.md.

Windows users: Link mode requires Developer Mode enabled and git config --global core.symlinks true. The setup script auto-detects this — if symlinks aren't available, it falls back to copy mode.

Directory Structure

After setup, your project will have:

project/
├── AGENTS.md               # Framework rules — canonical file (highest authority)
├── CLAUDE.md → AGENTS.md   # Symlink (Claude Code only)
├── .github/agents/        # Copilot agent definitions (symlinks or copies)
├── .agents/               # Canonical agent definitions (coding-agent-agnostic)
│   ├── agents/            # Agent role definitions
│   └── skills/            # Installable skills
├── .chief/                # Plans, rules, milestones
│   ├── project.md         # Project-specific config (tech stack, commands)
│   ├── MANUAL.md          # Framework usage guide
│   ├── _rules/            # Global rules
│   └── milestone-1/       # First milestone
├── .claude/               # Claude Code integration (symlinks)
│   ├── agents/ → .agents/agents/*
│   └── skills/ → .agents/skills/*

How It Works

  • .agents/ is the canonical, coding-agent-agnostic location for agent definitions and skills
  • .chief/ contains planning, rules, milestones, and project configuration
  • AGENTS.md defines the highest-authority framework rules
  • CLAUDE.md is a symlink to AGENTS.md (Claude Code only)
  • .github/agents/ contains symlinks or copies for GitHub Copilot
  • Agent-specific directories (.claude/, .github/agents/, etc.) are populated via symlinks or copies pointing back to .agents/

Getting Started

After installing, set up your project context in .chief/project.md (not AGENTS.md — that contains framework rules only):

chief-agent: use grill-me to help me fill in project.md

Chief-agent will interview you about your tech stack, architecture, and dev commands, then fill in .chief/project.md. Or edit it manually if you prefer.

Milestones can be simple (milestone-1, milestone-2) or reference your project tracker (milestone-JIRA-123, milestone-CU-456).

Agents at a Glance

Agent When it works When to call manually
chief-agent You start here. Give it a goal. Plan work, review progress, or change direction
review-plan-agent Optional. Not part of the automatic flow. When you want to validate a plan for contradictions
builder-agent Chief delegates tasks to it after plan is reviewed When a task is ready and you want to start building
tester-agent Only when you request it — not part of the automatic flow When you need integration/E2E testing beyond unit tests

Quick Start — Pick Your Style

There are two ways to work. Pick the one that fits your situation.

Option A: Controlled (review every step)

Best for: complex projects, unfamiliar domains, team work.

/chief-plan              # grill → goals → contracts → TODO → specs (approval at each step)
builder-agent: implement task-1 from milestone-1   # delegate tasks one by one
/chief-retro                 # review coverage and propose rule updates

You stay in control. Every goal, contract, and task is reviewed before execution.

Option B: Autonomous (let AI drive)

Best for: prototyping, well-defined goals, solo work.

/chief-autopilot             # reads goals + contracts, creates TODO, runs all tasks
/chief-retro                 # review what happened

Requires goals and contracts to exist. Use /chief-plan first if they don't, or write them yourself.

Mix and match

You can combine both. Plan with review gates, then switch to autopilot for execution:

/chief-plan              # plan carefully with approval gates
/chief-autopilot             # execute the approved plan autonomously
/chief-retro                 # review and learn

Common Prompts

What you want What to type
Plan a milestone step-by-step /chief-plan
Run milestone on autopilot /chief-autopilot
Run milestone on autopilot (safe mode) /chief-autopilot safe
Run a retrospective /chief-retro
Quick commit all changes /dump-commit
Quick commit with message /dump-commit fix auth flow
Stress-test a plan or design /grill-me
Start building a task manually builder-agent: implement task-1 from milestone-1
Validate a plan for contradictions review-plan-agent: review milestone-1 plan
Run integration tests (user-triggered) tester-agent: validate milestone-1
Set up project config chief-agent: use grill-me to help me fill in project.md

More Examples

TypeScript SDK for a payment API

/chief-plan

The skill grills you on decisions (e.g. "fetch or axios?", "class-based or functional?"), writes goals and contracts, then breaks the work into tasks. When ready:

/chief-autopilot

Chief-agent runs through all tasks autonomously. When done:

/chief-retro

Review what was delivered vs planned, and update rules for next time.

Quick prototyping session

/chief-autopilot

Skip detailed planning — let chief create TODO and delegate to builder on the fly. When you're done for the day:

/dump-commit wip: payment SDK progress

Upgrading

Install the upgrade skill:

npx skills@latest add thaitype/chief --skill chief-upgrade

Then run:

/chief-upgrade

With no arguments, it upgrades to the latest stable release. Or specify a version:

/chief-upgrade canary
/chief-upgrade v3.0.0

The skill compares your current files against the target version, creates an upgrade plan, and waits for your approval before applying any changes.

Coming from v2

Skills were renamed in v3:

  • /install-chief/chief-install
  • /upgrade-chief/chief-upgrade

If you have old skills installed, remove them and install the new ones:

npx skills@latest add thaitype/chief --skill chief-upgrade

Coming from v1

See the v1 docs for migration details.

Release

  • v1 — Initial release, focused on Claude Code support. See docs.
  • v2 — Multi-agent support, added skills system. See docs.
  • v3 — Renamed to Chief as part of the chief-tribe ecosystem. Skills renamed to chief- prefix (chief-install, chief-upgrade). Repo moved to thaitype/chief.

Branches

  • release/v1 — Stable v1 release
  • release/v2 — Stable v2 release
  • main - latest stable release (currently v3)
  • canary - active development branch, may be unstable

Development

To test changes locally before submitting a PR:

  1. Push your feature branch to GitHub
  2. In a separate test project (not inside this repo), install the skill from your branch:
npx skills@latest add thaitype/chief#<your-branch> --skill chief-install
  1. Test it:
/chief-install <your-branch>

The same pattern works for other skills like chief-upgrade

Contributing

  1. Fork the repo and branch from canary
  2. Make your changes
  3. Test locally using the Development workflow above
  4. Push and open a PR targeting canary
  5. Follow existing commit style: type: description (e.g. fix: resolve merge issue, feat: add kiro agent support)

Acknowledgement

About

A portable workflow that reduces the cognitive load of working with AI coding agents — plan, build, verify, milestone by milestone.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages