Architecture Review
A structured review checklist with severity ratings focuses Cascade on high-impact issues. The 'do not make changes' constraint ensures you review findings before anything is modified.
Review the architecture of {{module_or_feature}} and identify improvements:\n\nFocus areas:\n1. **Separation of concerns** — Is business logic mixed with UI/framework code?\n2. **Error handling** — Are errors caught, logged, and shown to users appropriately?\n3. **Performance** — Any N+1 queries, unnecessary re-renders, missing indexes, or large bundle imports?\n4. **Type safety** — Any \`any\` types, missing null checks, or unsafe type assertions?\n5. **Duplication** — Code that's copied between files that should be extracted into shared utilities?\n\nFor each issue found:\n- File and line number\n- What the problem is\n- Severity: critical / moderate / minor\n- Suggested fix (code snippet if helpful)\n\nDo not make any changes. Only analyze and report. Sort findings by severity (critical first).Variables to customize
Why this prompt works
A structured review checklist with severity ratings focuses Cascade on high-impact issues. The 'do not make changes' constraint ensures you review findings before anything is modified.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.