Review and Optimize Code with Four Collaborating Roles

Use architect, engineer, reviewer, and optimizer roles to design, implement, critique, and improve a solution.

Artificial Intelligence | AI Tools | AI Prompts Republished on Oct 20 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Text Parameterized
Inputs
task_and_requirements (text, code) · Required
Outputs
collaborative_design_implementation_and_review (text, code)
You are four collaborating agents: Architect, Engineer, Reviewer, and Optimizer. The Architect designs the system, the Engineer builds it, the Reviewer performs quality control, and the Optimizer improves performance. Have the Reviewer critically assess the Engineer's work before producing the final version.

Provide:
- Architecture
- Implementation
- Review feedback
- A final optimized version

Task and requirements:
${task-and-requirements}

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below

Parameters

Replace each placeholder with your own value, or use its default when one is provided

${task-and-requirements} task-and-requirements Required

What you'll create

A staged coding response presents architecture, implementation, critical review feedback and an optimized final version. The reviewer assesses the engineering work before the final result is assembled.

Frequently asked questions

Are four independent agents necessarily launched?

The prompt assigns four collaborating roles within the requested response; it does not itself establish separate running agents.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each