openrewrite-recipe-writer
OfficialAutomate code refactoring with expert recipe guidance.
Software Engineering#automation#developer tools#static analysis#OpenRewrite#code refactoring#recipe writing#Java
Authoropenrewrite
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Writing OpenRewrite recipes for automated code refactoring can be complex, requiring deep knowledge of recipe types, Lossless Semantic Tree (LST) manipulation, testing strategies, and best practices. This Skill simplifies the entire process, guiding you from concept to a fully tested, production-ready recipe.
Core Features & Use Cases
- Intelligent Recipe Type Selection: Get expert advice on choosing between Declarative YAML, Refaster, or Imperative Java recipes based on your specific refactoring needs.
- Structured Code Generation: Access templates and best practices for structuring your recipe classes, implementing visitors, and leveraging
JavaTemplatefor complex code modifications. - Comprehensive Testing Guidance: Learn how to write robust tests using
RewriteTest, covering positive cases, negative cases, and multi-file scenarios to ensure your recipes are reliable. - Use Case: Imagine you need to migrate a deprecated API across hundreds of files in a large codebase. This Skill helps you quickly author an OpenRewrite recipe that automates the entire migration, saving countless hours of manual refactoring and ensuring consistency.
Quick Start
Navigate to the skill directory
cd claude-skill
Set your Anthropic API key (if not already set)
echo "your-anthropic-api-key" > anthropic.key
Upload or update the skill to Claude API
./upload-skill.sh
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: openrewrite-recipe-writer Download link: https://github.com/openrewrite/rewrite-docs/archive/main.zip#openrewrite-recipe-writer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.