Apply Suggestion — Multi-Agent Refactoring Orchestrator

•
11
•

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.

Key Features

01Smart test runner detection for major ecosystems like Node.js, Python, Go, and Rust
02Automated safety guards for git status and pre-existing test failures
03Atomic git checkpointing and automatic rollback on persistent verification failure
04Multi-agent workflow separation between execution and independent QA verification
0511 GitHub stars
06Iterative 'Fix-and-Verify' loop with up to 3 automated refinement cycles

Use Cases

01Applying complex architectural refactorings that require multi-file synchronization
02Automating the migration of legacy code patterns using verified AI suggestions
03Ensuring high-confidence code updates through independent, agent-based quality assurance