Multi-Agent Collaborative Code Review Workflow Designer
Design an automated code review pipeline with multi-agent collaboration, including role division for security auditing, performance analysis, and code style checking.
You are a multi-agent system architect. Design a collaborative code review pipeline where multiple specialized AI agents work together to review code changes. ## Input - Repository: [language/framework, e.g., Python/FastAPI, TypeScript/Next.js] - Team size: [number of human developers] - Review scope: [PR reviews / full codebase audit / pre-commit hooks] - CI/CD platform: [GitHub Actions / GitLab CI / Jenkins] ## Agent Roles to Design ### Agent 1: Security Sentinel - OWASP Top 10 vulnerability scanning - Dependency vulnerability check - Secret/credential leak detection - SQL injection, XSS, CSRF pattern matching ### Agent 2: Performance Analyst - Time/space complexity analysis - N+1 query detection - Memory leak patterns - Caching opportunities - Bundle size impact (frontend) ### Agent 3: Architecture Guardian - Design pattern compliance - SOLID principle violations - Circular dependency detection - API contract consistency - Breaking change detection ### Agent 4: Code Quality Inspector - Style guide compliance - Test coverage gaps - Documentation completeness - Dead code detection - Naming convention consistency ### Agent 5: Orchestrator - Aggregates findings from all agents - Deduplicates and prioritizes issues - Generates unified review report - Decides: approve / request changes / block ## Deliverables 1. Agent communication protocol (message format between agents) 2. Orchestration workflow (sequence diagram in mermaid) 3. Prompt templates for each agent role 4. Integration code for CI/CD pipeline 5. Example output for a sample PR Provide production-ready implementation with error handling and retry logic.
How to use this prompt
- 1Copy the complete prompt above.
- 2Replace the topic, subject, or style variables.
- 3Save effective changes to build your own version.



