api-integration
Integrate third-party APIs correctly — auth patterns, retry/backoff, pagination, rate limits, idempotency, and contract testing.
Skill by xanstomper
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/xanstomper-api-integration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend, testing, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/api-integration
What's inside
- Skill name
api-integration- Description
- Integrate third-party APIs correctly — auth patterns, retry/backoff, pagination, rate limits, idempotency, and contract testing. Use when wiring an external API/SDK into an app, debugging flaky API calls, or designing an integration layer.
- License
- MIT
- Instructions
- 35 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# API Integration Procedure Every external API will fail you: rate limits, outages, schema drift, auth expiry. The integration layer is built for those failures from day one. ## 1. Auth (do it first, do it right) - Credentials from env/secret store, never in code or client bundles. Scoped tokens beat god tokens; rotate on a schedule with overlap (new key live before old key dies). - OAuth: refresh token rotation handled in ONE place (the client); clock-skew tolerance on JWT validation (±60s); never log tokens (redact in the logger config BEFORE the first debug session). ## 2. Transport discipline - Timeouts ALWAYS: connect + total, tuned to the API's real p99 (default 10s total). A missing timeout turns their outage into your outage. - Retries: idempotent requests only (GET/PUT/DELETE; POST only with an idempotency key), exponential backoff + full jitter, max 3-4 attempts, honor `Retry-After` on 429. - Circuit breaker: after N consecutive failures, fail fast for a cooldown. Without it, your thread pool is their outage's first casualty. ## 3. Pagination and consistency - Cursor pagination preferred; treat cursors as opaque. Handle the mid-pagination-write race (item appears twice) with dedupe by ID. - Consistency snapshots: for list+fetch patterns, capture IDs first, then fetch details — don't paginate a moving set. ## 4. Contracts - Parse defensively: unknown fields ignored, types validated at the boundary (zod/pydantic/valibot) — API schema drift becomes a clear validation error, not a mystery undefined three layers deep. - Contract tests against a recorded fixture (updated on API version bumps); a weekly canary call in CI for critical vendors. - Pin the API version header; upgrade deliberately with a changelog read, never silently. ## 5. Observability (before first production call) - Log: method, endpoint, status, latency, attempt number, request ID from their response headers. Never the payload (PII/credentials). - Metrics: per-endpoint error rate and latency. The dashboard that tells you the vendor degraded BEFORE your users do. ## 6. Failure-mode table (write it down) - For each endpoint: what happens on timeout / 429 / 5xx / auth failure / partial response. Degraded mode > hard failure where possible (cached data, feature disabled with a banner). ## Pitfalls - Retrying POSTs without idempotency keys: the classic double-charge. If the vendor supports the key header, use it on every write. - SDK-first thinking: thin SDKs age badly; a 50-line typed client you own beats a 5MB generated one you can't fix — unless the API is huge or auth is complex. - Trusting their sandbox as production-parity: rate limits, latency, and data volume differ by 100x. Load-test your integration's backpressure separately.
From xanstomper/mochi, MIT.
More from xanstomper/mochi
- 0.587score
accessibility-audit
xanstomper
Audit and fix accessibility (a11y) — WCAG 2.2 AA compliance, screen-reader flows, keyboard navigation, and ARIA correctness for web apps.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-backwards-compatibility
xanstomper
Change APIs without breaking existing clients — deprecation windows, additive changes, and safe removal.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-design
xanstomper
Design public APIs and CLIs — naming, ergonomics, versioning, error surfaces, and backward-compat discipline.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-security-hardening
xanstomper
Secure web APIs and backends — authz enforcement, injection prevention, rate limiting, secret handling, and the OWASP-class checks that block real attacks.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-versioning
xanstomper
Evolve APIs without breaking clients — additive change first, deprecation windows, compatibility shims, and migration paths.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
async-concurrency
xanstomper
Design correct async and concurrent code — bounded parallelism, backpressure, cancellation, and deadlock avoidance.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
auth-implementations
xanstomper
Implement authentication correctly — session/JWT/OAuth/SSC flows, password handling, MFA, and the failure modes that become breaches.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
benchmark-methodology
xanstomper
Honest benchmarking with TTFF/TTFI/PSS probes — cold start, token throughput, prompt-to-first-token.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
browser-automation
xanstomper
Automate real browsers for testing and scraping — Playwright-first flows, selector strategy, waiting discipline, and anti-flake patterns.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
caching-strategy
xanstomper
Design caching layers — HTTP caching, CDN, application memory caches, invalidation patterns, and cache-coherence reasoning.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
chaos-engineering
xanstomper
Prove a system survives failure by injecting it deliberately — game days, fault injection, and steady-state hypotheses.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
checkpoint-semantics
xanstomper
Git-backed checkpoints and rollback composition — naming, nesting, conflicts, when to auto-commit.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 2
- Open issues
- 6
- Last commit (this folder)
- Oct 12, 2026 (17 days ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/xanstomper/mochi
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from xanstomper
- 0.587score
api-backwards-compatibility
xanstomper
Change APIs without breaking existing clients — deprecation windows, additive changes, and safe removal.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-design
xanstomper
Design public APIs and CLIs — naming, ergonomics, versioning, error surfaces, and backward-compat discipline.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-security-hardening
xanstomper
Secure web APIs and backends — authz enforcement, injection prevention, rate limiting, secret handling, and the OWASP-class checks that block real attacks.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
api-versioning
xanstomper
Evolve APIs without breaking clients — additive change first, deprecation windows, compatibility shims, and migration paths.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
async-concurrency
xanstomper
Design correct async and concurrent code — bounded parallelism, backpressure, cancellation, and deadlock avoidance.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
accessibility-audit
xanstomper
Audit and fix accessibility (a11y) — WCAG 2.2 AA compliance, screen-reader flows, keyboard navigation, and ARIA correctness for web apps.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
api-integration skill. Agent Mart. https://agentmart.dev/skills/xanstomper-api-integration (last updated 2026-10-24)