01Define the agentsWhich roles participate in your process? Who analyzes? Who tests the API? UI? Who writes autotests? Each role is a separate agent.
02Write the instructionsFor each agent: .claude/agents/{role}.md with a workflow, I/O format, error handling, and examples.
03Create a slash command.claude/commands/qa.md as the entry point into the pipeline. One prompt launches the whole system.
04Define the file protocolWhich files the coordinator creates, which the executors create, how they exchange findings. Markdown as the contract format.
05Set up CLAUDE.mdShared knowledge: project structure, environments, auth, scripts. So every agent doesn't start from zero.
06Move boilerplate into scripts.claude/scripts/. Agents shouldn't memorize long commands. A script is a contract: call it with simple args, get the result.