rewrite-yaml
CommunityAutomate YAML refactoring with OpenRewrite, effortlessly.
Authorsjungling
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually writing and maintaining complex YAML transformations is error-prone and time-consuming. This Skill automates the test-first development of robust OpenRewrite recipes, ensuring high-quality, maintainable YAML refactoring.
Core Features & Use Cases
- Test-First Recipe Development: Guides you through writing failing tests before implementing YAML transformations.
- LST-Based Manipulation: Leverages OpenRewrite's Lossless Semantic Tree for precise, formatting-preserving YAML changes.
- JsonPath Matching: Utilizes powerful JsonPath expressions for targeted modifications in GitHub Actions, Kubernetes, and other YAML configs.
- Use Case: Automatically migrate all GitHub Actions workflows from
actions/checkout@v2toactions/checkout@v3across a large repository, ensuring all YAML formatting and comments are preserved.
Quick Start
Example: Generate boilerplate for a new recipe
python ./scripts/init_recipe.py --name MyYamlRecipe --package com.example.rewrite --description "My new YAML recipe"
Dependency Matrix
Required Modules
OpenRewritePython
Components
scriptsreferences
💻 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: rewrite-yaml Download link: https://github.com/sjungling/claude-plugins/archive/main.zip#rewrite-yaml Please download this .zip file, extract it, and install it in the .claude/skills/ directory.