Spec, plan, dev and QA by agents, from a task to your acceptance
Agents take a task of your board through a specification, a technical plan, the code and an acceptance check, back to the code until it passes. You accept the result.
Hand a task of the board to a chain of agents rather than to a single session: one writes the specification, one the technical plan, one the code, and one checks the code against every acceptance criterion. Each phase starts from the document of the one before, and the work waits for your acceptance.
It starts from a task: set it to In progress, choose Lead with a workflow, then this workflow. The task follows the execution: In progress while the agents work, To review when your acceptance is due, Done once you approve.
How it works
- Spec. An agent turns the task into a specification: user stories, acceptance criteria that can be checked one by one, and the open questions it settled from the code and the task. It reads the task's comments and documents too.
- Plan. An agent reads the specification and the code it touches, and writes the technical plan: the components, the data model, the risks, the tests, and the ordered tasks.
- Dev. An agent implements the plan on a branch, with the tests each criterion needs, and commits without pushing.
- QA. An agent checks, read-only, each acceptance criterion in the code and the tests. A missing criterion sends the work back to the Dev phase with the report, three rounds at most.
- Your acceptance. You read the acceptance report, and the diff in To review, then approve, or request changes: the check runs again with your comments and sends the work back to the code.
Nothing is pushed for you: once you approved the diff in To review, the commits show up in To push.
What you need
- An agent connected to the repository's machine, with a coding CLI logged in. Each step can use its own: choose them at launch, or in the workflow after the import.
- The task on the board, with the need and the acceptance criteria you already know in its description. The workflow is suggested first for a feature.
Steps
1. Write the specification
Turn this task into a specification, in the git repository of the current directory. {{inputs.task}} 1. Read the task's comments and documents with the `sidehub-cli task get` command given above, then the project's conventions: CLAUDE.md, AGENTS.md, CONTRIBUTING.md and the README. 2. Create a branch named after the task, then write `specs/<short-name>/spec.md` with a summary, the user stories with their priority, the functional requirements, and acceptance criteria written so they can be checked one by one. 3. Nobody answers questions during this run: settle each open question you can from the code and the task, and say how, then list the ones left as assumptions. 4. Do not design the technical solution and do not write code: this step only says what to build and why. 5. Commit the specification on the branch. Never push. Write the whole specification as your output, followed by its path in the repository and the branch.2. Write the technical plan
Write the technical plan of the specification in your input, in the git repository of the current directory, on the branch of the specification. 1. Read the specification, the code it touches, and the project's conventions (CLAUDE.md, AGENTS.md, CONTRIBUTING.md). 2. Write `plan.md` next to `spec.md`: the architecture, the components touched, the data model, the interfaces, the risks and the testing strategy, then the ordered tasks, each tied to the requirements it serves. 3. Follow what the project already does: reuse its patterns and libraries before adding new ones, and say why when you depart from them. 4. Do not write code. Commit the plan on the branch. Never push. Write the whole plan as your output, with its path in the repository.
3. Implement the plan
Implement the specification and the technical plan in your input, in the git repository of the current directory, on their branch. 1. Record the current commit before touching anything: `git rev-parse HEAD`. 2. Carry out the tasks of the plan in their order. 3. Add or update the tests each acceptance criterion needs. Build the project and run its tests, and fix what you broke. 4. Commit your work on the branch with messages that describe it. Never push, never rewrite existing commits. If your input contains an acceptance report, the work came back to you: fix each criterion marked missing and each change requested in it, and say how in your output. Write a summary as your output: what you implemented, the tasks done and left, the tests run and their result. Complete the step with `--value base=<the commit recorded in step 1>`.
4. Check the acceptance criteria
You check, read-only, that the work in your input meets the acceptance criteria of its specification. Do not modify, create or delete any file in the repository, do not commit, do not push. Use a temporary directory outside the repository if you need one. 1. List every acceptance criterion of the specification. 2. For each one, find the code and the tests that meet it (`git diff {{steps.3.outputs.base}}` shows the work of the last round), and run the tests that prove it. A criterion is met only when you saw it in the code and a test or a run confirms it. 3. If your input contains comments from the acceptance, changes were requested: add each change to your list, met only when the code already does it. Write the acceptance report as your output, in Markdown: a one-line verdict, then a table with each criterion, met or missing, and the evidence (file:line, test, command run). For a missing one, say what is missing. Complete the step with `--value missing=<number of criteria or requested changes still missing>`.5. Your acceptance (human approval)
Read the acceptance report, each criterion with its evidence, and the diff in To review. Approve to close the task, or request changes with what fails: the check runs again and sends the work back to the code.
FAQ
Who accepts the result?
The acceptance waits for a member of the workspace, usually you who launched it. To confide it to someone in particular, declare a role in the workflow and give it to that step, as the Spec Kit with your team template does.
What if the check never passes?
After three rounds, the work goes on to your acceptance with a report of what is still missing, and you decide. Request changes to send it back to the code once more.
How is it different from Spec Kit with your team?
Here agents hold every phase and only the acceptance waits for a person. Spec Kit with your team confides each phase to a role (product owner, architect, developer, QA) and waits for each of them.
Does it need anything installed?
No. The agents write the specification and the plan as Markdown files next to the code, on the branch of the work, without any extra tool.