mapping-graphql-models

Official

Map GraphQL payloads to Kotlin variants safely

AuthorAniTrend
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents data-layer drift by ensuring GraphQL schema, fragments, operations, Kotlin Serializable models, and remote/source wiring stay perfectly aligned.

Core Features & Use Cases

  • Schema-to-fragment mapping discipline: Decide AniList vs edge schema ownership before changing models.
  • Variant-correct model shaping: Map fragment fields to the intended Kotlin model variant (e.g., Core vs Extended) instead of spreading nullable fields across everything.
  • Wiring correctness checks: Verify @GraphQuery operation names, container generics, and source orchestration match the payload contract.
  • Atomic variable contract enforcement: Ensure GraphQL operation variables, IGraphPayload.toMap() keys, and domain params are updated together to avoid silent runtime mismatches.
  • High-risk drift prevention: Catch common failure patterns such as model-first changes, mismatched variable names, and edge/AniList conflation.

Quick Start

Ask the skill to review your intended GraphQL field change and produce a mapping plan covering schema ownership, fragment/operation selection, Kotlin variant mapping, and remote/source wiring.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: mapping-graphql-models
Download link: https://github.com/AniTrend/anitrend-v2/archive/main.zip#mapping-graphql-models

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 471,000+ vetted skills library on demand.