跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Apollo Ios

技能 已验证 活跃

Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift. Use this skill when: (1) adding Apollo iOS to a Swift Package Manager or Xcode project, (2) configuring `apollo-codegen-config.json` and running code generation, (3) configuring an `ApolloClient` with auth, interceptors, and caching, (4) writing queries, mutations, or subscriptions from SwiftUI views, (5) writing tests against generated operation mocks.

目的

To guide developers in effectively building Apple-platform applications using Apollo iOS, streamlining the integration, configuration, and usage of the GraphQL client.

功能

  • Guides Apollo iOS integration with SPM and Xcode.
  • Configures `apollo-codegen-config.json` and code generation.
  • Covers `ApolloClient` setup with auth, interceptors, and caching.
  • Explains writing queries, mutations, and subscriptions from SwiftUI.
  • Details testing strategies with generated operation mocks.

使用场景

  • Setting up Apollo iOS in a new SwiftUI project.
  • Adding authentication tokens to GraphQL requests.
  • Implementing persistent caching with SQLite.
  • Handling GraphQL subscriptions from SwiftUI views.
  • Writing unit tests against generated mock data.

非目标

  • Supporting legacy Apollo iOS versions (v1.x, v0.x).
  • Using CocoaPods or Carthage for distribution.
  • Wiring code generation into Xcode Run Scripts.
  • Providing a network transport for non-GraphQL protocols.

安装

请先添加 Marketplace

/plugin marketplace add apollographql/skills
/plugin install skills@apollo-marketplace

质量评分

已验证
100 /100
1 day ago 分析

信任信号

最近提交2 days ago
星标62
许可证MIT
状态
查看源代码

类似扩展

Cli Creator

100

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

技能
openai

Swift Expert

99

Builds iOS/macOS/watchOS/tvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async/await concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await concurrency. Invoke for protocol-oriented programming, SwiftUI state management, actors, server-side Swift, UIKit integration, Combine, or Vapor.

技能
jeffallan

Xcode Project Setup

99

Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).

技能
firebase

IOS Expert

98

Expert on iOS development with Swift, UIKit, SwiftUI, Xcode, app architecture, platform features, and Apple ecosystem integration. Invoke when user mentions iOS, iPhone, iPad, Swift, SwiftUI, UIKit, Xcode, Apple development, or iOS-specific features.

技能
raintree-technology

Sentry Cocoa Sdk

98

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install sentry-cocoa", or configure error monitoring, tracing, profiling, session replay, or logging for Apple applications. Supports SwiftUI and UIKit.

技能
getsentry

Context Mode Ops

100

使用并行子代理军队管理 context-mode GitHub 问题、PR、发布和营销。为每个任务编排 10-20 个动态代理。在分类问题、审查 PR、发布版本、撰写 LinkedIn 帖子、宣布发布、修复错误、合并贡献、验证 ENV 变量、测试适配器或同步分支时使用。

技能
mksglu