Toolverse
All skills

python-scala-functional

by benchflow-ai

Guide for translating Python code to functional Scala style. Use when converting Python code involving higher-order functions, decorators, closures, generators, or when aiming for idiomatic functional Scala with pattern matching, Option handling, and monadic operations.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend

About this skill

Guide for translating Python code to functional Scala style. Use when converting Python code involving higher-order functions, decorators, closures, generators, or when aiming for idiomatic functional Scala with pattern matching, Option handling, and monadic operations.

How to use

  1. Zainstaluj umiejętność w swoim środowisku agenta Claude lub Copilota, wskazując repozytorium benchflow-ai/skillsbench.

  2. Przygotuj kod Pythona do konwersji — najlepiej fragmenty zawierające wyższe funkcje (funkcje przyjmujące lub zwracające funkcje), dekoratory, domknięcia lub generatory, ponieważ te struktury mają bezpośrednie odpowiedniki w funkcyjnej Scali.

  3. Przekaż kod Pythona umiejętności wraz z kontekstem — na przykład "Przetłumacz tę funkcję Pythona na Scalę, zachowując styl funkcyjny z pattern matchingiem".

  4. Umiejętność zastosuje konwersje: dekoratory zamieniają się na kompozycję funkcji, lambda funkcje Pythona na funkcje strzałkowe Scali (=>), a instrukcje match case na pattern matching Scali z obsługą Option dla wartości opcjonalnych.

  5. Przejrzyj wygenerowany kod Scali — zwróć uwagę na typy (Scala wymaga jawnych typów w sygnaturach funkcji), obsługę błędów przez Option zamiast None Pythona, oraz strukturę pattern matchingu, która jest bardziej wyrażista niż Python 3.10+.

  6. Jeśli kod zawiera generatory Pythona, umiejętność zasugeruje użycie iteratorów lub strumieni Scali (Stream, LazyList) w zależności od przypadku użycia.

Related skills

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296

seedream-image-gen

by openclaw

Generate images via Seedream API (doubao-seedream models). Synchronous generation.

Backend
6235