review/conventions

Free catalog · v0.0.18

Reviews changed code against declared repository rules and well-supported conventions inferred from existing code.

Checks

review/conventions checks changed code against evidence-backed repository conventions rather than a universal style guide.

AreaEvidence considered
Declared policyApplicable agent instructions, contributor and style guides, formatter and linter configuration, build rules, and test configuration
Local implementationRepeated patterns in the same component, package, or directory
Cross-implementation consistencySibling language, platform, adapter, and backend implementations
APIs and errorsEstablished public naming, parameter, return-value, error, logging, and compatibility patterns
State and architectureOwnership, lifecycle, layering, dependency, persistence, and configuration conventions
TestsRepository-specific test structure, assertion patterns, fixtures, and coverage expectations
Declared file placementExact same-directory, adjacency, named-folder, and counterpart relationships stated by an applicable repository policy

Evidence threshold

A declared convention needs one authoritative repository source that applies to the changed code. An inferred convention needs at least three consistent, independent examples in an applicable scope. Every finding must also cite the changed line that deviates from that convention. Generic best practices, personal taste, and single-example mimicry are outside this adversary's scope. Common layouts such as __tests__ are never violations by themselves; file placement is reported only when an applicable authoritative policy states the relationship and the concrete counterpart path proves the mismatch.

Inferred conventions use at most two audits over changed paths, with three retrieval rounds and forty file operations per audit. Declared audits run only for matching extracted rules. Inferred searching is deliberately bounded and may miss subtle patterns.

More from the registry