What problem does it solve? When the same operational logic (sandbox creation, email sending, payment processing) is copy-pasted across multiple action files, bug fixes fail to propagate and behavior drifts. This Skill provides a decision framework for separating domain rules from reusable mechanics. ## Core Features & Use Cases - Two-layer architecture guidance: Actions own domain rules (auth, state transitions, error classification) while a service layer owns reusable mechanics (provider calls, command execution, health checks). - Extraction criteria: Clear triggers for when to extract shared logic (2+ callers) versus when to keep logic in actions (single caller, domain-specific). - Migration checklist: Step-by-step process to extract one capability block, replace one caller, verify, then migrate the rest. - Use Case: You notice sandbox creation code duplicated in three workflow files. Use this Skill to extract composable service functions with explicit parameters and structured returns, keeping orchestration in the actions. ## Quick Start Ask the AI to review where this duplicated logic should live and refactor it into a shared service layer using the code-structure guidelines.