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.
git clone --depth 1 https://github.com/motlin/claude-code-pluginsnpx agentmods add skills/motlin/claude-code-plugins/openrewrite-analyze-recipesWrote 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.
[](https://agentmods.dev/skills/motlin/claude-code-plugins/openrewrite-analyze-recipes)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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 2mo 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.
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-pluginconfiguration inpom.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, runmise trustfirst and prefix every command withmise exec --. Without the right JDK, the build fails withrelease version NN not supported. - If a justfile defines
rewrite-dry-runandrewrite <RECIPE>recipes, prefer them; they already activate the right profile and recipe dependencies. Otherwise usemvn rewrite:dryRunandmvn 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
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.
- 2mo ago Changed · -24 lines 1788d0b4cbf5
- 2mo ago Changed · +40 lines · +2 tokens per session 2eaf145cfcde
- 3mo ago First seen · 55 lines · 57 tokens per session scan A 9d153315d2e4
openrewrite-analyze-recipes is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed 2d ago), 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.
openrewrite-analyze-recipes compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openrewrite-analyze-recipesmotlin/claude-code-plugins | Skill | 20 | 2d ago | Apache-2.0 | A | 59 | Claude Code |
| java-affected-testsopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 120 | Claude Code |
| azure-communication-chat-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 41 | Claude Code |
| azure-communication-common-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 35 | Claude Code |
| azure-security-keyvault-secrets-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 40 | Claude Code |
| azure-ai-anomalydetector-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 43 | Claude Code |
| azure-ai-agents-persistent-javamicrosoft/skills | Skill | 3.3k | today | MIT | A | 63 | Claude Code |