leonj1/external-claude-skills/violation-scanner
Claude Code and agent skill by leonj1/external-claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Delegates coding standards violation scanning to a lightweight agent. Use when checking files for violations without loading full source files into context.
Install
npx vskill@latest install leonj1/external-claude-skills/violation-scannerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/violation-scanner.
Violation Scanner Skill
This skill delegates coding standards violation scanning to a specialized lightweight agent, keeping your context lean.
When to Invoke This Skill
Invoke this skill when ANY of these conditions are true:
- Post-implementation check: Code was just written and needs standards verification
- Pre-refactor analysis: You need to identify violations before refactoring
- File size/complexity check: You need to verify files stay under 500 lines / 5 functions
- Standards compliance audit: You need to scan multiple files for violations
- Hardcoded value detection: You need to find hardcoded URLs, ports, credentials
Why Use This Skill?
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.
Invocation
When you need to check for violations, invoke the agent:
For directory scanning:
For specific standards focus:
What violation-scanner Will Do
The agent will:
- Detect language: Determine which standards apply based on file extensions
- Pattern scan: Use Grep to find violations without reading full files
- Check limits: Verify file size (<500 lines) and function count (<5)
- Categorize severity: Critical vs Warning violations
- Return summary: Concise violation list with file:line references
Violations Detected
Critical (must fix):
- Hardcoded secrets/credentials
- Global mutable state
- Environment reads in business logic
- File > 500 lines
- Functions > 5 per file
Warning (should fix):
- Missing type hints
- Default argument values
- Console/print statements
- Hardcoded URLs/ports (non-secret)
Expected Output
You will receive a structured summary like:
Example Usage
Scenario: Coder agent just finished implementing a new service.
Without skill: Read the 200-line service file, manually check each standards rule.
With skill:
Result: You get a violation list with exact line numbers in 20 lines of context.
Do NOT Invoke When
- You're already reading the file for other reasons (check violations while reading)
- The file is very small (<50 lines) - just read it directly
- You only need to check one specific pattern (use Grep directly)
- The user has explicitly said to skip standards checks
Consumers
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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/violation-scanner/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leonj1/external-claude-skills/violation-scanner)