Skip to content
Back to skills

Jade Recipe 1.7 Strings In Switch

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
ai-agentsjava

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add TheRealSeber/PolishedJADEite --skill jade-recipe-1.7-strings-in-switch --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Jade Recipe 1.7 Strings In Switch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/therealseber-jade-recipe-1-7-strings-in-switch/badge)](https://www.skillsdirectory.com/skills/therealseber-jade-recipe-1-7-strings-in-switch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md829 B
  • scripts/apply.py21.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.