---
title: "Run recipe-driven codebase migrations and framework upgrades with reviewable diffs through OpenRewrite"
description: "Apply reusable refactoring recipes to large codebases so framework upgrades and codemods happen as auditable, reviewable changes."
verification: "listed"
source: "https://github.com/openrewrite/rewrite"
author: "OpenRewrite"
publisher_type: "organization"
category:
  - "Templates & Workflows"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "openrewrite/rewrite"
  github_stars: 3395
---

# Run recipe-driven codebase migrations and framework upgrades with reviewable diffs through OpenRewrite

Apply reusable refactoring recipes to large codebases so framework upgrades and codemods happen as auditable, reviewable changes.

## Prerequisites

Java, Gradle or Maven

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Add the OpenRewrite Gradle or Maven plugin to the target repository, select or author the needed recipes, then run the rewrite task and review the generated diffs before merging.
```

## Documentation

- https://docs.openrewrite.org/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/run-recipe-driven-codebase-migrations-and-framework-upgrades-with-reviewable-diffs-through-openrewrite/)
