Converts .equals() if-chains to Java 7 switch statements. Handles sequential if-return and if-else-if-else patterns. Defers unconvertible single branches via JADE-MODERNIZATION-DEFERRED. Removes JADE-FLAG:STRINGS_IN_SWITCH comments on success. Invoked by jade-core-rule-dispatcher.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add TheRealSeber/PolishedJADEite --skill jade-recipe-1.7-strings-in-switch --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Jade Recipe 1.7 Strings In Switch?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/therealseber-jade-recipe-1-7-strings-in-switch)More formats (shields.io, HTML) on the badges page.
---
name: jade-recipe-1.7-strings-in-switch
description: >-
Converts .equals() if-chains to Java 7 switch statements.
Handles sequential if-return and if-else-if-else patterns.
Defers unconvertible single branches via JADE-MODERNIZATION-DEFERRED.
Removes JADE-FLAG:STRINGS_IN_SWITCH comments on success.
Invoked by jade-core-rule-dispatcher.
arguments: [--file, --line]
---
# jade-recipe-1.7-strings-in-switch
Converts multi-branch `if (var.equals("X"))` chains to `switch (var)` with
string case labels. Two patterns supported:
- **Sequential if-return:** `if (v.equals("A")) return ...; if (v.equals("B")) return ...;`
- **If-else-if-else:** `if (v.equals("A")) {...} else if (v.equals("B")) {...} else {...}`
Single-branch flags are deferred via `JADE-MODERNIZATION-DEFERRED:STRINGS_IN_SWITCH`
for manual review.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.