Expand description
Code Quality Verification Hook
This hook verifies code quality before writing files, preventing invalid code from being written and returning errors to AI for correction.
§Verification Strategy
none: No verificationpost: Verify after write (default, current behavior)pre: Verify before write, block if errorspre-quick: Quick syntax check before write, full check after
§Workflow
- Detect file type (Rust, TypeScript, Python, Go)
- Write to temporary file for verification
- Run appropriate verification command
- If errors found, block write and return errors to AI
- AI corrects code and tries again
Structs§
- Code
Quality Hook - Code quality verification hook
Enums§
- Verification
Strategy - Verification strategy