Review and Optimize Code with Four Collaborating Roles
Use architect, engineer, reviewer, and optimizer roles to design, implement, critique, and improve a solution.
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