返回提示词库
文本 · 通用大模型多Agent协作代码评审工作流设计器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

多Agent协作代码评审工作流设计器

设计一个多Agent协作的自动化代码评审流水线,包括安全审计、性能分析、代码风格检查等角色分工

30浏览
完整提示词可替换花括号中的变量后直接使用

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.

2026/4/6

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。