AgentSkillsCN

build-kmp

同时为Android和iOS两大平台构建KMP项目。当用户希望构建、编译或验证项目能否顺利编译时,此功能尤为适用。

SKILL.md
--- frontmatter
name: build-kmp
description: Build the KMP project for both Android and iOS platforms. Use when the user wants to build, compile, or verify the project compiles.
allowed-tools: Bash, Read
user-invocable: true

Build the DocuBox KMP Compose Multiplatform project for both platforms:

  1. Run Android build:

    code
    ./gradlew :composeApp:assembleDebug
    
  2. Run iOS framework build:

    code
    ./gradlew :composeApp:iosSimulatorArm64MainKotlinNativeCompile
    
  3. Report results:

    • If both succeed, confirm both platforms build cleanly
    • If either fails, show the error and suggest a fix
    • Flag any deprecation warnings in the output