evo-python-to-scala

evo-python-to-scala is a skill for Claude Code, Codex from Zhang-Henry/CoEvoSkills. It costs 67 tokens per session (654 once invoked), scanned A, original, Apache-2.0.

A translation workflow for converting Python code into idiomatic Scala 2.13 code, including matching common types, names, and programming patterns between the languages.

In plain words
What is it for?
Use it to translate enums, unions, optional values, protocols, data classes, generators, and other Python patterns, then validate the result by compiling it with sbt.
Why use it?
It reduces the guesswork involved in adapting Python’s flexible structures to Scala’s type system and conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate enums, unions, optional values, protocols, data classes, generators, and other Python patterns, then validate the result by compiling it with sbt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhang-henry/coevoskills/evo-python-to-scala
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Zhang-Henry/CoEvoSkills --skill evo-python-to-scala
Clone the repo
git clone --depth 1 https://github.com/Zhang-Henry/CoEvoSkills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evo-python-to-scala

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-python-to-scala/github.svg)](https://agentmods.dev/skills/zhang-henry/coevoskills/evo-python-to-scala)
Your own site
<a href="https://agentmods.dev/skills/zhang-henry/coevoskills/evo-python-to-scala"><img src="https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-python-to-scala/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evo-python-to-scala

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhang-henry/coevoskills/evo-python-to-scala"><img src="https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-python-to-scala.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.00654
Opus 5 $0.00034 $0.00327
Sonnet 5 $0.00013 $0.00131
Haiku 4.5 $0.00007 $0.00065

Measured 9d ago against content hash 979abcddbafd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

evo-python-to-scala scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/utils.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

artifacts/skills/python-scala-translation/evo-python-to-scala/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python to Scala Translation Skill

This skill provides utilities for translating Python code to idiomatic Scala 2.13.

Key Translation Patterns

  1. Enums → sealed trait + case objects
  2. Union types → sealed trait ADT with case class variants
  3. Optional → Option[T]
  4. Protocol → type class trait with implicit instances
  5. dataclass → case class (immutable by default)
  6. ABC/abstractmethod → abstract class/trait with abstract methods
  7. isinstance chains → pattern matching
  8. Mutable defaults → immutable defaults (Map.empty, etc.)
  9. snake_case → camelCase for methods/vals
  10. TypeVar covariant/contravariant → [+A]/[-A] variance annotations
  11. datetime → java.time.LocalDateTime/LocalDate
  12. Decimal → BigDecimal
  13. json → circe (Json type, spaces2/noSpaces)
  14. Generators/yield → Iterator with lazy evaluation
  15. Builder pattern → fluent methods returning this

Compilation Notes

  • sbt picks up .scala files from root AND src/main/scala, causing duplicates
  • Temporarily rename root-level .scala file during sbt compile
  • Need project/build.properties with sbt version
  • Package name must match directory structure under src/main/scala/

Usage Example

import sys
sys.path.insert(0, '/app/environment/skills/evo-python-to-scala/scripts')
from utils import (
    run_end_to_end,
    validate_deliverable,
    compile_scala,
    validate_required_elements,
    snake_to_camel
)

# Define required elements from task
required = [
    'TokenType', 'Token', 'BaseTokenizer', 'StringTokenizer',
    'NumericTokenizer', 'TemporalTokenizer', 'UniversalTokenizer',
    'WhitespaceTokenizer', 'TokenizerBuilder', 'tokenize',
    'tokenizeBatch', 'toToken', 'withMetadata'
]

# Validate the deliverable
result = validate_deliverable(
    scala_output='/root/Tokenizer.scala',
    package_name='tokenizer',
    required_names=required
)
print(f"Valid: {result['valid']}")
print(f"Issues: {result['issues']}")
print(f"Found: {result['found_elements']}")

# Full end-to-end (compile + validate)
result = run_end_to_end(
    python_file='/root/Tokenizer.py',
    scala_output='/root/Tokenizer.scala',
    package_name='tokenizer',
    required_names=required,
    root_dir='/root'
)
print(f"Success: {result['success']}")
for step in result['steps']:
    print(f"  {step}")

Read the full file on GitHub · 78 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 78 lines · 67 tokens per session scan A 979abcddbafd

Subscribe to this mod's changes

evo-python-to-scala is a skill published in the GitHub repository Zhang-Henry/CoEvoSkills (65 stars, last pushed 19d ago), licensed Apache-2.0. It adds 67 tokens to every session and 654 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens