attio-sdk-patterns
/attio-sdk-patterns
Build a typed Attio REST client with tenant-aware tokens, endpoint-specific pagination, structured errors, bounded retries, and contract tests while distinguishing it from the Attio App SDK. Use when creating or refactoring Attio integration code. Trigger with "Attio SDK", "Attio client wrapper", or "typed Attio API".
- Author
- jeremylongshore ↗
- Repository
- tons-of-skills-marketplace ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Build a typed Attio REST client with tenant-aware tokens, endpoint-specific pagination, structured errors, bounded retries, and contract tests while distinguishing it from the Attio App SDK. Use when creating or refactoring Attio integration code. Trigger with "Attio SDK", "Attio client wrapper", or "typed Attio API".
Triggers from the description
Arguments
/attio-sdk-patterns [repository-path] [language-or-runtime]
Original author description
Build a typed Attio REST client with tenant-aware tokens, endpoint-specific pagination, structured errors, bounded retries, and contract tests while distinguishing it from the Attio App SDK. Use when creating or refactoring Attio integration code. Trigger with "Attio SDK", "Attio client wrapper", or "typed Attio API".
How it works
- Overview
- Prerequisites
- Tool Discipline
- Current Contract
- Authentication
- Instructions
- Approval Boundaries
- Output
- Error Handling
- Examples
SKILL.md preview
--- name: attio-sdk-patterns description: >- Build a typed Attio REST client with tenant-aware tokens, endpoint-specific pagination, structured errors, bounded retries, and contract tests while distinguishing it from the Attio App SDK. Use when creating or refactoring Attio integration code. Trigger with "Attio SDK", "Attio client wrapper", or "typed Attio API". argument-hint: "[repository-path] [language-or-runtime]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.8.0 author: Jeremy Longshore <jeremy@intentsolutions.io> license: MIT tags: - saas - attio - sdk model: inherit effort: high compatibility: Designed for Claude Code --- # Attio Typed Client Patterns ## Overview This skill designs a small REST client around the endpoints an application actually uses. It does not conflate a server-side REST wrapper with Attio's `attio` App SDK for in-product apps. ## Prerequisites - Runtime, package manager, and existing HTTP conventions - Exact endpoints, methods, scopes, and response shapes - Tenancy and credential model - Existing tests and error-handling policy ## Tool Discipline Use `Read`, `Glob`, and `Grep` to inspect clients, types, dependency policy, and tests. Use `WebFetch` only for official Attio REST, OpenAPI, and App SDK documentation. Use `Write` or `Edit` after the target abstraction and endpoint contracts are confirmed. ## Current Contract - Attio REST requests use the `https://api.attio.com/v2` base URL and endpoint-specific scopes. - Pagination is endpoint-specific: some operations use limit and offset, while others return a cursor such as `pagination.next_cursor`. - The Attio App SDK package `attio` serves apps running inside Attio and is not a universal REST client replacement. - Generated types can start from the official OpenAPI document, but application-level validation and tests still own runtime safety. ## Authentication Inject a token provider that resolves the authorized workspace at request time. Do not place a global production token in source, client constructors, snapshots, fixtures, or logs. ## Instructions 1. Inventory call sites and group the smallest useful endpoint surface. 2. Reverify each method, path, scope, body, response, and paginator in official documentation. 3. Define typed request and response boundaries with runtime validation for external data. 4. Centralize base URL, authorization, timeouts, redaction, request IDs, and structured error translation. 5. Implement separate offset and cursor iterators; bind each endpoint explicitly to the correct strategy. 6. Retry only eligible transient failures, respecting rate limits and mutation idempotency. 7. Add fixture, pagination-termination, error, redaction, and tenant-isolation tests. ## Approval Boundaries Do not replace an established client, add a generated dependency, or migrate production call sites without owner approval and compatibility evidence. ## Output Return the endpoint inventory, client interface, pagination mapping, error taxonomy, auth boundary, test evidence, migration plan, and rollback point. ## Error Handling | Condition | Response | |---|---| | Endpoint contract is ambiguous | Stop and recheck the official endpoint reference. | | Runtime payload fails validation | Return a typed contract error and preserve redacted evidence. | | Pagination repeats a page | Abort at the loop guard and record the endpoint strategy. | | Tenant token does not match context | Reject before sending the request. | ## Examples Input: ```text runtime=TypeScript; endpoints=record query and task create; tenancy=multi-workspace ``` Expected handoff: ```text client=typed REST wrapper; pagination=endpoint mapped; tenant-tests=pass ``` ## Resources - [Skill-specific official documentation](references/official-docs.md) - [OpenAPI specification](https://docs.attio.com/rest-api/endpoint-reference/openapi) - [Pagination](https://docs.attio.com/rest-api/guides/pagination) - [App SDK overview](https://docs.attio.com/sdk/deep-dives/overview)
Files in this package (2)
- SKILL.md 4 KB
- references/official-docs.md 2 KB
Versions
The database has no other skills named attio-sdk-patterns.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version e6533a1777fd (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100attio-common-errors
Diagnose Attio REST API failures from status, structured error fields, endpoint contract, and request context without exposing customer data. Use when an Attio request returns 400, 401, 403, 404, 409, 422, 429, or 5xx. Trigger with "Attio error", "Attio request failed", or "debug Attio API". - 100attio-rate-limits
Analyze and design an Attio request governor with separate read and write budgets, query-score awareness, bounded retries, and observable backpressure. Use when an Attio integration receives 429 responses or needs safe concurrency controls. Trigger with "Attio rate limits",… - 100attio-webhooks
Receive and verify Attio CRM webhooks. Use when setting up Attio webhook handlers, debugging Attio-Signature verification, deduplicating with the Idempotency-Key header, or handling Attio events like record.created, record.updated, list-entry.created, note.created, and task.created. - 100attio-skill-generator
Generate use-case-specific Attio workflow skills from templates. Use when creating new skills for lead qualification, deal management, customer onboarding, or custom Attio workflows. - 85taste-attio
Replicate the visual aesthetic, typography, color tokens, and component craftsmanship of attio.com (Attio). Use when building or restyling UI pages, landing pages, dashboards, or components to match Attio's exact design language. - 100attio
Attio integration via Apideck's CRM unified API — same methods work across every connector in CRM, switch by changing `serviceId`. Use when the user wants to read, write, or search contacts, companies, leads, opportunities, activities, and pipelines in Attio. Routes through…