What problem does it solve? Refactoring a microservice or pipeline without a clear diagnosis often breaks behavior, misses test gaps, and skips documentation. This Skill inspects an existing service and produces a structured, behavior-preserving refactoring plan before any code changes happen. ## Core Features & Use Cases - Service Diagnosis: Maps service boundaries, entry points, data flow, invariants, modularity issues, test coverage, lint/type health, and docs status. - Structured Refactoring Plan: Produces sections covering invariants, refactor boundaries, modularization, test coverage, ruff/pyright/CI checks, READMEs, runbooks, discovered bugs, and rollback risks. - Planning-Only Safety: Enforces a hard boundary that no code, tests, configs, or docs are modified during diagnosis. - Use Case: Ask it to plan a refactor of an ETL pipeline service; it inspects the repo, records behavior contracts, and returns a diagnosis plus a plan a coding agent can later execute. ## Quick Start Ask the assistant to diagnose the service at a given path and produce a refactoring plan covering modularity, tests, lint/type health, README, and runbook without changing any code.