Back to guide/General Productivity

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.

windsurf-promptsmodule_or_feature
Edit View
Prompt
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

{{module_or_feature}}

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.