/d3nexus:android-api-integrationfrom d3nexus
Generates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern.
Ships in d3nexus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[!IMPORTANT] CHECK: Ensure that
features/{feature}/src/main/kotlinfollows the MVI architecture provided in the mason templates. Models must be separated intodata/models(withDtosuffix) anddomain/entities(withEntitysuffix, optional).
Role: Senior Android Architect Specialist.
Objective: Implement a complete end-to-end API integration for a specific feature, including Network Layer, Data Layer (Repository, Models), Domain Layer (UseCase, Entities), and Presentation Layer (ViewModel).
FEATURE_NAME: (e.g., "Payment", "Voucher", "CardManagement")BASE_URL: (The specific API endpoint for this feature)API_ENDPOINTS: (List of methods, paths, and return types)If the network module does not exist, create it.
features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/data/di/{FEATURE_NAME}NetworkModule.kt
Retrofit.Builder from :libraries:framework.Retrofit instance (specific to the feature).features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/data/datasources/remote/{FEATURE_NAME}ApiService.kt
NetworkResponse<T>.@Tag with FeatureConfig(appId = "...", featureName = "${FEATURE_NAME}").features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/data/datasources/remote/{FEATURE_NAME}RemoteDataSource.kt
NetworkResponse. NO TRY-CATCH.Create Data Transfer Objects for API requests/responses.
features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/data/models/Dto (e.g., UserDto.kt, LoginResponseDto.kt).@Keep, @JsonClass(generateAdapter = true), and @Json(name = "key").Create pure Kotlin classes for business logic.
features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/domain/entities/Entity (e.g., UserEntity.kt) or keep it simple if it's a core model (e.g., User.kt), but must not be the same as DTO.data/mappers/ to map Dto -> Entity.features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/domain/repository/{FEATURE_NAME}Repository.kt
DataState<T> (Domain Entity).features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/data/repository/{FEATURE_NAME}RepositoryImpl.kt
{FEATURE_NAME}RemoteDataSource.NetworkResponse -> Map DTO to Entity -> Return DataState.data/di/{FEATURE_NAME}DataModule.kt.
RepositoryImpl to Repository interface using @Binds.features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/domain/usecase/Get{FEATURE_NAME}DataUseCase.kt (or specific action name like LoginUseCase.kt).domain/di/{FEATURE_NAME}DomainModule.kt.
@ViewModelScoped).features/{feature_name_lowercase}/src/main/kotlin/com/danhdue/{feature_name_lowercase}/presentation/{screen}/{Screen}ViewModel.ktMviViewModel<State, Action, Event>.safeLaunch.currentState (or uiState.value).reduce { copy(...) }.DataState.Success and DataState.Error.data/models (plural), domain/entities (plural).{Name}RepositoryImpl (NOT Default...)....Dto.NetworkResponse in Data Source and DataState in Repository/ViewModel.Use the API Integration Skill to integrate:
- FEATURE_NAME: "Authentication"
- BASE_URL: "https://auth-service.com/"
- API_ENDPOINTS:
- POST /login (body: LoginRequestDto) -> LoginResponseDto
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices./api_integrationAutomate the end-to-end process of handling a new API request, from model generation to Data Source integration.Other plugins' skills for the same job