Delegates coding standards violation scanning to a lightweight agent. Use when checking files for violations without loading full source files into context.
This skill delegates coding standards violation scanning to a specialized lightweight agent, keeping your context lean.
Invoke this skill when ANY of these conditions are true:
Without this skill: You would read full source files (100-500 lines each) to check for violations manually.
With this skill: The violation-scanner agent (haiku model) uses Grep patterns to find violations and returns a concise violation list.
Context savings: 80-95% reduction in violation-checking context usage.
When you need to check for violations, invoke the agent:
Task(subagent_type="violation-scanner", prompt="
Scan for coding standards violations.
Files to scan:
- src/services/user_service.py
- src/services/order_service.py
- src/utils/helpers.py
")
For directory scanning:
Task(subagent_type="violation-scanner", prompt="
Scan for coding standards violations.
Directory: src/services/
")
For specific standards focus:
Task(subagent_type="violation-scanner", prompt="
Scan for coding standards violations.
Files: src/api/endpoints.py
Focus on: hardcoded values, environment variable reads
")
The agent will:
Critical (must fix):
Warning (should fix):
You will receive a structured summary like:
## Violation Scan Results
**Files Scanned**: 5
**Violations Found**: 8
### Critical Violations
| File | Line | Violation | Rule |
|------|------|-----------|------|
| src/services/auth.py | 45 | `os.getenv('SECRET')` | no env reads in functions |
| src/services/auth.py | 89 | Global: `CACHE = {}` | no global mutable state |
### Warnings
| File | Line | Violation | Rule |
|------|------|-----------|------|
| src/services/user.py | 12 | Default arg: `id=None` | no default arguments |
| src/utils/helpers.py | 8 | `print()` statement | use logging |
### File Size Violations
| File | Lines | Limit |
|------|-------|-------|
| src/services/order.py | 623 | 500 |
### Summary by Category
- Hardcoded values: 1
- Environment reads: 1
- Global state: 1
- File size: 1
Scenario: Coder agent just finished implementing a new service.
Without skill: Read the 200-line service file, manually check each standards rule.
With skill:
Task(subagent_type="violation-scanner", prompt="
Scan for coding standards violations.
Files: src/services/new_service.py
")
Result: You get a violation list with exact line numbers in 20 lines of context.
This skill is particularly useful for:
coding-standards-checker - Post-implementation verificationrefactorer - Identifying what needs to be fixedcoder - Pre-commit validationacceptance-qa - Final quality gate