К основному содержанию
скилл CX Codex

chainlink-confidential-ai-attester-skill — скилл для Claude Code

Скилл chainlink-confidential-ai-attester-skill для Claude Code запускает инференс LLM по приватному документу внутри TEE и возвращает результат, оставляя файл в анклаве. Обрабатывает KYC, проверку инвесторов и proof-of-reserves.

MIT 226 установок ★ 130 обновлён 2026-10-23

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add smartcontractkit/chainlink-agent-skills --skill chainlink-confidential-ai-attester-skill -a claude-code
Открыть на GitHub

Что делает chainlink-confidential-ai-attester-skill

Скилл подключает агента к HTTP API Chainlink Confidential AI Attester. Документ уходит в сервисный Nitro Enclave, модель читает его там, а наружу возвращается только текст. Загрузка идёт через POST /v1/inference с заголовком Authorization: Bearer $API_KEY; ключ берётся из переменной окружения или хранилища секретов, базовый адрес — из BASE_URL, чтобы не вписывать его в каждую команду.

Ответ приходит как 202 Accepted с id и статусом queued. Дальше скилл опрашивает GET /v1/inference/{id} каждые 2–5 секунд, пока не появится completed или failed; в готовом ответе лежат output, usage и completed_at. Для длинных текстов он советует qwen3.6, для картинок и общего случая — gemma4. PDF может обрабатываться минутами, поэтому для демо лучше PNG.

Главное ограничение: API не отдаёт ни подписанного Chainlink-аттестата, ни документа TEE. Хеш полей ответа покажет, что их потом изменили, но не докажет, что инференс шёл в анклаве. Для EVM-доставки скилл проверяет результат по JSON-схеме, собирает CRE-отчёт и отправляет его через Chainlink Forwarder; ошибка или не-JSON на выходе оставляет проект без отчёта. Ключ выдают в бете на EthGlobal NYC — на стенде Chainlink или в канале #partner-chainlink в Discord.

Какие задачи решает

  • прогнать LLM по договору или отчёту, не выгружая файл наружу
  • вытащить поля в JSON из скана PDF для проверки инвестора
  • дождаться асинхронной задачи по id и забрать output
  • отправить проверенный результат в EVM-контракт через Chainlink Forwarder
  • выбрать между аттестером, локальной моделью и редактированием данных

Примеры запросов агенту

  • Отправь doc.pdf в POST /v1/inference с моделью gemma4 и сохрани id из ответа.
  • Опрашивай GET /v1/inference/{id}, пока статус не станет completed, и покажи output.
  • Собери system prompt и user prompt с точной JSON-схемой для извлечения полей из документа инвестора.

Как установить chainlink-confidential-ai-attester-skill

1Через Skills CLI (Vercel)

npx skills add smartcontractkit/chainlink-agent-skills --skill chainlink-confidential-ai-attester-skill -a claude-code

2Вручную: положить файлы

~/.claude/skills/chainlink-confidential-ai-attester-skill/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/chainlink-confidential-ai-attester-skill/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о chainlink-confidential-ai-attester-skill

Как установить chainlink-confidential-ai-attester-skill в Claude Code?

Выполните npx skills add smartcontractkit/chainlink-agent-skills --skill chainlink-confidential-ai-attester-skill -a claude-code. Файл скилла появится по пути ~/.claude/skills/chainlink-confidential-ai-attester-skill/SKILL.md.

Что делает chainlink-confidential-ai-attester-skill?

Отправляет документ на инференс в TEE сервиса Chainlink Confidential AI Attester, опрашивает задачу и возвращает текст результата. Исходный файл остаётся в анклаве и наружу не попадает.

Можно ли доказать, что инференс прошёл в TEE?

По ответу API — нет: он не выдаёт ни подписи Chainlink, ни документа аттестации. Хеш полей ловит последующую правку, но не подтверждает, что вычисление шло в анклаве.

Исходный текст

SKILL.md · MIT
---
name: chainlink-confidential-ai-attester-skill
description: "Runs LLM inference over a private document inside a TEE, returns an attested result, and keeps the raw document in the TEE. No document upload means chainlink-cre-skill. It applies to private inference, attested AI, confidential AI, and sensitive-document analysis, including lending, accredited-investor, KYC/AML, and proof-of-reserves checks."
license: MIT
compatibility: Designed for AI agents that implement https://agentskills.io/specification, including Claude Code, Cursor Composer, and Codex-style workflows.
allowed-tools: Read WebFetch Write Edit
metadata:
  version: "0.0.6"
---

# Chainlink Confidential AI Attester

Private-document LLM inference runs in a service-managed TEE; raw documents never leave it and are never stored or exposed.

Scope: only the Chainlink Confidential AI Attester document-inference HTTP API. Data Feeds, CCIP, AI architecture or zkML, Anthropic or other vendor PDF APIs, and AWS Nitro/Bedrock attestation stay with their owning product or vendor; do not introduce Attester. For any request outside Attester document inference, state that this capability does not apply, route to the owning capability, and do not provide any Attester API or playground procedure.

**EthGlobal NYC hackathon beta.** Get an API key at the **Chainlink booth** or in Discord's **#partner-chainlink channel**. The playground at `https://confidential-ai-dev-preview.cldev.cloud/playground` and the HTTP API are two access paths to the same Attester service, not separate privacy options.

## Workflow 1 — Submit: `POST /v1/inference`

Use `Authorization: Bearer $API_KEY`; load the key from an environment variable or injected secret store, never hardcode it or place its literal or expanded value in command-line arguments. Set the service URL in `BASE_URL` (or an equivalent environment variable) and use it in every command or code sample; never inline the service base.

```json
{
  "model": "gemma4",
  "system_prompt": "",
  "prompt": "...",
  "resources": [{ "filename": "doc.pdf", "content_type": "application/pdf", "content_base64": "<base64>" }],
  "cre_callback": { "url": "https://..." }
}
```

Omit `cre_callback` when polling, including in the playground; use `GET /v1/inference/{id}`. Product guidance must name the playground above and choose `qwen3.6` for long text; `gemma4` is the images/general default. Prefer PNG for demos; PDF preprocessing can take 5 minutes.

Success is `202 Accepted` with `{ "id": "...", "status": "queued" }`; save the `id`.

For any submit or poll answer, emit runnable curl or code—not a completion summary—with the request fields, `202` shape, saved `id`, `GET /v1/inference/{id}`, both terminal statuses, and `output` retrieval (or `error` on failure).

See the [curl example and language guidance](references/code-examples.md) and [API specification](references/api-reference.md).

## Workflow 2 — Poll: `GET /v1/inference/{id}`

Poll every 2–5 s until `completed` or `failed`. Completion fields are `output` (LLM text), `usage`, and `completed_at`; see [troubleshooting](references/troubleshooting.md).

## Verification Boundary and EVM Delivery

The Attester API does not expose an independently verifiable Chainlink signature or TEE attestation document. Hashing response fields can detect a later change to those fields, but a response hash is neither an independently verifiable Chainlink signature nor a TEE attestation and does not prove that inference ran in an enclave.

For EVM delivery, validate a completed result and its required JSON schema, create a CRE-native report, and deliver that report through the Chainlink Forwarder. Treat failed or non-JSON output as failure and create no report. Do not use a generic EIP-712 signer or application private key to present Attester output as confidential-compute proof.

Every signed-summary or verify-later answer must state one credential rule: `API_KEY` comes from an environment variable or injected secret store, never a CLI argument.

## Writing Prompts That Work

Enforce JSON in two layers: (1) the default system prompt unless a change is necessary and (2) a user prompt with a fact-extraction task and exact JSON schema. Emit the requested `system_prompt`, user `prompt`, and schema in full; never replace them with a summary. See the [four use-case templates](references/prompts.md).

## Choose the Privacy Approach

| Option | Use when | Tradeoff |
|--------|----------|----------|
| Attester | You want managed document inference inside the service's Nitro Enclave | Fastest integration, but the current API provides no independently verifiable Chainlink or TEE signature |
| Local model | Data must remain on a controlled device with no external inference call | You operate the model and hardware; locality alone provides no remote attestation |
| Self-hosted confidential compute | You need infrastructure control and can operate a TEE and its attestation verification | Most control and potential for independent attestation, with the highest operational burden |
| Redaction or tokenization | The task can work on minimized or substituted data before any external call | Simplest data minimization, but may reduce utility and does not eliminate re-identification risk |

The playground and API are interfaces to one Attester service; choose between them for interaction style, not as distinct privacy architectures.

© smartcontractkit · MIT · smartcontractkit/chainlink-agent-skills

Похожие скиллы

Все скиллы по теме «ИИ и ML» →
venice-text-routing veniceai Скилл venice-text-routing подбирает текстовую модель Venice по уровню приватности, модальности, контексту и цене. Пригодится локальным агентам для передачи сложных или конфиденциальных запросов в облако. CX Codex +1 ★ 176звёзд репо azure-confidential-computing MicrosoftDocs Скилл с экспертными знаниями по Azure Confidential Computing: архитектура, безопасность, аттестация, конфигурация и деплой SGX-анклавов, конфиденциальных VM/GPU, AKS-контейнеров и Fortanix CCM. CX Codex +1 174установок chainlink-data-feeds hedera-dev Скилл chainlink-data-feeds помогает безопасно читать ценовые фиды Chainlink AggregatorV3 на Hedera (chain ID 295 и 296), проверять полноту и свежесть раундов и нормализовать decimals. CX Codex +1 577установок azure-confidential-ledger MicrosoftDocs Подтягивает документацию по Azure Confidential Ledger. Помогает настраивать Entra ID, проверять аттестацию нод и разворачивать реестр через Terraform. CX Codex +1 166установок Synmerco — Confidential Escrow for AI Agent Commerce joelasota Synmerco — Confidential Escrow for AI Agent Commerce — MCP-сервер для Claude Code проводит сделки между ИИ-агентами через эскроу, оценки доверия и криптографические доказательства. Для конфиденциальных результатов. CX Codex +1 3 239установок use-link-identity stripe Скилл use-link-identity для Claude Code помогает получать аттестации Link и предъявлять выбранные подписанные данные сервису. Включается, когда сервис запрашивает AAT или подтверждение личности. CX Codex +1 15 700установок

Из того же набора7

chainlink-cre-skill Скилл chainlink-cre-skill для Claude Code и Codex ведёт CRE-workflows на Go и TypeScript, симуляцию и деплой. Он также разбирает CRON, HTTP и EVM-события. CX Codex +1 805установок chainlink-ccip-skill Скилл по Chainlink CCIP: разбирает маршруты, токены, комиссии и сообщения, готовит код и транзакции, но ничего не подписывает и не отправляет. CX Codex +1 420установок chainlink-data-feeds-skill Скилл chainlink-data-feeds-skill помогает агенту писать контракты и офчейн-код для чтения ценовых фидов Chainlink через AggregatorV3Interface и latestRoundData. CX Codex +1 392установок chainlink-data-streams-skill Помогает получать отчёты Chainlink Data Streams по REST и WebSocket, разбирать схемы отчётов и проверять их на блокчейне. CX Codex +1 370установок chainlink-ace-skill Скилл для работы с политиками Chainlink ACE: PolicyEngine, Cross-Chain Identity, KYC и AML, санкционный скрининг и правила комплаенса на блокчейне. CX Codex +1 334установок chainlink-vrf-skill Помогает внедрять Chainlink VRF v2.5 в смарт-контракты Solidity, настраивать подписки и переходить с устаревших версий координатора. CX Codex +1 325установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой