jade-recipe-1.7-strings-in-switch

Community

Turn if-chains into switch statements fast

AuthorTheRealSeber
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates a targeted Java refactor by replacing repetitive string-comparison conditional chains with cleaner switch statements, making legacy migration rules easier to apply and review.

Core Features & Use Cases

  • Sequential chain conversion: Transforms if (v.equals("A")) return ...; if (v.equals("B")) return ...; patterns into a switch (v) structure.
  • If / else-if / else conversion: Rewrites convertible multi-branch decision trees into a switch with a default branch when appropriate.
  • Safe fallback behavior: Defers ambiguous or single-branch cases by marking them for manual review instead of forcing an unsafe rewrite.
  • Use Case: A migration pass flags string-based conditionals across a Java codebase, and this Skill converts the eligible chains while preserving the rest for later inspection.

Quick Start

Use the jade-recipe-1.7-strings-in-switch skill to rewrite the flagged Java file at the specified line into a switch statement or defer it when conversion is not safe.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: jade-recipe-1.7-strings-in-switch
Download link: https://github.com/TheRealSeber/PolishedJADEite/archive/main.zip#jade-recipe-1-7-strings-in-switch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.