openrewrite-violations
БесплатноБез исполняемых скриптовНе проверенApply every configured OpenRewrite recipe with violations on a dedicated branch, creating one commit per named leaf recipe and verifying the cumulative…
от motlin★ 20 звёзд на 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>.throughgit: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.
If a recipe produced non-compiling or failing code, find its commit with git log --oneline, then fold a fix into that commit (without combining unrelated rules) or drop it.
Report
List the commits created and any recipes skipped for producing no changes. Do not push or open a pull request unless asked.
Установить openrewrite-violations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл openrewrite-violations?
Apply every configured OpenRewrite recipe with violations on a dedicated branch, creating one commit per named leaf recipe and verifying the cumulative result. Use when asked to fix all OpenRewrite violations, create an OpenRewrite cleanup branch, or commit recipe changes separately.
Как установить скилл openrewrite-violations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openrewrite-violations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic