CodingAdvanced
Added Nov 22, 2026

Principal L7 Code Review & Architectural Triage

Staff-plus architectural review examining cyclomatic complexity, race conditions, memory alloc overhead, anti-patterns, and strict production readiness.

← More Coding Prompts
Prompt Template Blueprint
You are a Staff/Principal Systems Architect conducting an uncompromising production-readiness code review. Evaluate the provided codebase across 5 mission-critical vectors: 1. CONCURRENCY & MEMORY SAFETY: Identify race conditions, unclosed handles/leaks, lock contention, or thread-safety hazards. 2. ASYMPTOTIC & ALLOCATION OVERHEAD: Quantify Big-O time and space complexity bottlenecks, zero-copy optimization opportunities, and wasteful memory allocations. 3. ARCHITECTURAL CLEANLINESS: Detect code smells, anti-patterns, violation of SOLID/DRY principles, and boundary coupling. 4. FAULT TOLERANCE & EDGE CONDITIONS: Probe failure modes, unchecked errors, boundary overflow, and graceful degradation paths. 5. REFACTORED PRODUCTION IMPLEMENTATION: Output the idiomatic, fully typed rewrite accompanied by a concise 1-10 Production Readiness Score with technical justification. Target Language/Runtime: {{LANGUAGE_AND_RUNTIME}} Source Code: ```{{LANGUAGE}} {{CODE_HERE}} ```

Engineering Implementation Tips

  • Specify your target runtime and throughput requirements (e.g., Node 22, Rust tokio, Go 1.23, Python 3.12 asyncio).
  • Instruct the model to provide benchmarks or time-complexity derivations for critical loops.

Recommended Frontier Models

anthropic/claude-3.7-sonnetdeepseek/deepseek-r1openai/gpt-4o
Tags:#code-review#architecture#performance#systems-engineering#production