Skip to content

iammohdzaki/kmp-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

kmp-skills πŸ€–

A powerful, version-controlled library of AI Skills for Kotlin Multiplatform.

Teach your AI (Antigravity, Claude, Cursor, Copilot) how to write modern, production-ready KMP code without hallucinations.

Installation β€’ Features β€’ IDE Support β€’ Contributing


⚑ What is this?

kmp-skills is a monorepo of reusable AI skills (structured markdown instructions and modular reference files).

Instead of copying and pasting the same prompts into every new project, you install this repo globally into your AI assistant. The AI learns exactly how to structure an AGP 9.0+ project, how to scaffold MVI architecture, how to resolve real library versions, and how to audit your Compose UI for Material 3 compliance.

Install it once. Update it everywhere with a single git pull.


✨ Killer Features

1. πŸ—οΈ Interactive MVI Project Scaffold

The kmp-mvi-setup skill doesn't just dump code. It asks you 8 pre-flight questions (App Name, Target Platforms, DI, Networking, Serialization, Image Loading, Navigation, Local Storage). Based on your answers, the AI dynamically loads only the necessary reference modules to scaffold your app:

  • Storage: SQLDelight (KMP) or Room (Android/JVM) or DataStore
  • Network: Ktor + kotlinx.serialization
  • DI: Koin + constructor injection patterns
  • Architecture: Strict UiState / UiEvent / UiEffect data flow with a common BaseViewModel.

2. 🎨 Material 3 Compliance Auditing

The material3 skill teaches your AI the complete Material Design 3 spec for Compose Multiplatform. It features a Compliance Audit System. You can ask the AI to "Audit my UI", and it will generate a 12-category report (Color, Typography, Touch Targets, Contrast, Motion, etc.) grading your app from A to F with actionable code fixes. (Adapted from hamen/material-3-skill)

3. πŸ›‘οΈ Anti-Hallucination Version Protocol

AIs are notoriously bad at guessing compatible Gradle versions for KMP, AGP, and Compose. The kmp-versions skill forces the AI to execute a strict 5-step live fetch protocol β€” reading directly from official release pages (JetBrains, Android X, GitHub) before it ever writes a libs.versions.toml file.

4. πŸ“ AGP 9.0+ Multi-Module Layout

The single-module composeApp structure is dead. The kmp-project-structure skill enforces the new, modern KMP layout required for AGP 9.0+: a central shared/ module surrounded by thin androidApp/, desktopApp/, and iosApp/ shells.


πŸ’‘ How to Use Your New AI Skills

Once installed, your AI implicitly understands KMP best practices. You can trigger the skills naturally in your conversation.

Example 1: Scaffolding a new KMP Project

You say:

"Create a new KMP project."

AI responds:

"Before I scaffold your KMP project, I need a few details: 1. App name & package 2. Target platforms (Android + Desktop + iOS?) 3. Dependency Injection (Koin or Manual?) 4. Local Storage (SQLDelight or DataStore?) (...asks 8 pre-flight questions)..."

Once you answer, the AI will generate the perfect build.gradle.kts files, libs.versions.toml, and the UiState/UiEvent boilerplates specifically tailored to your choices.

Example 2: Material 3 Compliance Audit

You say:

"Audit my HomeScreen.kt for Material 3 compliance."

AI responds:

╔══════════════════════════════════════════════════════════╗
β•‘          MD3 COMPLIANCE AUDIT β€” HomeScreen.kt            β•‘
β•‘          KMP / Compose Multiplatform Edition             β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Score: 8.5 / 10   Grade: B

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ CATEGORY RESULTS                                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
[βœ…]  COLOR SYSTEM          [PASS]
[βœ…]  TYPOGRAPHY            [PASS]
[⚠️]  SHAPE                 [WARN]
[❌]  COMPONENTS            [FAIL]
... (all 12 categories listed)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FINDINGS & FIXES                                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
πŸ”΄ COMPONENTS (Fail): The `Icon` on line 45 is missing a `minimumInteractiveComponentSize()`.
🟑 SHAPE (Warn): Hardcoded `RoundedCornerShape(8.dp)`. Use `MaterialTheme.shapes.small`.

Would you like me to apply these fixes?

πŸš€ Installation

You can install all skills across your IDEs with a single command.

Windows (PowerShell)

Open PowerShell and run:

irm https://raw.githubusercontent.com/iammohdzaki/kmp-skills/main/get.ps1 | iex

Mac / Linux (Bash)

Open your terminal and run:

curl -fsSL https://raw.githubusercontent.com/iammohdzaki/kmp-skills/main/get.sh | bash

What the installer does:

  1. Clones this repository to ~/.kmp-skills/
  2. Creates Directory Junctions (symlinks) into Antigravity/Gemini (zero-copy, updates instantly on git pull).
  3. Safely appends a specific <!-- kmp-skills:start --> block into Claude's global CLAUDE.md.
  4. Registers a global kmp-skills command in your PowerShell profile.

πŸ’» IDE Support & Strategies

Because every AI tool stores global rules differently, the installer uses specific strategies for each:

AI Assistant Strategy Global Path
Antigravity / Gemini CLI Junction ~\.gemini\config\skills\<skill>\
Claude Code CLI Append ~\.claude\CLAUDE.md
Windsurf Append ~\.codeium\windsurf\memories\global_rules.md
Cursor Copy (.mdc) ~\.kmp-skills\cursor-rules\ (Junction this into project .cursor/rules/)
GitHub Copilot (VS Code) Copy %APPDATA%\Code\User\prompts\kmp-skills.instructions.md

πŸ› οΈ CLI Usage

Once installed, you can manage your skills from any terminal using the kmp-skills command.

# See all available skills in the library
kmp-skills list

# Check sync status across all installed IDEs
kmp-skills status -Target all

# Pull the latest community updates from GitHub and re-sync your IDEs
kmp-skills update -Target all

# Install specific skills to a local Cursor/Windsurf project
kmp-skills install -Target cursor -Project D:\Projects\MyNextGreatApp

# Uninstall from a specific IDE
kmp-skills uninstall -Target claude

🀝 Contributing

This is a community-driven library. If a new library becomes popular in KMP, or an existing one changes its API, we want to know!

  1. Check out the CONTRIBUTING.md for our skill writing guidelines.
  2. Ensure you use the FETCH protocol for versions instead of hardcoding them.
  3. Submit a Pull Request!

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.

About

Instead of copying and pasting the same prompts into every new project, you install this repo globally into your AI assistant. The AI learns exactly how to structure an AGP 9.0+ project, how to scaffold MVI architecture, how to resolve real library versions, and how to audit your Compose UI for Material 3 compliance.

Topics

Resources

License

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Contributors