本文へ移動
cccskills
無料GitHub で公開

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".

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.9 KB
  • references/official-docs.md2.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

ConditionResponse
Endpoint contract is ambiguousStop and recheck the official endpoint reference.
Runtime payload fails validationReturn a typed contract error and preserve redacted evidence.
Pagination repeats a pageAbort at the loop guard and record the endpoint strategy.
Tenant token does not match contextReject before sending the request.

Examples

Input:

runtime=TypeScript; endpoints=record query and task create; tenancy=multi-workspace

Expected handoff:

client=typed REST wrapper; pagination=endpoint mapped; tenant-tests=pass

Resources

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Build a synthetic-data CI gate for customer-controlled Abridge integration code without calling undocumented vendor interfaces. Use when adding regression checks to an Abridge deployment repository. Trigger with "test the Abridge integration".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

Triage Abridge recording, note-review, Epic handoff, and access failures from observed evidence without inventing vendor error codes. Use when an Abridge clinical workflow is degraded. Trigger with "diagnose this Abridge issue".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

Design and verify the clinician workflow from consent through recording, draft review, Linked Evidence, and final note disposition. Use when implementing or auditing an Abridge clinical documentation pathway. Trigger with "map the Abridge note workflow".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

Verify the approved handoff of clinician-reviewed Abridge note sections into Epic templates and downstream workflows. Use when configuring or auditing Abridge-to-Epic documentation flow. Trigger with "verify the Abridge Epic handoff".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

Evaluate Abridge adoption, workflow value, and avoidable operational friction without inventing prices or vendor billing meters. Use when reviewing an Abridge rollout or renewal. Trigger with "analyze Abridge value".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

Produce a PHI-minimized Abridge support bundle with provenance, redaction, and protected escalation boundaries. Use when support needs reproducible evidence for an Abridge issue. Trigger with "build an Abridge debug bundle".

日本語の概要は準備中です。原文の説明を表示しています。

jeremylongshore/tons-of-skills-marketplace2,8322026年10月13日 更新

jeremylongshore のスキルをすべて見る

このスキルの問題を報告する