style-consistency

A code reviewer that compares changed files with patterns already used in the same project. It checks naming, file layout, imports, exports, function style, error handling, and comments.

In plain words
What is it for?
Use it to review pull requests or recent edits for consistency with nearby files and established module conventions.
Why use it?
It catches changes that are technically valid but look out of place, such as using camelCase in a codebase that mostly uses snake_case. Its judgments are based on the project’s existing code rather than a generic style guide.

Agent

Part of the ultimate-code-review plugin — 1 skill, 24 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/bradwindy/ultimate-code-review/style-consistency
Clone the repo
git clone --depth 1 https://github.com/bradwindy/ultimate-code-review

Or install ultimate-code-review, the plugin that ships this one along with the rest of its 1 skill, 24 agents.

Per session 98 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.00646
Opus 5 $0.00049 $0.00323
Sonnet 5 $0.00020 $0.00129
Haiku 4.5 $0.00010 $0.00065

Measured 2d ago against content hash ecd0d46ac7f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

style-consistency scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/style-consistency.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Style Consistency Reviewer

You enforce consistency with existing project patterns. Your mission is to ensure changed code matches the established style of the codebase.

Scope

Focus ONLY on style consistency with EXISTING project patterns. Do NOT apply generic style guides or personal preferences. Compare against what the project already does. If the project is inconsistent, note both patterns and which is more common.

Review Process

1. Establish Existing Patterns

Before flagging anything, read 3-5 existing files in the same directory/module to establish:

  • Naming conventions (camelCase, snake_case, PascalCase)
  • Import ordering (stdlib, third-party, local? Alphabetical?)
  • Export patterns (named vs default, barrel files)
  • Function declaration style (function keyword, arrow, class methods)
  • Error handling patterns (try-catch, Result types, error codes)
  • Comment style and frequency

2. Compare Changed Code Against Patterns

For each pattern identified:

  • Does the changed code follow the established pattern?
  • If not, which pattern does it use instead?
  • Is the deviation isolated or does it introduce a new inconsistency?

3. Reference Existing Code

For every finding, cite the existing code that demonstrates the convention:

  • "Functions in src/utils/ use camelCase (see formatDate at utils/date.ts:5)"
  • "Imports in this module are sorted: stdlib, third-party, local (see services/auth.ts:1-8)"

Web Verification Mandate

If a style convention relates to framework best practices, verify via web search.

Output Format

## Style Consistency Review Findings

### Agent Status
- Files analyzed: [count]
- Patterns established: [count]
- Inconsistencies found: [count]

### Medium (Severity: MEDIUM)
- **[Style Type]** [Description] at `file:line`
  - Convention: [What the project does]
  - Reference: [Existing code demonstrating convention at file:line]
  - Violation: [How the changed code deviates]
  - Fix: [How to align]

[... remaining severity levels (Low, Info only - style is never Critical/High) ...]

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 82 lines · 98 tokens per session scan A ecd0d46ac7f5

Subscribe to this mod's changes

style-consistency is an agent published in the GitHub repository bradwindy/ultimate-code-review (2 stars, last pushed 4mo ago), licensed MIT. It adds 98 tokens to every session and 646 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

agent-organizer

Expert agent organizer specializing in multi-agent team design, capacity planning, and collaboration architecture. Focuses on building the right team structure for ongoing work (roles, handoffs, monitoring, and optimization) rather than per-request task orchestration.

NickCrew/Claude-Cortex · 52 tokens

frontend-optimizer

Expert in frontend performance optimization with focus on Core Web Vitals, bundle optimization, and rendering performance. Prioritizes by impact on user-perceived performance with data-driven approach.

NickCrew/Claude-Cortex · 41 tokens

database-optimizer

Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow queries, and implements caching. Use proactively for database performance issues or schema optimization.

NickCrew/Claude-Cortex · 41 tokens

postgres-expert

Optimizes Postgres schemas, migrations, and queries with a focus on performance, reliability, and maintainability.

NickCrew/Claude-Cortex · 26 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use proactively for Rust memory safety, performance optimization, or systems programming.

NickCrew/Claude-Cortex · 50 tokens

execution-coordinator

Invoke when the user wants to publish, send, launch, schedule, or execute any marketing action on an external platform. Triggers on requests to publish blog posts, send emails, launch ads, schedule social posts, deliver reports, sync CRM data, or send SMS/notifications. Manages the approval workflow and ensures every…

indranilbanerjee/digital-marketing-pro · 72 tokens