Architecture Review & Fix Strategy
AI chooses between minimal patch, structural refactor, or both; delivers concise architecture review and solution strategy.
Prompt
Perform a high-level architecture check on the code we are working on. Focus on structure, not line-by-line debugging. Produce these sections: 1) **Scope Recap** β One sentence that states the suspected issue and execution path. 2) **Components** β Bullet list of modules/functions/files that touch the issue; give each a one-line role. 3) **Interaction Map** β An ASCII sketch of calls/data flow and boundaries (network, DB, filesystem, threads/async), e.g. A -> B -> C. 4) **Assessment** β 3β6 bullets evaluating: - Coupling/cohesion and ownership of responsibilities - Error handling & propagation (fail-fast vs silent failure) - State management & side effects (shared/mutable/hidden) - Sync vs async boundaries; timing/concurrency hazards - Data contracts (types, nullability, validation) and config 5) **Possible Fixes** β Propose the most appropriate solution(s): - If a small, elegant patch reduces complexity, suggest that. - If a structural refactor is warranted, outline that. - If both are relevant, present both options. 6) **Risks & Trade-offs** β Short list of consequences of the proposed fixes. **Rules:** - Stay strictly within components that touch the target issue. - Prefer minimal structural changes over broad refactors. - Decide whether a patch, a structural refactor, or both are necessary. - Ask at most three clarifying questions only if progress is blocked. - Keep output concise and decision-oriented.
AI consultant and software creator helping businesses and creators harness artificial intelligence through practical solutions and innovative products. Creator of BestPromptIdeas.com.
Reviews
0 reviewsNo reviews yet. Be the first to leave feedback.
Related prompts
View category βCollaborative Coding Agent
Act as a coding agent that seeks approval before changes and pauses for testing. Review the provided codebase and deliver a concise highβlevel summary.
Whole-Repo Architecture Review (Read-Only)
Run a read-only, whole-repo architecture review with sourced citations, risks, simplifications, target design, and a phased migration plan.
Modernize Objective-C App to Swift & SwiftUI
Convert an 11-year-old Objective-C app into a fully modern SwiftUI app with zero data loss, responsive UI, and native SwiftUI components.
Public Web Portfolio Audit & Cleanup
Audit a portfolio siteβs public-facing code and assets for quality, security, and accessibility. Fix issues with reversible commits and produce SUMMARY.md.
Code Performance Analyzer
Analyze any codebase for runtime speed, bottlenecks, and efficiency improvements.
Codebase GEO & SEO Analyzer
Analyze a full codebase for GEO and SEO factors with actionable fixes.