Every badge is a link to its docs
Taskflow is a Claude Code plugin that gives Claude a disciplined way to ship work, the way a careful senior dev would:
- 🗺️ Plan first. Work is planned as the pull requests you will review, each one about one topic and under a line budget.
- ✅ Agree what "done" means. Each pull request gets acceptance criteria you sign off on before any code is written.
- 🔴🟢 Red before green. You see the tests fail for the right reason before Claude writes the implementation.
- 📦 One task, one commit. Claude does a single task end to end, then moves to the next, stopping only when it needs you.
- 🚦 Gates before every commit. Lint, type check, unit tests, and e2e when the change needs them.
- 📚 Docs stay true. The docs, and the diagrams if your repo has them, are checked before a change counts as done.
The plugin carries the procedure. Your repo keeps its own rules in CLAUDE.md and
.claude/workflow.json.
To use it, you will need these tools in your environment:
- Claude Code
- Python 3 on your
PATH, because the hooks are Python scripts - Git and the GitHub CLI, signed in to your repo's remote, because Taskflow opens and updates your pull requests
- Lint, type check and test commands your repo can already run
Add the marketplace and install the plugin from inside Claude Code:
/plugin marketplace add GuiMoraesDev/taskflow
/plugin install taskflow@taskflow-toolsThen, in the repo you want to use it on:
/init-workflow # writes .claude/workflow.json and the workflow section of CLAUDE.md
/plan-status # checks that the config works💡 To install from a local checkout instead, pass its path to
/plugin marketplace add.
plan ──▶ agree criteria ──▶ run a task ──▶ repeat ──▶ check in
- Plan. Ask for one, like "plan the export feature". Claude grills you on the
design until you both agree, then writes
SCOPE.md,TASKS.md,QUESTIONS.mdandPROGRESS.mdin your plan folder (see Where plans live). - Agree the criteria. Settle each pull request's acceptance criteria before its first task starts.
- Run a task.
/next-taskpicks the first task that isn't blocked (or use/next-task TASK-3to pick one). At a pull request's first task you sit once: its open questions, then every task's tests. After that Claude runs each task through: branch, failing tests, implementation, a self-check, gates, size check, commit, push and log, stopping only when it needs you. - Repeat. The first task of a pull request opens it as a draft, and the last task marks it ready for review, after a senior review whose blockers are fixed first.
- Check in.
/plan-statusshows where you are, the open questions and what they block./deviationwrites down anything that didn't go as planned.
| Command | What it does |
|---|---|
/init-workflow |
Sets up or updates the workflow config for your repo |
/plan-status [project] |
Shows the task list, open questions, latest log entries and the next task you can do |
/next-task [TASK-ID] |
Picks the next task, or the one you name, and runs the cycle on it |
/deviation <what changed> |
Logs a change from the plan |
/review-feedback <pr> |
Judges a pull request's review comments, logs each one and suggests a process change |
| Skill | What it does |
|---|---|
init-workflow |
Reads your repo's scripts and layout, asks what it can't figure out (models, diagrams, pull-request conventions), then writes .claude/workflow.json and the workflow section of CLAUDE.md. Running it again asks only about what changed |
plan-start |
Grills you on the design, then writes the four plan docs: the scope, the pull requests, their acceptance criteria, one-commit tasks with their tests, and the open questions, each with a recommendation |
task-run |
Holds one sitting with you per pull request, up front - its questions, then every task's tests - then runs each task from the failing tests to the commit and pull request, carrying on until it needs you |
bug-red-test |
Proves a regression test fails against the old behaviour before the fix ships |
docs-sync |
Goes through your docs checklist, plus the glossary and diagrams if your repo has them |
standards-review |
Checks a diff against the standards in your CLAUDE.md, and warns you when a test was bent to pass instead of updated with the behaviour |
| Agent | Tier | What it does |
|---|---|---|
plan-architect |
deep | Surveys the code and returns the task breakdown a plan needs |
standards-reviewer |
deep | Audits a diff against the standards without changing anything |
pr-reviewer |
deep | Reviews a pull request against its criteria and flags ranked issues before it is marked ready |
docs-diagram-auditor |
surface | Looks for outdated claims in the docs and diagram labels |
gate-runner |
mechanical | Runs lint, types, unit and e2e tests and reports only the failures |
Each hook runs on Bash commands.
| Hook | Event | What it blocks or prints |
|---|---|---|
guard-bash |
PreToolUse |
Asks before git commit --no-verify, git branch delete or rename, git add -A or git add ., and npx-style runs of eslint, tsc, vitest, playwright or jest, printing why. Denies a git force flag unless the command's description says why force is needed |
guard-signature |
PreToolUse |
Denies git commit, gh pr create, gh pr edit and gh api calls carrying an AI Co-Authored-By trailer, an anthropic.com noreply address or a "Generated with Claude" line, unless workflow.json sets aiSignature: true (false by default) |
version-bump |
PreToolUse |
On git commit, bumps the patch version in .claude-plugin/plugin.json and stages it when it still matches the remote default branch, then tells you so. On git push, denies the push if the version is not above the remote's. Does nothing in a repo without that manifest |
progress-reminder |
PostToolUse |
After a git commit, if a plan's PROGRESS.md still has a 🔄 row, prints a reminder to flip it to ✅ (or |
Plans are written to one of two places:
- The repo (default, and the source of truth).
projectsDirinworkflow.json,docs/projectsunless you change it. - An Obsidian vault, chosen per machine. Set it in
.claude/workflow.env, which is untracked:.claude/.gitignorekeeps it out of git, so teammates keep the repo folder.
Key in .claude/workflow.env |
What it holds |
|---|---|
TASKFLOW_PLANS_SOURCE |
repo or obsidian. Anything else, or missing, means repo |
TASKFLOW_OBSIDIAN_VAULT |
The vault's folder name, looked up in Obsidian's vault list |
TASKFLOW_OBSIDIAN_VAULT_PATH |
The vault's absolute path instead; it wins over the name |
TASKFLOW_OBSIDIAN_PATH |
The folder inside the vault, e.g. taskflow/my-repo |
See examples/workflow.env.example. /init-workflow
sets it for you. With Obsidian on, plans are read and written in the vault only, and
a bad vault setting stops with a message instead of falling back to the repo.
💡 Plan files in a vault are written by absolute path, which asks permission every time. Add the vault to
permissions.additionalDirectoriesin.claude/settings.local.jsonto stop the prompts.
Everything specific to your repo lives in one file you own: .claude/workflow.json.
/init-workflow fills it in for you. See
examples/workflow.example.json for the full shape.
| Key | What it holds |
|---|---|
projectsDir |
Where plan folders live in the repo (see Where plans live above) |
gates |
Your lint, types, unit and e2e commands |
e2eTriggerPaths |
File patterns whose changes make the e2e suite run |
docsChecklist |
Each doc and what it covers, checked before a behaviour change is done |
decisions |
Where your decision records and glossary live |
diagrams |
Whether you keep diagrams, where, in what format and who edits them |
pullRequests |
Line budgets - maxLines for code (400), maxTotalLines for code plus codeExcludes (600), codeExcludes the test and doc paths counted only in the total (**/*.test.*, **/*.spec.*), excludeFromCount the paths counted in neither (lockfiles, generated files) - branch and title prefixes, labels, assignee, stacking and whether independent pull requests run in parallel |
aiSignature |
Whether commits and pull requests may carry an AI signature |
commitTypes |
The allowed conventional-commit types |
models |
Which model each tier uses, e.g. { "deep": "opus", "surface": "sonnet", "mechanical": "haiku" } |
💡 The
modelsmapping covers both your plan's tasks and the plugin's own agents, so you set your cost and speed trade-off once.
Rules about dependency direction belong in your repo's lint config, not in this file. Prose rules go stale; lint rules don't.
- No code before the plan.
SCOPE.mdsays what may change and what may not,TASKS.mdholds the work,QUESTIONS.mdholds the open decisions andPROGRESS.mdtracks progress. - Plans are pull requests. Each one has one topic and stays under two line budgets: 400 changed lines of code and 600 in total, tests and listed docs counting only toward the total. Its title, branch, commits and files are written down before any of them exist.
- Criteria come first. Each pull request's acceptance criteria are agreed with you before its tasks start.
- One task, one commit. Each task makes something visibly true and lists its category, model tier, files and tests. A wide mechanical change is done as expand, migrate, contract.
- Only real decisions become questions. Claude reads the repo for anything it can answer itself. Each question comes with a recommendation, examples, cost and how to undo it. It is asked at the task that needs it, and it blocks only that task.
- Tests before code. You see the tests and why they matter, watch them fail, then Claude implements until they pass without touching them. Claude then walks you through the logic it wrote until you understand the code. Nothing reaches the default branch without a reviewed pull request.
- No test? Say why. A task without a new test explains why: it changes no behaviour and the existing tests cover it. A bug fix's test targets how the bug happens.
- Docs before done. The docs checklist, and the diagrams if your repo keeps them, are checked before a behaviour change is called done.
- Write down surprises. Any change from the plan goes in the log. The plan shows what you expected, the log shows what happened.
- The plugin follows the Claude Code plugin structure:
skills/,agents/,commands/andhooks/at the root, with the manifest and marketplace entry in.claude-plugin/. - Commits follow Conventional Commits.
- With the plugin installed while you work on it, its
version-bumphook bumps the patch version inplugin.jsonon a branch's first commit and blocks a push that didn't bump it. - When a pull request merges into
main, theReleaseworkflow tags the merge commitv<version>and publishes a GitHub release.