Chief Feature Workflow
/install chief-feature
Chief Feature Workflow
Chief is an AI-driven development loop: reads a prd.json, implements user stories one by one via Claude Code, commits each, and tracks progress.
Full Workflow
1. Clone / verify repo
Confirm the project is cloned locally.
2. Create a new PRD
Run interactively in the project root:
cd \x3Cproject>
chief new \x3Cprd-name>
Chief launches Claude Code in PRD-writer mode. It will ask clarifying questions with lettered options. Provide:
- The full feature description / spec
- Answers to clarifying questions (e.g. "1A, 2C, 3D")
When Chief asks "Do you want to create prd.md?" — approve (option 1 or 2).
Chief converts prd.md → prd.json on /exit. Watch for:
✓ PRD converted successfully
Files land at: .chief/prds/\x3Cprd-name>/prd.md and prd.json
3. Create a worktree + branch
git worktree add ../\x3Cproject>-\x3Cprd-name> -b feat/\x3Cprd-name>
mkdir -p ../\x3Cproject>-\x3Cprd-name>/.chief/prds/\x3Cprd-name>
cp .chief/prds/\x3Cprd-name>/prd.{md,json} ../\x3Cproject>-\x3Cprd-name>/.chief/prds/\x3Cprd-name>/
4. Commit the PRD
cd ../\x3Cproject>-\x3Cprd-name>
git add .chief/prds/\x3Cprd-name>/prd.md
git commit -m "docs: add \x3Cprd-name> PRD"
Only commit prd.md — prd.json is typically gitignored.
5. Delegate to a subagent (recommended for long runs)
Instead of running Chief manually and polling, spawn a subagent to handle the full implementation autonomously:
Spawn a subagent with this task:
- Working directory: ~/\x3Cproject>-\x3Cprd-name>
- Run `chief \x3Cprd-name>` with pty:true
- Press `s` to start the loop
- Approve bash prompts with `1` + Enter (or `2` to always allow)
- If stuck on a prompt, send hex `0d` (Enter)
- Poll until all stories show ✓ (100%)
- Commit progress.md, push, open PR
- Announce the PR URL when done
The subagent runs fully isolated and auto-announces on completion. You can spawn multiple subagents in parallel — one per PRD/worktree — for concurrent feature development.
Parallel runs: 2–3 concurrent subagents is the practical sweet spot. Each Chief run is API-heavy (runs Claude Code under the hood), so more than 3 parallel runs risks rate limits and high cost.
5b. Run Chief manually (alternative)
If you prefer to supervise directly:
chief \x3Cprd-name>
Press s in the TUI to start. Chief works through stories in priority order, runs verification (make test, pnpm typecheck, etc.), commits each passing story, and updates progress.md.
Monitor via process(action=poll) on the PTY session. Watch for **US-00X is complete**.
6. Commit progress + push
git add .chief/prds/\x3Cprd-name>/progress.md
git commit -m "docs: add \x3Cprd-name> progress"
git push -u origin feat/\x3Cprd-name>
7. Open a PR
gh pr create \
--title "feat: \x3Cprd-name>" \
--body "Implements the \x3Cprd-name> PRD. See .chief/prds/\x3Cprd-name>/prd.md for spec." \
--base main
8. Clean up the worktree
After the PR is merged:
cd \x3Cproject>
git worktree remove ../\x3Cproject>-\x3Cprd-name>
git branch -d feat/\x3Cprd-name>
Use
git worktree remove --forceif the directory has uncommitted changes.
Tips
- TUI bash prompts: use
1(Yes) or2(Yes, always allow) - If stuck on a permission prompt, send
hex: ["0d"]viaprocess(send-keys) - If a story fails, Chief retries or logs the failure in
progress.md prd.jsonis typically gitignored — only commitprd.mdandprogress.md- Chief resumes automatically from the last completed story if restarted
Reference
See references/chief-commands.md for CLI commands, TUI keyboard shortcuts, and official links.
About Chief
Chief is an open-source AI-driven development loop built by minicodemonkey.
- Website: https://chiefloop.com/
- GitHub: https://github.com/minicodemonkey/chief
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chief-feature - 安装完成后,直接呼叫该 Skill 的名称或使用
/chief-feature触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Chief Feature Workflow 是什么?
Create and implement new features in Chief-managed projects using the Chief CLI. Use when asked to create a new PRD, implement a feature with Chief, set up a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 437 次。
如何安装 Chief Feature Workflow?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chief-feature」即可一键安装,无需额外配置。
Chief Feature Workflow 是免费的吗?
是的,Chief Feature Workflow 完全免费(开源免费),可自由下载、安装和使用。
Chief Feature Workflow 支持哪些平台?
Chief Feature Workflow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chief Feature Workflow?
由 Luiz Gustavo Nogara(@nogara)开发并维护,当前版本 v1.0.2。