audit-loop
Installation
SKILL.md
Audit Loop Skill
Automated iterative audit-fix cycle using the Ralph Wiggum loop plugin. Detects your currently edited files via git diff, spawns 3 parallel audit agents (performance, security, code quality), fixes any Critical or High findings, then re-audits until clean.
When to Use
- After implementing a feature or refactoring, before committing
- When you want hands-off audit-fix iteration
- Invoke with:
/audit-loop
Execution Steps
Step 1: Detect Changed Files
Run git diff --name-only HEAD and git diff --name-only --cached to get all modified and staged files. Filter to only .php, .phtml, and .xml files (auditable code). If no changed files are found, inform the user and stop.
Step 2: Start the Ralph Loop
Use the /ralph-loop command with the following prompt template. Replace {FILE_LIST} with the actual file list from Step 1.