kubuszok/re-scale/guide-nullable

Claude Code and agent skill by kubuszok/re-scale

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Nullable[A] opaque type patterns for null-safe Scala porting

Install

npx vskill@latest install kubuszok/re-scale/guide-nullable

SKILL.md

Nullable guide

Use Nullable[A] instead of raw null. The opaque type provides:

  • Nullable.empty[A] instead of null
  • Nullable(value) to wrap
  • .getOrElse(default) for safe unwrapping
  • .map(f) / .flatMap(f) for chaining
  • .orNull only at Java interop boundaries (requires @nowarn + comment)

Common patterns

scala
// Java: String result = map.get(key); // nullable
// Scala:
val result: Nullable[String] = Nullable(map.get(key))
result.getOrElse("default")
// Java: if (x != null) x.doSomething()
// Scala:
x.foreach(_.doSomething())

Never use null.asInstanceOf[T] — the shortcuts scanner flags it as null-cast.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kubuszok/re-scale/guide-nullable/badge)](https://verified-skill.com/skills/kubuszok/re-scale/guide-nullable)

Something wrong with this skill or its page? Tell us.