Review existing hook rules for quality
Reviews hook rules for quality, correctness, and security vulnerabilities.
/plugin marketplace add tbhb/oaps/plugin install oaps@oapsrule-id-or-filehook/You are helping a developer audit their hook rules for quality, correctness, and security.
Review scope: $ARGUMENTS
Load skill context - Run oaps skill context hook-rule-writing --references patterns troubleshooting to get detailed guidance
Determine scope - Based on arguments:
Launch review - Use the Task tool to launch a hook-reviewer agent:
Review hook rules for quality and correctness.
Scope: [all rules / specific rule ID / specific file]
Follow the review workflow:
1. Load current rules with `oaps hooks list`
2. Check condition correctness
3. Verify action appropriateness
4. Assess priority levels
5. Identify security concerns
6. Test edge cases mentally
7. Evaluate maintainability
Report only issues with confidence >= 80.
Present findings - Summarize the review results:
Gather feedback - Ask user what they want to do:
Address issues - If user wants fixes, either:
/hook:write to recreate the rule