moai-lang-scala

Develop Scala 3.4 applications with Akka, Cats Effect, ZIO, and Spark.

67|27|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/modu-ai/cc-plugins --skill moai-lang-scala-modu-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-scala
Source: https://github.com/modu-ai/cc-plugins/tree/main/.claude/skills/moai-lang-scala
Command: npx skills add https://github.com/modu-ai/cc-plugins --skill moai-lang-scala-modu-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides expert-level assistance for developing complex applications in Scala 3.4+, streamlining the process of building distributed systems, big data pipelines, and functional programming applications.

Core Features & Use Cases

  • Language Features: Deep understanding of Scala 3.4+ syntax, including Given/Using, Enums, Opaque Types, and Extension Methods.
  • Frameworks: Expertise in Akka (actors, streams, clustering), Cats Effect (pure FP, concurrency), ZIO (effect system, layers), and Apache Spark (big data processing).
  • Use Case: You are building a real-time data processing pipeline using Spark and Akka Streams. You need to implement complex state management and ensure type safety across different modules. This Skill can guide you through setting up the project, writing efficient stream transformations, and leveraging Scala 3 features for robust code.

Quick Start

Use the moai-lang-scala skill to set up a new Scala 3.4 project using SBT, including dependencies for Cats Effect and Akka Typed.

Frequently Asked Questions about moai-lang-scala

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Scala 3.4 project with SBT for Cats Effect and Akka Typed?

To set up a Scala 3.4 project, configure your SBT build file with the correct Scala version and add dependencies for Cats Effect and Akka Typed. This establishes a robust JVM application foundation leveraging advanced language features.

What is the best way to manage complex state in a Spark and Akka Streams data pipeline?

The best way to manage state in a Spark and Akka Streams pipeline is to leverage Scala 3 features like Opaque Types for type safety. This ensures robust stream transformations and secure module state handling.

Can I use Scala 3 Given and Using clauses with ZIO layers for dependency injection?

Yes, you can use Scala 3 Given and Using clauses with ZIO layers. This combination allows precise effect system management and functional dependency injection within your distributed applications.

Does this approach support building real-time big data pipelines with Apache Spark and Scala 3?

Yes, this approach fully supports building real-time big data pipelines using Apache Spark and Scala 3. It facilitates efficient stream processing and complex state management for robust data applications.

Why use Cats Effect over ZIO for pure functional programming in Scala 3.4?

Cats Effect provides pure functional programming and concurrency control, while ZIO offers a comprehensive effect system with layers. Choosing between them depends on your specific functional programming architecture needs.

What are the limitations of using Enums and Extension Methods in Scala 3.4?

Enums and Extension Methods in Scala 3.4 enhance type safety and syntax flexibility. Limitations generally arise from complex type boundary interactions, requiring careful design to maintain code robustness.