python-scala-syntax-mapping

python-scala-syntax-mapping is a skill for Claude Code, Codex from xuansenpa1/skillrevise. It costs 50 tokens per session (1,287 once invoked), scanned A, a copy of python-scala-syntax-mapping, MIT.

A reference guide for translating common Python syntax into Scala, including variables, types, control flow, comprehensions, and operators.

In plain words
What is it for?
Use it as a lookup while rewriting Python code or learning how everyday Python constructs are expressed in Scala.
Why use it?
It removes the need to work out equivalent Scala forms while moving code from Python to Scala.

Skill for Claude CodeCodex

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

Good fit Use it as a lookup while rewriting Python code or learning how everyday Python constructs are expressed in Scala.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuansenpa1/skillrevise/python-scala-syntax-mapping
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 xuansenpa1/skillrevise --skill python-scala-syntax-mapping
Clone the repo
git clone --depth 1 https://github.com/xuansenpa1/skillrevise

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 python-scala-syntax-mapping

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping/github.svg)](https://agentmods.dev/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping)
Your own site
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping/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 python-scala-syntax-mapping

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/python-scala-syntax-mapping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.
Origin 100% copy Near-identical to another mod 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.00050 $0.01287
Opus 5.5 $0.00020 $0.00515
Sonnet 5.5 $0.00010 $0.00257
Haiku 4.5 $0.00005 $0.00129

Measured 2mo ago against content hash 431bcff1cc97, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-scala-syntax-mapping 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 2mo ago.

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.

Origin

This is a copy

100% identical to python-scala-syntax-mapping — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

data/skillsbench/tasks/python-scala-translation/environment/skills/python-scala-syntax-mapping/SKILL.md · 210 lines

How it starts

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

Python to Scala Syntax Mapping

Variable Declarations

Python Scala
x = 5 val x = 5 (immutable) or var x = 5 (mutable)
x: int = 5 val x: Int = 5
x, y = 1, 2 val (x, y) = (1, 2)

Prefer val over var unless mutation is required.

Type Mappings

Python Scala
int Int
float Double
str String
bool Boolean
None None (of type Option) or null
list[T] List[T] or Seq[T]
dict[K, V] Map[K, V]
set[T] Set[T]
tuple[A, B] (A, B) or Tuple2[A, B]
Optional[T] Option[T]

Control Flow

Conditionals

# Python
if x > 0:
    result = "positive"
elif x < 0:
    result = "negative"
else:
    result = "zero"
// Scala - if is an expression
val result = if (x > 0) "positive"
             else if (x < 0) "negative"
             else "zero"

Loops

# Python for loop
for i in range(10):
    print(i)

for item in items:
    process(item)

for i, item in enumerate(items):
    print(f"{i}: {item}")
// Scala equivalents
for (i <- 0 until 10) println(i)

for (item <- items) process(item)

for ((item, i) <- items.zipWithIndex) println(s"$i: $item")

While loops

# Python
while condition:
    do_something()
// Scala
while (condition) {
  doSomething()
}

Comprehensions

# Python list comprehension
squares = [x ** 2 for x in range(10)]
evens = [x for x in numbers if x % 2 == 0]
pairs = [(x, y) for x in xs for y in ys]
// Scala for-comprehensions or map/filter
val squares = (0 until 10).map(x => x * x).toList
val evens = numbers.filter(_ % 2 == 0)
val pairs = for { x <- xs; y <- ys } yield (x, y)

Functions

# Python
def add(a: int, b: int) -> int:
    return a + b

# Lambda
square = lambda x: x ** 2

# Default arguments
def greet(name: str, greeting: str = "Hello") -> str:
    return f"{greeting}, {name}!"

Read the full file on GitHub · 210 lines

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. 2mo ago First seen · 210 lines · 50 tokens per session scan A 431bcff1cc97

Subscribe to this mod's changes

python-scala-syntax-mapping is a skill published in the GitHub repository xuansenpa1/skillrevise (58 stars, last pushed 2mo ago), licensed MIT. It adds 50 tokens to every session and 1,287 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to python-scala-syntax-mapping, differing in 0 lines, and is treated as a copy.

Related

python-scala-syntax-mapping compared with skills from other repositories

python-scala-syntax-mapping next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-scala-syntax-mappingxuansenpa1/skillreviseSkill582mo agoMITA50Claude Code, Codex
matlabK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.2k2d agoApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill45k2d agoMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill796todayApache-2.0A93Claude Code