apollo-ios
Skill by apollographql
Apollo iOS guides you through building Apple-platform apps with Apollo iOS, a strongly typed GraphQL client for Swift. It covers Swift Package Manager setup, code generation, ApolloClient configuration and SwiftUI operations.
Install apollo-ios
Built from the published package, never by AI.
git clone --depth 1 https://github.com/apollographql/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/apollo-ios ~/.claude/skills/apollo-iosRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/apollographql/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/apollo-ios ~/.gemini/antigravity-cli/skills/apollo-iosAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Apollo iOS is a skill that guides an AI assistant through building Apple-platform applications with Apollo iOS, a strongly typed GraphQL client for Swift. It covers adding the SDK through Swift Package Manager, writing an apollo-codegen-config.json file, and running code generation from GraphQL operations and a schema. It also covers configuring an ApolloClient with auth, interceptors and caching.
The skill describes writing queries, mutations and subscriptions from SwiftUI view models, and writing tests against generated Mock types. It lists support for iOS 15+, macOS 12+, tvOS 15+, watchOS 8+ and visionOS 1+. It is aimed at Swift developers using Apollo iOS v2 or later with Swift Concurrency.
Written from the project's SKILL.md and checked against it.
What it can do
- Add Apollo iOSGuides adding Apollo iOS to a Swift Package Manager or Xcode project.
- Codegen configurationWrites apollo-codegen-config.json and runs code generation.
- ApolloClient setupConfigures a client with auth, interceptors and caching.
- SwiftUI operationsWrites queries, mutations and subscriptions from SwiftUI views.
- CachingCovers in-memory and SQLite cache choices and @typePolicy cache keys.
- InterceptorsCovers auth token, logging, retry and APQ interceptors.
- SubscriptionsCovers HTTP multipart and WebSocket subscription transports.
- Testing with mocksWrites tests against generated Mock types and ApolloTestSupport.
What you need
- Swift 6.1 or later
- Xcode 16 or later
- apollo-ios-cli installed
- Swift Package Manager
Try asking
- Add Apollo iOS to my Xcode project and set up codegen
- Write a SwiftUI view model that runs a GraphQL query with async/await
- Configure an ApolloClient with an auth interceptor that refreshes on 401
Good to know
- Targets Apollo iOS v2 and later. v1.x and v0.x are legacy.
- CocoaPods and Carthage are not the recommended install method.
- Codegen should not be run from an Xcode Run Script build phase.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/apollo-ios/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(apollo-ios-cli:*) Bash(swift:*) Bash(xcodebuild:*) Bash(git:*) Read Write Edit Glob Grep WebFetch
Alternatives to apollo-ios
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
apollo-ios: common questions
Which Apple platforms does Apollo iOS support in this skill?
The skill lists iOS 15+, macOS 12+, tvOS 15+, watchOS 8+ and visionOS 1+. It also requires Swift 6.1+ and Xcode 16+.
Should I run code generation on every Xcode build?
No. The skill says not to wire apollo-ios-cli generate into an Xcode Run Script build phase because it slows compile times. Regenerate manually or through a script alias.
Are generated test mocks enabled by default?
No. The canonical config ships with output.testMocks set to none. The skill says to enable it when the first test needing Mock types is written.
How do I install apollo-ios?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is apollo-ios free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is apollo-ios safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to apollo-ios?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
