apollo-sdk-patterns
Apply production-ready Apollo.io SDK patterns. Use when implementing Apollo integrations, refactoring API usage, or establishing team coding standards. Trigger with phrases like "apollo sdk patterns", "apollo best practices", "apollo code patterns", "idiomatic apollo", "apollo client wrapper".
npx skills add majiayu000/claude-skill-registry --skill apollo-sdk-patterns-jeremylongshore-claude-code-plugins-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Apollo SDK Patterns ## Overview Production-ready patterns for Apollo.io API integration with type safety, error handling, and retry logic. ## Prerequisites - Completed `apollo-install-auth` setup - Familiarity with async/await patterns - Understanding of TypeScript generics ## Pattern 1: Type-Safe Client Singleton ```typescript // src/lib/apollo/client.ts import axios, { AxiosInstance, AxiosError } from 'axios'; import { z } from 'zod'; // Response schemas const PersonSchema = z.object({ id: z.string(), name: z.string(), first_name: z.string().optional(), last_name: z.string().optional(), title: z.string().optional(), email: z.string().email().optional(), linkedin_url: z.string().url().optional(), organization: z.object({ id: z.string(), name: z.string(), domain: z.string().optional(), }).optional(), }); const PeopleSearchResponseSchema = z.object({ people: z.array(PersonSchema), pagination: z.object({ page: z.number(), per_page: z.number(), total_entries: z.number(), total_pages: z.number(), }), }); export type Person = z.infer<typeof PersonSchema>; export type PeopleSearchResponse = z.infer<typeof PeopleSearchResponseSchema>; class ApolloClient { private static instance: Apollo
- Overview
- Prerequisites
- Pattern 1: Type-Safe Client Singleton
- Pattern 2: Retry with Exponential Backoff
- Pattern 3: Paginated Iterator
- Pattern 4: Request Batching
- Pattern 5: Custom Error Classes
- Output
- Error Handling
- Resources
- Next Steps
What does the apollo-sdk-patterns skill do?
Apply production-ready Apollo.io SDK patterns. Use when implementing Apollo integrations, refactoring API usage, or establishing team coding standards. Trigger with phrases like "apollo sdk patterns", "apollo best practices", "apollo code patterns", "idiomatic apollo", "apollo client wrapper".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill apollo-sdk-patterns-jeremylongshore-claude-code-plugins-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
