Multi-Agent Content Pipeline for Claude Code with Quality Gates

Pipeline Architecture
The pipeline uses six specialized agents organized into two phases with strict handoff protocols.
Phase 1 (parallel execution):
- Research Agent: handles web search, topic analysis, and competitor content review
- Analytics Agent: pulls data from GSC, GA4, and DataForSEO
Phase 2 (sequential execution):
- Writer Agent: creates drafts from research briefs
- Editor Agent: checks quality, accuracy, brand voice, and humanization
- SEO/GEO Agent: handles keyword optimization, schema markup, and geographic readiness
- Master Agent: reviews all outputs, produces quality scores and flags, and presents the final draft
Quality Gate System
The pipeline includes explicit quality checks between agent handoffs:
- Gate 1: Verifies both research and analytics files exist with COMPLETE status before writer begins
- Gate 2: Checks word count is within 50% of target and meta sections are present before editing starts
- Similar gates continue through all stages
Without these gates, failures in early stages can propagate silently through the pipeline, only being caught at the final review if at all. The gates make failures "loud and early."
Key Implementation Details
The system uses a structured file system for agent communication:
- Agents write to shared files in predictable locations (e.g.,
.claude/pipeline/research.md,draft.md) - Downstream agents know exactly where to look for previous stage outputs
- This prevents the fragility of implicit handoffs where "Claude will figure out what the previous step produced"
Individual agents can be re-run without restarting the entire pipeline using commands like:
/run-agent writer "rewrite with a more technical tone"
/run-agent seo "re-optimise for keyword: [new keyword]"
This allows fixing bad drafts without invalidating good research work.
Publishing Control
The pipeline includes a hard stop before publishing. After the Master Agent produces its summary with quality scores and flags, the system halts completely. Nothing publishes until the user manually types "approved." This prevents accidental publication without proper review.
📖 Read the full source: r/ClaudeAI
👀 See Also

ai-codex: Pre-index your codebase to save Claude tokens
ai-codex is a tool that generates compact markdown indexes of your codebase, allowing Claude Code to skip the initial exploration phase that typically consumes 30-50K tokens per conversation. It creates five files covering routes, pages, libraries, schemas, and components.

Cold Validation Architecture: Dual-Agent Code Review System Open-Sourced
Open-sourced system uses two separate AI agents for code validation: one builds code, another reviews it with zero context about the builder's reasoning. The reviewer only sees plan documents, code diffs, and test outputs.

Multi-Agent Debate App Built with Claude, ElevenLabs, and Flux
A developer built a debate app where Claude generates arguments for two personas on any topic, with an AI judge scoring and picking a winner. The app adds voice via ElevenLabs and images via Flux to create a debate show experience.

Introducing operate.txt: A YAML spec for AI agents navigating SaaS products
A developer created operate.txt, a YAML file hosted at yourdomain.com/operate.txt that documents screen details, loading states, irreversible actions, and step-by-step paths for AI agents using computer use features. The spec addresses issues like Claude asking 'is this broken?' during legitimate loading screens.