openrewrite-analyze-recipes

openrewrite-analyze-recipes is a skill for Claude Code from motlin/claude-code-plugins. It costs 59 tokens per session (1,076 once invoked), scanned A, original, Apache-2.0.

A command-line skill for previewing OpenRewrite recipes, which are automated code-change rules, in a Java project. It reports which files each rule would change and can test one rule without saving changes.

In plain words
What is it for?
Use it to inspect Maven projects, run an OpenRewrite dry run, count affected files, rank recipes by impact, and save the proposed patch.
Why use it?
It helps you understand the size and impact of automated code cleanup before applying it. You can compare rules without accidentally modifying the repository.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cp ./target/rewrite/rewrite.patch .llm/rewrite-dryrun.patch.

Part of the java plugin — 6 skills shipped together

Good fit Use it to inspect Maven projects, run an OpenRewrite dry run, count affected files, rank recipes by impact, and save the proposed patch.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/motlin/claude-code-plugins
agentmods
npx agentmods add skills/motlin/claude-code-plugins/openrewrite-analyze-recipes

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-analyze-recipes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/openrewrite-analyze-recipes"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/openrewrite-analyze-recipes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,076 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.00059 $0.01076
Opus 5.5 $0.00024 $0.00430
Sonnet 5.5 $0.00012 $0.00215
Haiku 4.5 $0.00006 $0.00108

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

Security

Grade A, and why

openrewrite-analyze-recipes 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-analyze-recipes/SKILL.md · 71 lines

How it starts

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

Analyze OpenRewrite Recipes

Dry-run all configured OpenRewrite recipes, rank them by violation count, and optionally run one selected recipe in isolation. Follow the java:maven-cli skill whenever invoking Maven, and never use offline mode.

Discover the invocation

  • Find the rewrite-maven-plugin configuration in pom.xml. Record the fully-qualified <recipe> names inside <activeRecipes> and any <activeStyles>. If the plugin configuration sits inside a <profile>, add --activate-profiles <that-profile> to every direct Maven call.
  • If a mise.toml, .mise.toml, or .mise/ config exists, run mise trust first and prefix every command with mise exec --. Without the right JDK, the build fails with release version NN not supported.
  • If a justfile defines rewrite-dry-run and rewrite <RECIPE> recipes, prefer them; they already activate the right profile and recipe dependencies. Otherwise use mvn rewrite:dryRun and mvn rewrite:run -Drewrite.activeRecipes=<recipe>.

Capture the dry run

Capture the full log in .llm/, not just the terminal tail. It takes minutes.

mvn rewrite:dryRun 2>&1 | tee .llm/rewrite-dryrun.log | tail -20
cp ./target/rewrite/rewrite.patch .llm/rewrite-dryrun.patch

The dry run fails with Applying recipes would make changes when violations exist. That is the violation report, not an error.

If it fails with MismatchedInputException, RocksdbMavenPomCache, or Failed to parse or resolve the Maven POM, that is OpenRewrite's RocksDB pom-cache serialization bug (a Jackson @ref mismatch, usually after an OpenRewrite version bump). Rerun with -Drewrite.pomCacheEnabled=false. Clearing ~/.rewrite-cache alone does not fix it; the bug recurs on the regenerated cache. Once the flag is needed, carry it into every later run.

Count violations per recipe

Each changed file is preceded in the log by indented [WARNING] lines forming the tree of recipes that touched it. Count them:

grep '\[WARNING\]' .llm/rewrite-dryrun.log \
  | grep -E '^\S+\s+\[WARNING\]\s{4,}' \
  | sed 's/.*\[WARNING\] *//' \
  | sort | uniq -c | sort -rn \
  > .llm/rewrite-violations-per-rule.txt

Read the full file on GitHub · 71 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 · -24 lines 1788d0b4cbf5
  2. 1mo ago Changed · +40 lines · +2 tokens per session 2eaf145cfcde
  3. 1mo ago First seen · 55 lines · 57 tokens per session scan A 9d153315d2e4

Subscribe to this mod's changes

openrewrite-analyze-recipes is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 1,076 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

java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…

open-metadata/OpenMetadata · 120 tokens

azure-security-keyvault-secrets-java

Azure Key Vault Secrets Java SDK for secret management. Use when storing, retrieving, or managing passwords, API keys, connection strings, or other sensitive configuration data.

microsoft/skills · 40 tokens

azure-ai-anomalydetector-java

Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate/multivariate anomaly detection, time-series analysis, or AI-powered monitoring.

microsoft/skills · 43 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

union-type-wrappers

Add typed getters and setters over BinaryData properties that represent TypeSpec union types in generated Java models. Use when generated classes expose BinaryData for union-typed fields and you need ergonomic, type-safe accessors instead.

Azure/azure-sdk-for-java · 49 tokens