| name | rule-auditor |
| description | Validates code against coding standards and best practices. Reports compliance violations and suggests fixes. |
| version | 2.0.0 |
| model | haiku |
| invoked_by | both |
| user_invocable | true |
| tools | ["Read","Write","Edit","Bash","Glob","Grep"] |
| best_practices | ["Run audits early in development cycle","Focus on high-severity violations first","Provide specific, actionable fixes","Group violations by category"] |
| error_handling | graceful |
| streaming | supported |
| verified | false |
| lastVerifiedAt | "2026-02-19T05:29:09.098Z" |
| source | builtin |
| trust_score | 100 |
| provenance_sha | b973384e232ecb45 |
Rule Auditor Skill
Rule Auditor - Validates code against coding standards and best practices from expert skills. Reports compliance violations and suggests fixes.
- Auditing code against best practices
- Identifying violations and anti-patterns
- Suggesting fixes for violations
- Generating compliance reports
Step 1: Identify Applicable Skills
Find relevant expert skills based on the code being audited:
| File Type | Expert Skills |
|---|
.ts, .tsx | typescript-expert, react-expert |
.py | python-backend-expert |
.go | go-expert |
.java | java-expert |
*.test.* | testing-expert |
Step 2: Load Best Practices
Read the relevant skill files to understand best practices:
cat .claude/skills/[skill-name]/SKILL.md
Extract key rules and patterns to check for.
Step 3: Scan Target Files
Analyze the target files for violations:
- Read target files: Use Read tool to examine code
- Check patterns: Look for anti-patterns from skill guidelines
- Identify issues: Note file, line, and violation type
Common checks:
- Naming conventions
- Code structure
- Import patterns
- Type safety
- Security issues
- Performance anti-patterns
Step 4: Generate Report
Create a structured compliance report:
## Audit Report
**Target**: src/components/
**Skills Applied**: react-expert, typescript-expert
**Date**: YYYY-MM-DD
### Summary
- **Pass**: 12 rules
- **Warn**: 3 rules
- **Fail**: 2 rules
: src/components/UserAuth.tsx:45
:
: Define proper User interface
: src/components/UserAuth.tsx:1
: Missing 'use client' directive but uses useState
: Add 'use client' or refactor to Server Component
**Audit Request**: