界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

attio-install-auth

attio-install-auth

【效率与协作】Choose and configure Attio REST authentication for a single workspace or multi-workspace OAuth app, including least-privilege scopes and a read-only verification. Use when connecting a service to Attio. Trigger with "Attio auth", "Attio API key", or "Attio OAuth setup".

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: attio-install-auth description: >- Choose and configure Attio REST authentication for a single workspace or multi-workspace OAuth app, including least-privilege scopes and a read-only verification. Use when connecting a service to Attio. Trigger with "Attio auth", "Attio API key", or "Attio OAuth setup". argument-hint: "[repository-path] [single-workspace|oauth]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.8.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:

  • saas
  • attio
  • authentication model: inherit effort: high compatibility: Designed for Claude Code

Attio Authentication Setup

Overview

This skill selects the correct Attio access-token path, maps endpoint scopes, and proves the credential with a non-mutating request.

Prerequisites

  • The integration's workspace and tenancy model
  • Exact endpoints and operations the application will use
  • An approved secret store and rotation owner
  • Registered redirect URIs when OAuth is required

Tool Discipline

Use Read, Glob, and Grep to inspect the local auth wrapper, secret names, redirect configuration, and endpoint use. Use WebFetch only for current official Attio documentation. Use Write or Edit after the auth model and target files are confirmed.

Current Contract

  • Prefer OAuth 2.0 for an app that serves multiple Attio workspaces.
  • Use a manually generated workspace API key for one controlled workspace.
  • Both credential types can be sent as Authorization: Bearer <access_token>.
  • Required scopes are documented per endpoint and should be granted operation by operation.
  • Attio also supports Basic authentication with the token as username and an empty password, but Bearer is recommended.

Authentication

For OAuth, validate state, use the registered redirect URI exactly, exchange the code server-side, and encrypt the resulting token at rest. For a workspace key, create it in developer settings with the minimum scopes and store it only in the approved secret manager.

Instructions

  1. Classify the integration as single-workspace or multi-workspace.
  2. Inventory methods and endpoints, then derive scopes from their current reference pages.
  3. Define secret storage, tenant-to-token mapping, rotation, revocation, and audit ownership.
  4. Implement server-side credential injection without token logging.
  5. For OAuth, bind and verify state; never expose the client secret to browser code.
  6. Verify with one read-only endpoint and record only status, workspace alias, and granted scope names.

Approval Boundaries

Do not generate or broaden production credentials, modify redirect URIs, or migrate tenant tokens without the owning administrator's approval and a rollback plan.

Output

Return the chosen auth model, endpoint-to-scope map, secret reference, OAuth control evidence if applicable, read-only verification, and rotation owner.

Error Handling

ConditionResponse
Tenancy model is unclearStop before choosing a credential type.
OAuth state mismatchReject the callback and start a fresh authorization flow.
403 after verificationCompare the exact endpoint scopes; do not grant all scopes.
Token appears in logsRevoke or rotate it and scrub retained output.

Examples

Input:

tenancy=multiple-workspaces; endpoint=GET /v2/tasks; storage=encrypted-server-side

Expected handoff:

auth=oauth; state=verified; scopes=endpoint-derived; read-test=pass

Resources

我的收藏