android-api-dto-safety

Community

Secure Android DTOs for API safety.

AuthorEnvy-7z
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses issues with Android Kotlin API Data Transfer Objects (DTOs) and their mapping, specifically focusing on nullability and contract safety to prevent runtime errors like NullPointerExceptions (NPEs) and parsing failures.

Core Features & Use Cases

  • DTO Hardening: Improves the robustness of DTOs used with libraries like Retrofit, Moshi, or Gson.
  • Nullability Safety: Ensures DTO fields correctly handle null values, preventing NPEs.
  • Contract Adherence: Verifies that DTOs accurately reflect the API's contract, minimizing parsing errors for 4xx/5xx responses.
  • Use Case: When an API response changes slightly, causing your app to crash due to unexpected nulls or missing fields in your Kotlin DTOs, this skill helps you safely adjust the DTOs and mappers to match the new contract without breaking existing functionality.

Quick Start

Safely adjust the Kotlin DTOs and mappers for the user API to handle potential null values in the 'address' field.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: android-api-dto-safety
Download link: https://github.com/Envy-7z/mobile-agent-skillpack/archive/main.zip#android-api-dto-safety

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.