Turns Claude Code into a small development team instead of one agent guessing alone — with a git-level gate that keeps the humans in charge of what actually ships.
- A team of specialists, not one generalist.
planner,plan-critic,code-critic, andadversarial-qaeach run in their own context window, built from one shared source of knowledge (the skills) — so each pass stays focused instead of one agent doing everything at once. /feature— one command, the whole lifecycle. Plan → critique → implement → test → code-review → QA → PR. You don't orchestrate the steps yourself; the workflow does, end to end.- It stops and asks instead of guessing. When a critic raises a
NEEDS_DECISION, or QA turns up something the plan didn't anticipate, the loop halts and hands you the decision — fix now, defer with a filed issue, or ignore. Nothing gets silently resolved on your behalf. - A review gate enforced by git, not by an LLM's good behavior. A
pre-push hook blocks pushing any commit that doesn't match a recorded,
passing review — deterministic and outside the model's control. See
Deterministic Enforcement in
docs/AI-workflow.md.
-
Install the plugin:
/plugin marketplace add cunhaax/ai-workflow /plugin install ai-workflow@ai-workflowDeveloping the plugin itself? Point the marketplace at your local checkout instead, so you're testing your working tree, not the published default branch:
/plugin marketplace add /path/to/this/repo /plugin install ai-workflow@ai-workflow -
Scaffold and adapt it to your project:
/init-workflowFills in
AGENTS.md(build/test/run commands, sensitive areas), points review and planning guidance at your existing docs (or seeds new ones), and validates the setup. Every write is proposed and confirmed — re-run it any time as a doctor. -
Enable the review gate (once per clone):
git config core.hooksPath githooks
-
Start a feature branch, then drive the work:
/featureStart on a fresh branch you create yourself — the agents won't create or switch branches, and the workflow diffs against and opens a PR against your default branch.
Not every change needs the full /feature loop. For a small, manual
session, you can tell the implementing agent up front that you'll do the
review yourself — it will skip launching the code-critic sub-agent and,
once you've looked over the diff and approved it, just run:
scripts/review-ok.sh # records HEAD's SHA as reviewedThe pre-push hook only checks that the pushed commit matches whatever was last recorded — it doesn't care whether a sub-agent or a human did the looking. That's the same gate either way, just with you standing in for the critic.
Design rationale, the skill/sub-agent reference, and how the workflow
executes step by step all live in
docs/AI-workflow.md.
MIT — see LICENSE.