重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
moai-lang-scala by modu-ai/moai-adk
npx skills add https://github.com/modu-ai/moai-adk --skill moai-lang-scala适用于 JVM 应用程序的函数式编程、效应系统和大数据处理。
自动触发:Scala 文件 (.scala, .sc),构建文件 (build.sbt, project/build.properties)
核心能力:
关键生态系统库:
此技能采用渐进式披露,包含专业模块:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在 build.sbt 中,将 ThisBuild / scalaVersion 设置为 "3.4.2" 并设置 organization。定义 lazy val root 项目,其设置包括 name 和 libraryDependencies。添加 cats-effect、zio、akka-actor-typed、http4s-ember-server、circe-generic 和用于测试范围的 scalatest 的依赖项。包含用于弃用、功能警告和 Xfatal-warnings 的 scalacOptions。
扩展方法:使用带括号参数的 extension 关键字。定义诸如按空白字符分割单词以及截断前检查长度、取字符并附加省略号等方法。
Given 和 Using:定义具有抽象方法签名的 trait。使用 with 关键字创建 given 实例并实现该方法。创建带有 using 参数子句的函数以进行隐式解析。
枚举类型:定义带有泛型类型参数和正变体注解的 enum。创建带参数的 case 条目。使用 match 表达式在 enum 上定义方法以处理每种情况,返回适当的结果。
最新文档的库映射:
核心 Scala:
效应系统:
Akka 生态系统:
HTTP 和 Web:
大数据:
ScalaTest:使用 Matchers 扩展 AnyFlatSpec。使用带 should 的字符串描述来定义行为。使用 shouldBe 进行相等性检查断言。
MUnit with Cats Effect:扩展 CatsEffectSuite。使用字符串名称定义测试。返回包含 assertEquals 断言的 IO。
ZIO Test:扩展 ZIOSpecDefault。将规范定义为包含测试条目的套件。使用 for 推导式来运行效应并产生 assertTrue 断言。
常见问题:
效应系统问题:
全面的参考资料:
最后更新:2026-01-11 状态:生产就绪 (v2.1.0)
每周安装次数
57
代码仓库
GitHub 星标数
888
首次出现
2026年1月22日
安全审计
安装于
codex49
opencode48
gemini-cli46
claude-code46
github-copilot43
cursor42
Functional programming, effect systems, and big data processing for JVM applications.
Auto-Triggers: Scala files (.scala, .sc), build files (build.sbt, project/build.properties)
Core Capabilities:
Key Ecosystem Libraries:
This skill uses progressive disclosure with specialized modules:
In build.sbt, set ThisBuild / scalaVersion to "3.4.2" and organization. Define lazy val root project with settings including name and libraryDependencies. Add dependencies for cats-effect, zio, akka-actor-typed, http4s-ember-server, circe-generic, and scalatest for test scope. Include scalacOptions for deprecation, feature warnings, and Xfatal-warnings.
Extension Methods: Use extension keyword with parameter in parentheses. Define methods like words splitting on whitespace and truncate checking length before taking characters and appending ellipsis.
Given and Using: Define trait with abstract method signature. Create given instance with with keyword and implement the method. Create functions with using parameter clause for implicit resolution.
Enum Types: Define enum with generic type parameters and plus variance annotations. Create case entries with parameters. Define methods on enum using match expression to handle each case, returning appropriate results.
Library mappings for latest documentation:
Core Scala:
Effect Systems:
Akka Ecosystem:
HTTP and Web:
Big Data:
ScalaTest: Extend AnyFlatSpec with Matchers. Use string description with should in for behavior. Make assertions with shouldBe for equality checks.
MUnit with Cats Effect: Extend CatsEffectSuite. Define test with string name. Return IO containing assertEquals assertions.
ZIO Test: Extend ZIOSpecDefault. Define spec as suite with test entries. Use for-comprehension to run effects and yield assertTrue assertions.
Common Issues:
Effect System Issues:
For comprehensive reference materials:
Last Updated: 2026-01-11 Status: Production Ready (v2.1.0)
Weekly Installs
57
Repository
GitHub Stars
888
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex49
opencode48
gemini-cli46
claude-code46
github-copilot43
cursor42
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
123,700 周安装
ln-700项目引导器:从零创建或迁移项目到生产就绪架构(Docker/CI/CD)
219 周安装
测试隔离与反模式审计工具 - 自动化检测代码测试中的隔离违规与不良模式
220 周安装
线性任务规划器(协调器)ln-300-task-coordinator:AI驱动的任务分解与自动化协调工具
219 周安装
故事协调器:AI驱动史诗分解工具,自动化用户故事创建与规划
219 周安装
World Labs:AI 驱动 3D 环境生成器,文本/图像一键创建逼真游戏世界
57 周安装
iOS测试路由器:Swift Testing、XCUITest、异步测试与调试完整指南
219 周安装