openrewrite-analyze-recipes

openrewrite-analyze-recipes is a skill for Claude Code, Codex from motlin/claude-code-plugins. It costs 57 tokens per session (563 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 CodeCodex

Part of the java plugin — 7 skills, 3 commands, 1 agent 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 skills/motlin/claude-code-plugins/openrewrite-analyze-recipes
Any agent
npx skills add motlin/claude-code-plugins --skill openrewrite-analyze-recipes
Clone the repo
git clone --depth 1 https://github.com/motlin/claude-code-plugins

Made for: Claude Code, Codex.

Or install java, the plugin that ships this one along with the rest of its 7 skills, 3 commands, 1 agent.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 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.00057 $0.00563
Opus 5 $0.00028 $0.00282
Sonnet 5 $0.00011 $0.00113
Haiku 4.5 $0.00006 $0.00056

Measured yesterday against content hash 9d153315d2e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 55 lines

How it starts

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

Analyze OpenRewrite Recipes

Inspect the repository before choosing commands. Follow the Maven CLI skill whenever invoking Maven.

Discover the invocation

  • Read the rewrite-maven-plugin configuration and record <activeRecipes> and <activeStyles>.
  • Prefer repository-provided just recipes when they configure profiles, dependencies, or toolchains.
  • Prefix commands with mise exec -- when the repository uses mise, and trust the checked-in config first when required.
  • When calling Maven directly, activate any profile that contains the rewrite plugin.
  • Never use Maven offline mode for this workflow.

Capture the dry run

Create .llm/ when needed and capture the complete output rather than only the terminal tail. Use the repository command or the equivalent Maven goal:

mvn rewrite:dryRun 2>&1 | tee .llm/rewrite-dryrun.log

Treat OpenRewrite's "Applying recipes would make changes" result as a successful violation report. If the run fails with a RocksdbMavenPomCache serialization error, rerun with -Drewrite.pomCacheEnabled=false; clearing the cache alone does not prevent recurrence.

Copy target/rewrite/rewrite.patch to .llm/rewrite-dryrun.patch when the patch exists.

Rank violations

Parse the recipe tree associated with every changed file. Count the most specific named leaf recipe in each branch. Prefer a named wrapper over a raw parameterized child recipe because a child displayed with inline options cannot be activated by name alone.

Save a two-column count and fully qualified recipe report in .llm/rewrite-violations-per-rule.txt. Report:

  • Total changed files
  • Patch line count
  • Total violations
  • Unique triggered recipes
  • Every recipe ranked by count

Mark composite recipes only when the log provides enough tree context to distinguish them reliably.

Optionally run one recipe

Present the highest-ranked leaf recipes and ask the user which recipe, if any, to apply. Before applying it, require a clean working tree; do not stash or discard changes.

Read the full file on GitHub · 55 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. yesterday 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 (15 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 563 once invoked, about $0.0003 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-04.

Related

Other skills, from other repositories

wxjava-api-contributor

按 WxJava 的 Maven 多模块、Java 8、公共 API 兼容性和 TestNG 约定,为微信官方接口新增或维护 SDK 支持。适用于新增 Service API、请求响应 Bean、序列化、HTTP 实现、Starter 配置或回归测试时。.

binarywang/WxJava · 68 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

azure-data-tables-java

Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.

microsoft/skills · 47 tokens