Advanced — Existing Project Analysis & Modernization
Reading, debugging, and safely changing production codebases with Claude
For engineers inheriting, maintaining, or modernising production systems. Codebase archaeology, scientific debugging across stack traces, memory leaks, deadlocks, and distributed traces. SEV1 triage and post-mortems. Expand-Contract safe changes. Strangler Fig and CRUD-to-CQRS migration. .NET Framework → .NET 8 modernisation. Golden master testing and STRIDE threat modelling.
Module 1 — Deep Codebase Analysis
Architecture archaeology, layered quality analysis, dependency risk.
- 1Architecture ArchaeologyArchitecture Reverse Engineering prompt; Implicit Contract Discovery prompt.
- 2Code Quality Analysis (4 dimensions)Layered Quality Analysis prompt across structure, complexity, testability, security.
- 3Dependency & Vulnerability AnalysisTransitive Dependency Risk prompt — CVE rollup and upgrade path.
Module 2 — Advanced Debugging
Scientific method, stack-trace analysis, memory leaks, deadlocks, distributed tracing.
- 1Scientific Debugging Method6-stage flow: Observe → Hypothesise → Predict → Test → Analyse → Iterate.
- 2Advanced Stack Trace AnalysisMulti-Layer Stack Trace Analysis prompt — proximate cause, root cause, contributing factors, blast radius.
- 3Memory Leak & GC PressureMemory Issue Analysis prompt — 7 leak patterns including event-handler retention, IDisposable misuse, closure capture.
- 4Concurrency & Deadlock AnalysisDeadlock Investigation prompt — deadlock vs starvation vs livelock vs races.
- 5Distributed System DebuggingCross-Service Request Tracing prompt — spans, logs, service contracts.
Module 3 — Production Incident Management
SEV classification, war-room prompts, post-mortems.
- 1Incident Severity ClassificationSEV1–SEV4 table — customer impact, response time, comms cadence.
- 2War Room Prompt TemplatesSEV1 Rapid Triage prompt — 60-second structured triage update.
- 3Post-Incident Root Cause ReportPost-Incident Root Cause Report prompt — what happened, why, blast radius, what we change.
Module 4 — Safe Code Modification
Blast radius analysis, expand-contract, feature flags for safe rollout.
- 1Change Impact AnalysisBlast Radius Assessment prompt — what could a change break, who must be informed.
- 2Expand-Contract PatternZero-Downtime API Change prompt — 3-phase expand, migrate, contract.
- 3Feature Flags for Safe RolloutFeature Flag Implementation prompt — kill switches, canary cohorts, rollout schedules.
Module 5 — Advanced Refactoring
Strangler Fig, CRUD-to-CQRS migration, anti-patterns.
Module 6 — Legacy System Modernization
.NET 4.8 → .NET 8 migration, async/await conversion, monolith extraction.
Module 7 — Testing Existing Systems
Golden master, approval testing, load and chaos.
Module 8 — Security Analysis
STRIDE threat modelling, deep auth review.
Module 9 — Advanced Workshops
Production incident simulation, legacy modernization, microservice extraction.
- 1Workshop 1 — Production Incident SimulationLive war-room drill against a provided buggy service; SEV1 triage and post-mortem.
- 2Workshop 2 — Legacy Codebase ModernizationEnd-to-end Strangler Fig plan on a provided .NET 4.8 codebase.
- 3Workshop 3 — Microservice ExtractionCarve a bounded context out of a monolith with a zero-downtime cutover.
Module 10 — Quality Gates
7-gate framework (G1–G7) for shipping AI-assisted changes safely.