From re-scale
Convert an original source file (Java/Dart/Ruby/JS) to idiomatic Scala 3.
How this skill is triggered — by the user, by Claude, or both
Slash command
/re-scale:convert-fileThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert the original source file at `$ARGUMENTS` to idiomatic Scala 3.
Convert the original source file at $ARGUMENTS to idiomatic Scala 3.
Read the source: Open the original file at the path given by $ARGUMENTS
using the Read tool. NEVER fetch from GitHub — always use local copies
(submodules under original-src/ or similar). Extract author tags from
doc comments for the license header.
Add license header: The very first thing in the Scala file (before
package) must be the license header per the project's code style guide.
Include the original source path and authors.
Check existing conversion: Consult the project's CLAUDE.md Source Reference table for the path mapping (original -> Scala). Look for an existing Scala file at the mapped path. Check type-mappings docs for renamed/merged files.
Load conversion guides: Use the relevant guides for the source language:
/guide-conversion — Language-specific conversion rules/guide-nullable — Nullable[A] patterns/guide-control-flow — boundary/break patterns/guide-code-style — Formatting, headersExecute the conversion:
re-scale build compile to compile and check errors/warningsVerify compilation: re-scale build compile must show zero errors
and zero warnings.
Update tracking: Run re-scale db migration set <source_path> --status ai_converted
to update the file's migration status.
Write initial audit entry: Add a Migration notes: block to the file's
header comment documenting renames, convention changes, and idiom compliance.
Follow the format described in /re-scale:audit-file. Set Audited: to
today's date.
Do NOT use shell commands directly. Use re-scale commands and dedicated
tools only.
Porting is binary — 100% or not done. Every method, every branch, every
edge case in the original must be ported. See /guide-porting for the full
porting workflow.
npx claudepluginhub kubuszok/re-scale --plugin re-scaleTransforms a single function, module, or data structure between languages, paradigms, formats, or API versions while preserving behavior. Use for targeted refactoring, migration, or format conversion.
Provides enterprise Scala expertise in functional programming (ZIO, Cats Effect), distributed systems (Pekko, Akka, Spark), reactive streams, and DDD/microservices patterns.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.