openrewrite-violations

openrewrite-violations is a skill for Claude Code from motlin/claude-code-plugins. It costs 55 tokens per session (596 once invoked), scanned A, original, Apache-2.0.

A workflow for applying OpenRewrite recipes that find and fix code violations, with each named recipe handled in its own commit on a separate Git branch.

In plain words
What is it for?
Use it to create a cleanup branch, run configured recipes, record dry-run results, apply fixes, and verify the cumulative changes.
Why use it?
It makes large-scale code cleanup traceable and keeps each recipe's changes independently reviewable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the java plugin — 6 skills shipped together

Good fit Use it to create a cleanup branch, run configured recipes, record dry-run results, apply fixes, and verify the cumulative changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/motlin/claude-code-plugins/openrewrite-violations
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 motlin/claude-code-plugins --skill openrewrite-violations
Clone the repo
git clone --depth 1 https://github.com/motlin/claude-code-plugins

Made for: Claude Code.

Or install java, the plugin that ships this one along with the rest of its 6 skills.

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 openrewrite-violations

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/openrewrite-violations/github.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/openrewrite-violations)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/openrewrite-violations"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/openrewrite-violations/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 openrewrite-violations

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/openrewrite-violations"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/openrewrite-violations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.
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.00055 $0.00596
Opus 5.5 $0.00022 $0.00238
Sonnet 5.5 $0.00011 $0.00119
Haiku 4.5 $0.00006 $0.00060

Measured 22d ago against content hash 970867ef3dcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openrewrite-violations 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 22d 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.

plugins/java/skills/openrewrite-violations/SKILL.md · 54 lines

How it starts

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

Fix OpenRewrite Violations

Create a branch named openrewrite-violations (or the name the user supplies), then apply every configured OpenRewrite recipe that has violations one at a time, one commit per recipe, with the message Fix violations of OpenRewrite rule: <recipe>.

Follow the java:maven-cli skill for Maven, and the git:commit skill for commits.

Start from a clean checkout

Run git status --porcelain. If there are uncommitted changes, stop and tell the user: this workflow creates commits and must start clean. Do not stash, discard, or absorb their work.

Branch from the fetched upstream default branch:

git fetch origin
git switch -c openrewrite-violations origin/HEAD

Use git worktree add instead if the user is mid-work on another branch and their checkout should not move.

Find the recipes with violations

Follow the discovery, dry-run, and leaf-recipe sections of the java:openrewrite-analyze-recipes skill: the mise and justfile conventions, the rewrite-dry-run / rewrite <RECIPE> recipes, the profile flag, and the -Drewrite.pomCacheEnabled=false workaround all apply here. Treat each distinct named leaf recipe as one rule.

Present the ordered list to the user before applying changes.

Apply and commit each recipe

In a stable order, run each recipe in isolation against the tree left by the previous commits:

mise exec -- just rewrite <recipe>
# or: mise exec -- mvn rewrite:run -Drewrite.activeRecipes=<recipe> -Drewrite.pomCacheEnabled=false
  • Skip a recipe that produces no changes; an earlier one may have covered it. Never create an empty commit.
  • Stage only the files that recipe changed.
  • Run the repository's required checks for the change.
  • Commit with Fix violations of OpenRewrite rule: <fully-qualified-recipe>. through git:commit.

Verify the cumulative branch

After all commits, build and test the whole project (mise exec -- just test, or mvn verify). A recipe that applies cleanly in isolation can still break the cumulative tree, so this check is mandatory.

Read the full file on GitHub · 54 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. 22d ago Changed · -27 lines 970867ef3dcf
  2. 1mo ago Changed · +33 lines 84743ea045c0
  3. 1mo ago First seen · 48 lines · 55 tokens per session scan A 58bc760d9dc7

Subscribe to this mod's changes

openrewrite-violations is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 596 once invoked, about $0.0002 per session on Opus 5.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-04.

Related

Other skills, from other repositories

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

agent-merge-conflict-arbiter

Neutral arbiter for merge conflicts between two agents.

NousResearch/hermes-agent · 19 tokens

enable-check-includes-strict

Enable and migrate Chromium targets and directories to checkincludesstrict = true, diagnosing and resolving header include violations as part of the checkincludesstrict LSC. Use when adding directories to the allowlist, enabling strict header checks on targets, or resolving CHECKINCLUDESSTRICTUNTRIAGED targets.

chromium/chromium · 70 tokens

resolve-handoff

Emit the complete Resolve handoff with exact modes, outcomes, test evidence, and publication state.

omnigent-ai/omnigent · 23 tokens

reproduce-and-fix-issues

Reproduce triaged Slack bugs through a configured app-control adapter, verify existing fixes, and open a bounded draft pull request only after before-and-after proof. Use only from the configured Benny repro automation.

backnotprop/pstack · 48 tokens

comet-github-issue-fix

A workflow for fixing a confirmed Comet-related GitHub issue or review blocker within an isolated scope. It covers matching the work to the relevant workflow, testing the change, checking runtime results, and preparing a careful handoff.

rpamis/comet · 71 tokens