[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BX13BYHDN0653225FQFCT7":3,"skill-same:01M7BX13BYHDN0653225FQFCT7":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BX13BYHDN0653225FQFCT7","create-openrewrite-recipe",null,"Write, fix, or test an OpenRewrite recipe, including declarative YAML, Refaster templates, Java visitors, and scanning recipes. Use when a task asks for a new or changed recipe. Do not use to run an existing recipe.","CognitionAI\u002Fdevin-marketplace","CognitionAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163493330?v=4","01M7BVSRD98NC4FG8T3EZS6V5M","Cognition","01M7BVSRDX111C2XPWJ0E6MY26",29,"MIT","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fmoderne\u002Fskills\u002Fcreate-openrewrite-recipe\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: create-openrewrite-recipe\ndescription: Write, fix, or test an OpenRewrite recipe, including declarative YAML, Refaster templates, Java visitors, and scanning recipes. Use when a task asks for a new or changed recipe. Do not use to run an existing recipe.\n---\n\n# Create an OpenRewrite recipe\n\nSearch the [recipe catalog](https:\u002F\u002Fcodegenomeproject.org\u002Frecipes) first, or call `searchForRecipe` if the Moderne MCP server is connected. Write a recipe only when no existing one does the job.\n\n## Choose the recipe type\n\nUse the simplest type that works.\n\n| Need | Type |\n| --- | --- |\n| Compose or configure existing recipes | Declarative YAML |\n| Replace one expression or statement with another | Refaster template |\n| Make a decision that depends on the surrounding code | Imperative Java |\n| Generate files, or see every source file before changing any | `ScanningRecipe` |\n\n## Set up the project\n\nStart a new project from [rewrite-recipe-starter](https:\u002F\u002Fgithub.com\u002Fmoderneinc\u002Frewrite-recipe-starter). In an existing project, import `org.openrewrite.recipe:rewrite-recipe-bom` and add `org.openrewrite:rewrite-test` as a test dependency.\n\nRewrite modules are distributed through the Code Genome Project repository, which requires authentication. Follow the [development environment guide](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-development-environment). If dependencies do not resolve, report that instead of guessing at versions or repositories.\n\n## Declarative recipes\n\nPut the YAML in `src\u002Fmain\u002Fresources\u002FMETA-INF\u002Frewrite\u002F`.\n\n```yaml\n---\ntype: specs.openrewrite.org\u002Fv1beta\u002Frecipe\nname: com.yourorg.UseNewLogger\ndisplayName: Use the new logger\ndescription: Replaces the old logger type with the new one.\nrecipeList:\n  - org.openrewrite.java.ChangeType:\n      oldFullyQualifiedTypeName: com.yourorg.OldLogger\n      newFullyQualifiedTypeName: com.yourorg.NewLogger\n```\n\n## Refaster templates\n\nWrite a class with `@BeforeTemplate` and `@AfterTemplate` methods. The `rewrite-templating` annotation processor generates the recipe at build time. See [the Refaster guide](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frefaster-recipes).\n\n## Imperative recipes\n\nExtend `org.openrewrite.Recipe` and implement `getDisplayName()`, `getDescription()`, and `getVisitor()`. Declare options with `@Option`, and use Lombok's `@Value` with `@EqualsAndHashCode(callSuper = false)` so the recipe stays immutable and serializable.\n\nFollow these rules:\n\n* Change nothing when you cannot prove a change is safe, and keep each change minimal.\n* Return a new visitor from every `getVisitor()` call, and keep no mutable state on the recipe.\n* Never mutate an LST. Use `with` methods, and return the same object when nothing changes.\n* Create code with `JavaTemplate` rather than building LST elements by hand.\n* Add a `Preconditions.check` when the recipe applies only to some source files.\n* Decide deliberately whether each `visit` method calls `super`, because that controls traversal.\n* Pass state within a visitor with cursor messages, and across files with a `ScanningRecipe`.\n* Finish the work in one cycle unless a later cycle is essential.\n* Remember that a repository can have several modules, so do not assume one project per run.\n\n## Test the recipe\n\nEvery recipe needs a test with a change and a test with no change. One string in a source spec asserts no change, and two strings assert before and after.\n\n```java\nclass UseNewLoggerTest implements RewriteTest {\n    @Override\n    public void defaults(RecipeSpec spec) {\n        spec.recipe(new UseNewLogger());\n    }\n\n    @Test\n    void replacesOldLogger() {\n        rewriteRun(\n            java(\n                \"\"\"\n                class A { com.yourorg.OldLogger logger; }\n                \"\"\",\n                \"\"\"\n                class A { com.yourorg.NewLogger logger; }\n                \"\"\"\n            )\n        );\n    }\n}\n```\n\n* For a declarative recipe, use `spec.recipeFromResources(\"com.yourorg.UseNewLogger\")`.\n* When the before code needs a library, use `spec.parser(JavaParser.fromJavaVersion().classpath(\"library-name\"))`. The after code does not need it on the classpath.\n\nRun the tests with the project's build tool. The recipe is finished when they pass.\n\n## References\n\n* [Recipe conventions](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-conventions-and-best-practices)\n* [Writing a Java recipe](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Fwriting-a-java-refactoring-recipe)\n* [Recipe testing](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-testing)\n* [Data tables](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Fdata-tables)\n","# Create an OpenRewrite recipe\n\nSearch the [recipe catalog](https:\u002F\u002Fcodegenomeproject.org\u002Frecipes) first, or call `searchForRecipe` if the Moderne MCP server is connected. Write a recipe only when no existing one does the job.\n\n## Choose the recipe type\n\nUse the simplest type that works.\n\n| Need | Type |\n| --- | --- |\n| Compose or configure existing recipes | Declarative YAML |\n| Replace one expression or statement with another | Refaster template |\n| Make a decision that depends on the surrounding code | Imperative Java |\n| Generate files, or see every source file before changing any | `ScanningRecipe` |\n\n## Set up the project\n\nStart a new project from [rewrite-recipe-starter](https:\u002F\u002Fgithub.com\u002Fmoderneinc\u002Frewrite-recipe-starter). In an existing project, import `org.openrewrite.recipe:rewrite-recipe-bom` and add `org.openrewrite:rewrite-test` as a test dependency.\n\nRewrite modules are distributed through the Code Genome Project repository, which requires authentication. Follow the [development environment guide](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-development-environment). If dependencies do not resolve, report that instead of guessing at versions or repositories.\n\n## Declarative recipes\n\nPut the YAML in `src\u002Fmain\u002Fresources\u002FMETA-INF\u002Frewrite\u002F`.\n\n```yaml\n---\ntype: specs.openrewrite.org\u002Fv1beta\u002Frecipe\nname: com.yourorg.UseNewLogger\ndisplayName: Use the new logger\ndescription: Replaces the old logger type with the new one.\nrecipeList:\n  - org.openrewrite.java.ChangeType:\n      oldFullyQualifiedTypeName: com.yourorg.OldLogger\n      newFullyQualifiedTypeName: com.yourorg.NewLogger\n```\n\n## Refaster templates\n\nWrite a class with `@BeforeTemplate` and `@AfterTemplate` methods. The `rewrite-templating` annotation processor generates the recipe at build time. See [the Refaster guide](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frefaster-recipes).\n\n## Imperative recipes\n\nExtend `org.openrewrite.Recipe` and implement `getDisplayName()`, `getDescription()`, and `getVisitor()`. Declare options with `@Option`, and use Lombok's `@Value` with `@EqualsAndHashCode(callSuper = false)` so the recipe stays immutable and serializable.\n\nFollow these rules:\n\n* Change nothing when you cannot prove a change is safe, and keep each change minimal.\n* Return a new visitor from every `getVisitor()` call, and keep no mutable state on the recipe.\n* Never mutate an LST. Use `with` methods, and return the same object when nothing changes.\n* Create code with `JavaTemplate` rather than building LST elements by hand.\n* Add a `Preconditions.check` when the recipe applies only to some source files.\n* Decide deliberately whether each `visit` method calls `super`, because that controls traversal.\n* Pass state within a visitor with cursor messages, and across files with a `ScanningRecipe`.\n* Finish the work in one cycle unless a later cycle is essential.\n* Remember that a repository can have several modules, so do not assume one project per run.\n\n## Test the recipe\n\nEvery recipe needs a test with a change and a test with no change. One string in a source spec asserts no change, and two strings assert before and after.\n\n```java\nclass UseNewLoggerTest implements RewriteTest {\n    @Override\n    public void defaults(RecipeSpec spec) {\n        spec.recipe(new UseNewLogger());\n    }\n\n    @Test\n    void replacesOldLogger() {\n        rewriteRun(\n            java(\n                \"\"\"\n                class A { com.yourorg.OldLogger logger; }\n                \"\"\",\n                \"\"\"\n                class A { com.yourorg.NewLogger logger; }\n                \"\"\"\n            )\n        );\n    }\n}\n```\n\n* For a declarative recipe, use `spec.recipeFromResources(\"com.yourorg.UseNewLogger\")`.\n* When the before code needs a library, use `spec.parser(JavaParser.fromJavaVersion().classpath(\"library-name\"))`. The after code does not need it on the classpath.\n\nRun the tests with the project's build tool. The recipe is finished when they pass.\n\n## References\n\n* [Recipe conventions](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-conventions-and-best-practices)\n* [Writing a Java recipe](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Fwriting-a-java-refactoring-recipe)\n* [Recipe testing](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Frecipe-testing)\n* [Data tables](https:\u002F\u002Fdocs.openrewrite.org\u002Fauthoring-recipes\u002Fdata-tables)\n",{"name":5,"description":7},"main","9836d94e88404aabb682086405c2aa9cba7657ac","plugins\u002Fmoderne\u002Fskills\u002Fcreate-openrewrite-recipe",156,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace","https:\u002F\u002Fgithub.com\u002FCognitionAI","https:\u002F\u002Fcognition.ai\u002F","Makers of Devin, the AI software engineer.","2026-11-13 07:08:23",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add CognitionAI\u002Fdevin-marketplace --skill create-openrewrite-recipe",{"tool":39,"command":40},"bunx","bunx skills add CognitionAI\u002Fdevin-marketplace --skill create-openrewrite-recipe",{"tool":42,"command":43},"pnpm","pnpm dlx skills add CognitionAI\u002Fdevin-marketplace --skill create-openrewrite-recipe","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fmoderne\u002Fskills\u002Fcreate-openrewrite-recipe\u002FSKILL.md",true,[],[48,54,61,67,74,81],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7BYC4AJGM98P2G9JH7QS24Z","business-data","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwindsor-ai\u002Fskills\u002Fbusiness-data\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7BYBZ0CD4CBCPZHRZ551BNK","workflow","Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of \"workflow\", \"durable functions\", \"resumable\", \"workflow sdk\", \"queue\", \"event\", \"push\", \"subscribe\", or step-based orchestration.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002Fupstream\u002FSKILL.md",[],[],{"skillNo":62,"name":56,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7BYB1XSZHKHD8JZTQJ62JN0","Vercel Workflow SDK expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7BYASGMK935J33E21N5WTW0","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7BY9WJERKSKEH9HK6E71GW2","vercel-storage","Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7BY9N034894YV2J9DCRZHYS","vercel-services","Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[]]