agentsclimarketplace

Audit patterns

Skill JHostalek/dotclaude/skills/audit-patterns

Agent skills for agentic coding tools. Extremely opinionated. Updated (almost) daily.

Install
npx -y skills add JHostalek/dotclaude --skill audit-patterns

Assembled 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:

  1. Same problem solved the same way (data access, error handling, async, validation, configuration)
  2. Reimplementations of existing utilities — inline duplicate is the divergence; fix is to import
  3. Naming conventions detected from existing code, not imposed
  4. Predictable API/CLI/interface shape across public surfaces
  5. 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>

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.