mapping-graphql-models
OfficialMap GraphQL payloads to Kotlin variants safely
Software Engineering#graphql#kotlin#sealed classes#data-layer mapping#variant ownership#remote datasource#toMap variables
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
@GraphQueryoperation 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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.