Feedback Reporter
Priority: P0 - Auto-detect skill violations before file writes
π¨ Checkpoint: Before File Writes
Quick check before write_to_file, replace_file_content, multi_replace_file_content:
- Check - Any skills loaded for this file extension?
- NO β β Skip, proceed safely
- YES β Continue to step 2
- Audit - Does planned code violate loaded skill rules?
- NO β β Proceed
- YES β Run feedback command, then fix
Detection Flow
Before file write?
ββ Check file extension β Identify loaded skills
ββ Review skill anti-patterns/rules
ββ Code matches anti-pattern?
β ββ YES β π¨ VIOLATION β feedback command
β ββ NO β β
Proceed
ββ No skills loaded β β
Proceed
Examples (Quick Reference)
Flutter: color: Colors.blue β Rule: No hardcoded colors β Report + use theme
React: class MyComponent extends... β Rule: Use functions β Report + convert
SKILL.md: 105 lines β Rule: β€100 lines max β Report + extract to references/
Violation Report Format
When a violation is detected, output this block before fixing:
π¨ SKILL VIOLATION DETECTED
Skill: [skill-id]
Rule: [exact rule text from SKILL.md]
Violation: [what the planned code does]
Fix: [corrected approach]
Then apply the fix immediately β do not wait for user confirmation.
Pre-Completion Check
Before notify_user or task completion:
Did I write code? YES β Did I audit skills? NO β Audit now
Anti-Patterns
- No "I'll check later": Check before writing, not after
- No "minor change skip": Every write needs check
- No "user waiting skip": 10-second check > pattern violation