new-module-checklist

Guide adding a new Gradle module with build, DI, and architecture wiring.

51|6|Updated Mar 10, 2019
One-click install
npx skills add https://github.com/AniTrend/anitrend-v2 --skill new-module-checklist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-module-checklist
Source: https://github.com/AniTrend/anitrend-v2/tree/main/.agents/skills/new-module-checklist
Command: npx skills add https://github.com/AniTrend/anitrend-v2 --skill new-module-checklist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Gradle-module misconfiguration by guiding you through every required wiring step when introducing a new Android/Kotlin module to AniTrend v2.

Core Features & Use Cases

  • Conventions-first module creation: Ensures the new module is placed in the correct directory family and follows the repo’s expected layout.
  • Correct Gradle + build registration: Covers updating settings.gradle.kts, registering the module in Modules.kt, and relying on CorePlugin conventions.
  • Koin and domain/data wiring guidance: Helps you hook the new module into the nearest Koin aggregator, and structure domain repositories and use cases appropriately (including hybrid operation splits).
  • Validation and integration checks: Recommends assembling the module and running formatting checks to catch configuration errors early.

Quick Start

Use the new-module-checklist Skill to generate a step-by-step plan for adding a new Gradle module and wiring it into build, Koin DI, and the domain/data architecture correctly.

Frequently Asked Questions about new-module-checklist

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

FAQPage Schema
How do I add a new Gradle module to an Android project without breaking build conventions?

Adding a new Gradle module requires updating settings.gradle.kts, registering it in the central module registry, and relying on CorePlugin conventions. You must also place the module in the correct directory family and run assemble and formatting validation to catch configuration errors early.

How do I wire Koin dependency injection when creating a new Android module?

To wire Koin dependency injection for a new module, hook the module into the nearest Koin aggregator and configure the Koin loaders appropriately. This ensures your new feature, data, or common module integrates seamlessly with the existing Android architecture and dependency injection graph.

What is the correct way to structure domain and data interfaces in a new Kotlin module?

Structuring domain and data interfaces in a new module involves organizing domain repositories and use cases appropriately, including handling hybrid operation splits. Following this architectural convention ensures clean separation between your data layer and domain logic within the Android codebase.

When should I extend an existing module surface instead of creating a new Gradle module?

You should extend an existing module surface instead of creating a new Gradle module when the new functionality logically fits within the current architecture. Evaluating this during module creation prevents unnecessary module sprawl and maintains the repository's expected layout and build conventions.

What build validation steps are needed after introducing a new Gradle module?

After introducing a new Gradle module, the required build validation steps are assembling the module and running formatting checks. These integration checks validate the Gradle registration and Koin wiring, catching configuration errors early before they impact the broader Android build.

Does Gradle module creation support different module types like feature and data modules?

Yes, Gradle module creation applies across multiple types including feature, data, common, task, and android helper modules. Each module type follows the same conventions-first approach for settings inclusion, central registry updates, and Koin dependency injection wiring.