In ArchFlow, writing code starts with the /implement command. Before anything else, the command checks that the technical design is approved and the task list is ready. When the work is done, it leaves a handover note. In other words, all the checks live inside the command.
Recently, on one project, we told the agent in plain words to “go ahead”. We had already blocked the model from calling /implement on its own, so we didn’t expect anything to happen. And the agent didn’t call the command. But it took on the work itself: it read the technical design and the task list and started writing a plan. The result might well have been fine, but none of the checks the command runs had happened.
That’s where 3.0 came from.
What we changed
First, we wrote the rule down. Every project’s CLAUDE.md now says: if the user says “go ahead”, “do it” or “finish it”, the agent doesn’t start on its own; it suggests typing /implement or /finish. Blocking it technically turned out not to be enough. You also have to tell the agent plainly.
We turned the commands into Claude Code skills. Only the user can now run /implement, which writes code, and /finish, which closes a feature. We deliberately left /verify open: it doesn’t write code or commit, and it hands the check to a separate subagent. Running it often does no harm.
The third change is more mundane, but it bothered every team. Projects want to add their own rules to the commands, for example “run the e2e tests before merging”. To do that they copied and edited the command file, and every upgrade overwrote their changes. Now those rules go into a separate file, PROJECT.md, and upgrades leave it alone. There’s one limit: a project rule can add steps, but it can’t loosen the approval and verification steps.
Upgrading from 2.x
archdoc-setup.sh upgrade moves the old command files over to skills. Run it with --dry-run --diff first to see what will change. The old files are backed up, and the project’s own commands aren’t touched. The one thing you have to do by hand: the upgrade doesn’t regenerate CLAUDE.md, so add the new rule to existing projects yourself.
- ArchFlow
- Claude Code
- Spec-driven development
- AI