style-enforcement

style-enforcement is a skill for Claude Code from rjmurillo/ai-agents. It costs 103 tokens per session (2,891 once invoked), scanned A, original, MIT.

A code-style checker that reads rules from files such as .editorconfig, StyleCop.json, and Directory.Build.props. It checks details like line endings and naming conventions.

In plain words
What is it for?
Use it to validate project style across a directory, staged files, or selected source files. It is especially useful before review or in automated checks.
Why use it?
It finds formatting and naming problems that can cause review comments or inconsistent code. It also lets you check only changed files or save results for automation.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Part of the project-toolkit plugin — 113 skills, 26 commands, 33 agents, 4 hooks shipped together

Good fit Use it to validate project style across a directory, staged files, or selected source files. It is especially useful before review or in automated checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjmurillo/ai-agents/style-enforcement
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.

Any agent
npx skills add rjmurillo/ai-agents --skill style-enforcement
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 113 skills, 26 commands, 33 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for style-enforcement

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/style-enforcement/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/style-enforcement)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/style-enforcement"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/style-enforcement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for style-enforcement

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/style-enforcement"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/style-enforcement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00103 $0.02891
Opus 5 $0.00051 $0.01445
Sonnet 5 $0.00021 $0.00578
Haiku 4.5 $0.00010 $0.00289

Measured 8d ago against content hash b9ecc0242fe0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

style-enforcement 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_style.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/style-enforcement/SKILL.md · 430 lines

How it starts

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

Style Enforcement

Validate code files against configured style rules from project configuration files.

Triggers

  • check style compliance
  • validate editorconfig rules
  • run style enforcement
  • check naming conventions
  • validate line endings

Quick Start

# Check all files in current directory
python3 scripts/check_style.py --target .

# Check only changed files (CI mode)
python3 scripts/check_style.py --git-staged

# Check specific files
python3 scripts/check_style.py src/models/user.cs src/services/auth.cs

# JSON output for automation
python3 scripts/check_style.py --target . --format json --output violations.json

Evidence

Created based on analysis of moq.analyzers closed PR reviewer patterns:

  • 9.8% of human reviewer feedback (11 of 112 comments) addressed naming/style conventions
  • Common patterns: line endings (CRLF vs LF), naming conventions (FooAsync), style guide violations
  • Examples: "Use lf not crlf", "Should be named FooAsync", "Conflicting style rules"

Source: .agents/analysis/moq-analyzers-reviewer-patterns-2026-02-08.md


Configuration Sources

The skill reads style configuration from these files (in priority order):

File Purpose Scope
.editorconfig EditorConfig standard All languages
.stylecop.json / stylecop.json StyleCop Analyzers rules C#
Directory.Build.props MSBuild properties .NET projects

.editorconfig Properties Checked

Property Values Languages
end_of_line lf, crlf, cr All
indent_style space, tab All
indent_size number All
charset utf-8, utf-8-bom, latin1 All
trim_trailing_whitespace true, false All
insert_final_newline true, false All

Read the full file on GitHub · 430 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 430 lines · 103 tokens per session scan A b9ecc0242fe0

Subscribe to this mod's changes

style-enforcement is a skill published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed yesterday), licensed MIT. It adds 103 tokens to every session and 2,891 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-09-03.