What problem does it solve?
Expert VSTO code reviewer for Office add-ins written in C# or VB.NET. Use this skill whenever the user pastes VSTO code and asks for a review, audit, feedback, or help improving it. Also trigger when the user reports a bug, memory leak, crash, performance problem, or unexpected Office behavior and shares code as context — even if they don't explicitly say "review". Trigger on phrases like "what's wrong with this", "can you check this", "is this correct", "why does this crash", "review my add-in", or any paste of VSTO/Office interop code followed by a question. Prioritize correctness over style. Always check COM release, event hygiene, and thread safety before anything else.
Core Features & Use Cases
- COM lifecycle and resource management checks (two-dot rule, Release/FinalRelease usage)
- Event handler hygiene and lifecycle management
- Thread-safety validation for Office interop calls
- Robust exception handling with proper logging and recovery notes
- Office API correctness and version considerations
- Architecture and testability recommendations
Quick Start
Paste your VSTO add-in code or a reproducible snippet to receive an automated VSTO review highlighting lifecycle, threading, and API correctness.