Index of every page on this site: llms.txt
All skills
apollographql avatar

/apollo-kotlin

@9dda139 official
by Apollo GraphQLapollographql/skills134 stars
14
Run it yourself

Guide for building applications with Apollo Kotlin, the GraphQL client library for Android and Kotlin. Use this skill when: (1) setting up Apollo Kotlin in a Gradle project for Android, Kotlin/JVM, or KMP, (2) configuring schema download and codegen for GraphQL services, (3) configuring an `ApolloClient` with auth, interceptors, and caching, (4) writing queries, mutations, or subscriptions,

Use this Skill: https://skilld.dev/gh/apollographql/skills/apollo-kotlin

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈102 tokens for metadata: the name and description. ≈372 when used: this file. ≈2.4k more on demand in 4 files.

Description uses 5.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈409 characters, or 5.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Apollo Kotlin Guide

Apollo Kotlin is a strongly typed GraphQL client that generates Kotlin models from your GraphQL operations and schema, that can be used in Android, JVM, and Kotlin Multiplatform projects.

Process

Follow this process when adding or working with Apollo Kotlin:

  • Confirm target platforms (Android, JVM, KMP), GraphQL endpoint(s), and how schemas are sourced.
  • Configure Gradle and code generation, including custom scalars
  • Create a shared ApolloClient with auth, logging, and caching.
  • Implement operations.
  • Validate behavior with tests and error handling.

Reference Files

  • Setup - Gradle plugin, schema download, codegen config (including scalars), client configuration (auth, logging, interceptors)
  • Operations - Queries, mutations, subscriptions, and how to execute them
  • Caching - Setup and use the normalized cache
  • Migration Guide - Migrate from Apollo Kotlin 4

Scripts

Key Rules

  • Prefer Apollo Kotlin v5+. Do not use v3 or older versions.
  • Keep schema and operations in source control to make builds reproducible.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a comprehensive guide and supporting scripts for integrating Apollo Kotlin into Android, JVM, and Kotlin Multiplatform projects. All external resources, scripts, and dependencies are sourced from the official Apollo GraphQL organization or well-known services like GitHub.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    5/6 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9dda139. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 5 months ago
What it can do
Runs commands
compatibility
JVM 8+, Kotlin 1.9+, Gradle 8+, Android/JVM/Kotlin Multiplatform projects.
metadata
{
  "author": "apollographql",
  "version": "1.0.3"
}
All 1 allowed tools
Bash(./gradlew:*) Bash(gradle:*) Bash(curl:*) Read Write Edit Glob Grep WebFetch
  • apollo
  • graphql
  • kotlin
  • android
  • gradle
  • codegen
  • kmp
  • jvm
  • client

README badge

README badge for apollographql/skills/apollo-kotlin

Instructs an AI agent on setting up and using Apollo Kotlin, the strongly typed GraphQL client for Android, JVM, and Kotlin Multiplatform projects. Covers Gradle configuration, schema codegen, ApolloClient setup with auth and caching, and writing GraphQL operations. Targets Apollo Kotlin v5+ projects.

Generated from the current SKILL.md.

Does this skill work with Android, JVM, and Kotlin Multiplatform projects?
Yes. Apollo Kotlin supports Android, JVM, and Kotlin Multiplatform (KMP) projects. It requires JVM 8+, Kotlin 1.9+, and Gradle 8+.
What version of Apollo Kotlin should I use?
Use Apollo Kotlin v5 or later. The skill includes a migration guide from v4 but does not support v3 or older versions.
Can this skill help with schema download and code generation?
Yes. The skill covers Gradle plugin setup, schema download configuration, and code generation including custom scalar types.
Does this cover authentication and caching?
Yes. The skill includes guidance on configuring ApolloClient with auth, interceptors, and setting up the normalized cache.
Can I use this skill for queries, mutations, and subscriptions?
Yes. The skill covers implementing and executing queries, mutations, and subscriptions in Apollo Kotlin.

Generated from the current SKILL.md. These answers refresh after source changes.