Skip to content
Back to skills

Jade Recipe 1.7 Diamond Operator

ASecurity

Replaces explicit generic type arguments with Java 7 diamond operator (<>). Scans +/-2 lines for the pattern, skips already-converted lines. Removes JADE-FLAG:DIAMOND_OPERATOR comments. Atomic write. Invoked by jade-core-rule-dispatcher.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 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-diamond-operator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jade Recipe 1.7 Diamond Operator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jade Recipe 1.7 Diamond Operator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/therealseber-jade-recipe-1-7-diamond-operator/badge)](https://www.skillsdirectory.com/skills/therealseber-jade-recipe-1-7-diamond-operator)

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-diamond-operator
description: >-
  Replaces explicit generic type arguments with Java 7 diamond operator (<>).
  Scans +/-2 lines for the pattern, skips already-converted lines.
  Removes JADE-FLAG:DIAMOND_OPERATOR comments. Atomic write.
  Invoked by jade-core-rule-dispatcher.
arguments: [--file, --line]
---
# jade-recipe-1.7-diamond-operator

Converts `new HashMap<String, String>()` → `new HashMap<>()` for Java 7
type inference. Handles the edge case where the flag comment is adjacent
to (not on) the matched line. Skips lines already using `<>`.

Files in this skill

  • SKILL.md582 B
  • scripts/apply.py6.4 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.