Apply Suggestion — Multi-Agent Refactoring Orchestrator
Orchestrates automated code refactoring by managing executor and QA agents to safely apply and verify structural improvements.
The cac-apply skill is a high-reliability orchestration tool for the Claude Auto Context ecosystem, designed to apply complex code suggestions through a robust multi-agent architecture. It manages the hand-off between a specialized 'executor' agent that performs the code changes and a 'QA' agent that independently verifies those changes against defined acceptance criteria. By incorporating mandatory safety pre-checks—such as git 'dirty tree' guards, automated test runner detection, and checkpoint creation—the skill ensures that structural refactorings are applied with minimal risk. If a change fails verification, the orchestrator manages a three-cycle iteration loop to resolve issues, ultimately rolling back to a stable state if high-quality results cannot be achieved.