← ClaudeAtlas

add-feature-modulelisted

Creates a new feature module in the MetaSearch Android project using Circuit and Metro. Use this skill when requested to 'add feature module', 'add a new feature' or 'add a new screen'.
komodgn/meta-android · ★ 1 · AI & Automation · score 65
Install: claude install-skill komodgn/meta-android
# Feature Module Creation Skill This skill creates a new feature module in the `feature/` package. ## Prerequisites & Pre-steps Before generating the module, confirm: 1. **Screen Definition (Crucial)**: Before creating a new feature module, you **MUST** first add the new `Screen` definition to `com.metasearch.android.feature.screens.Screens.kt`. - Ensure the new `Screen` (object or data class) is defined and registered in that file. 2. **Module Naming**: - `{module}`: Must be **snake_case** (e.g., `person_detail`). - `{Module}`: Must be **PascalCase** (e.g., `PersonDetail`). 3. **Module Purpose** (What feature/screen this is for) 4. **Domain Dependencies** (Which `domain.*.api` modules are needed) ## Implementation Steps ### 1. Gradle Configuration (`build.gradle.kts`) Each feature module must use the standard feature plugins. **Note:** All feature modules automatically depend on `feature.screens`, so you do not need to add it manually. ```kotlin plugins { alias(libs.plugins.metasearch.android.feature) alias(libs.plugins.metasearch.test) } android { namespace = "com.metasearch.android.feature.{module}" } dependencies { // Note: projects.feature.screens is already provided by the feature plugin. // Add required Domain APIs here // implementation(projects.domain.{domain}.api) } ``` ### 2. File Structure Create the source directory structure: `feature/{module}/src/main/java/com/metasearch/android/feature/{module}/` ### Screen Defin