Audit patterns
Agent skills for agentic coding tools. Extremely opinionated. Updated (almost) daily.
npx -y skills add JHostalek/dotclaude --skill audit-patternsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when auditing and unifying pattern consistency in a scope — divergent implementations of the same concern, reimplementations of existing utilities, naming violations, import disorder, unused dependencies. Triggers on "audit patterns", "fix inconsistencies", "unify conventions", "fix reimplementations", "pattern review".
SKILL.md
1.5 KB, as published. Nobody here has run it
!cat "${CLAUDE_SKILL_DIR}/../audit-workflow.md"
Run as the patterns dimension.
Count occurrences — >60% of the codebase solves a problem one way → that's the target. Introduce only patterns already present in the project; consistency outweighs local optimality. Lenses, in priority order:
- Same problem solved the same way (data access, error handling, async, validation, configuration)
- Reimplementations of existing utilities — inline duplicate is the divergence; fix is to import
- Naming conventions detected from existing code, not imposed
- Predictable API/CLI/interface shape across public surfaces
- Import ordering; zero unused imports or dependencies
Drop justified variance — external library requirements, proven constraints, framework boundaries. Check git log on divergent files: recent divergence → usually accidental; old divergence → may be intentional.
<approval_gate> Auto-fix: import existing utility, rename to dominant convention, reorder imports, drop unused dependencies. Sign-off when the dominant pattern itself is wrong — sweeping the majority pattern is a separate decision from cleaning up outliers. </approval_gate>