verify-kmp

Validate KMP source set organization and detect forbidden imports.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/oscardlfr/AndroidCommonDoc --skill verify-kmp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-kmp
Source: https://github.com/oscardlfr/AndroidCommonDoc/tree/main/skills/verify-kmp
Command: npx skills add https://github.com/oscardlfr/AndroidCommonDoc --skill verify-kmp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures the correct organization of KMP source sets and enforces the absence of forbidden imports, maintaining architectural integrity.

Core Features & Use Cases

  • Source Set Validation: Checks for correct organization of KMP source sets.
  • Forbidden Imports: Identifies and reports forbidden imports to maintain clean code.
  • Use Case: Use this Skill to verify that your KMP project adheres to architectural best practices and follows the correct import guidelines.

Quick Start

Use the verify-kmp skill to check your project for any forbidden imports.

Frequently Asked Questions about verify-kmp

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

FAQPage Schema
How do I validate Kotlin Multiplatform source set organization?

You can validate Kotlin Multiplatform source set organization by running a verification script that checks your project structure for correct source set usage and architecture compliance, ensuring your codebase adheres to best practices.

How do I detect and report forbidden imports in a KMP project?

To detect forbidden imports in a KMP project, scan your source sets to identify and report any restricted import statements, which helps maintain clean code and strict architectural integrity across your modules.

What is the best way to enforce architecture compliance in Kotlin Multiplatform?

The best way to enforce architecture compliance in Kotlin Multiplatform is by validating source set organization and restricting forbidden imports, which collectively maintain the structural integrity of your project.

Can I check for proper source set usage in my Kotlin Multiplatform project?

Yes, you can check for proper source set usage in your Kotlin Multiplatform project by validating the organization of your source sets, ensuring that your code is correctly partitioned across the intended platforms.

Why should I restrict forbidden imports in KMP source sets?

You should restrict forbidden imports in KMP source sets to maintain clean code and architectural integrity, preventing incorrect dependencies between modules and ensuring platform-specific code remains isolated.