Логотип Api Contract Verification

Api Contract Verification

Сообщество
nahid-sparktales
api-contract-verification

Prove an API integration actually works by executing it — success path, documented failure paths, auth failure — and leave behind a contract test that catches the next break. Use before reporting any endpoint, client or third-party integration as working, when asked whether an integration is verified, or when checking someone else's integration work. Not for load or performance testing, not for rendered UI verification, and not a substitute for reading the provider's own documentation.

Add to TypingMind

Обзор

Издательnahid-sparktales
Репозиторийagent-dispatcher
Название навыкаapi-contract-verification
Звёзды
58
Форки
5
Файлы в комплекте
1
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 1

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — nahid-sparktales. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Api Contract Verification в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/backend/api-contract-verification
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/backend/api-contract-verification .claude/skills/api-contract-verification
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Api Contract Verification в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Api Contract Verification, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Api Contract Verification не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

API contract verification

Code that compiles against an API is not an integration. A client that type-checks, matches the docs and reads correctly in the diff can still 404, send the wrong content type, retry a 401 forever, or pass every test against a stub nobody replaced.

Keep the verbs apart, because this procedure exists to stop them merging: created is the code written; executed is a request actually sent and a response actually read; tested is a check that will run again without you; reviewed is a human or agent reading it; deployed is running somewhere real; verified is the conclusion, and it is available only after execution.

When this fires

Before any endpoint, API client or third-party integration is reported as working — your own or someone else's — and whenever a claim of "the integration works" needs backing.

Procedure

  1. Write the contract down before calling anything: environment and base URL, method and path, auth scheme, request shape, the success status and the fields you depend on, and the documented failure statuses. Take it from the provider's specification or current documentation, not from memory. If you cannot write it, you do not yet know what you are verifying.
  2. Choose the environment deliberately and name it. Local stub, sandbox, staging. A call against production can charge money, send mail or mutate records — that is an outward-facing action: stop and ask before executing one, and prefer a disposable record over real data. The same applies to any write verb, even in staging, when the data is shared.
  3. Execute the success path. Capture the request line, the status, the headers that matter (content type, rate limit, pagination), and the body or the fields you assert on. A 200 with an error object inside it is a failure — read the body, never the status alone.
  4. Assert on the parsed value your code uses, not on the transport. "It returned 200" proves reachability. The contract is proven when the deserialized field arrives with the type, units and shape the calling code expects.
  5. Execute the documented failure paths: invalid input, a resource that does not exist, and at least one transport-level failure — timeout, connection refused, or a 5xx — forced by pointing the client at an unroutable or stubbed endpoint. What is being verified is your side: does it retry, surface a typed error, or take the whole request down.
  6. Execute the auth failure path separately: no credential, then an invalid or expired one. Confirm the status is a refusal, that the client does not loop retrying it, and that the credential appears in no log line or error message. An integration exercised only with a valid key has not been verified.
  7. Exercise the boring cases that break in production: the second page of a paginated result, an empty result set, a legitimately null field, a date or amount where timezone or units are ambiguous, and the content type actually sent versus the one documented.
  8. Write the contract test, and say what it is worth. Against a recorded or stubbed response it catches your client drifting and runs in CI. Against the live sandbox it catches the provider drifting, needs credentials, and will be flaky. Prefer both, kept separate, and assert the fields the code reads rather than the whole payload — a whole-payload snapshot fails on every unrelated provider change until someone stops reading it.
  9. Rerun from a clean state. Fresh checkout or cleared fixtures, credentials from the documented source rather than whatever is already exported in your shell. A test that passes only in your session is not coverage.
  10. Report with the right verb, and name the environment. "Verified in sandbox" and "verified" are different claims; do not print the second when you did the first.

What this refuses to conclude

  • Without an executed call — nothing at all. Reading the client against the specification is a review; say "reviewed", not "verified".
  • Without the failure paths — only that the happy path works. Nothing about resilience, retries, or what a user sees when the provider is down.
  • Without the auth-failure call — nothing about the integration's behaviour when credentials expire, which is how it will eventually fail.
  • From a passing stub test alone — that your client parses that stub. It is silent on whether the provider still returns that shape.
  • From green CI over mocked transport — that nothing changed on your side. It is not evidence the integration works.
  • From a sandbox pass — nothing about production limits, data volumes, or permissions.

Checklist

  • Contract written from the provider's own source before execution
  • Environment named; anything production-touching or destructive was asked about first
  • Success path executed, body read, not just the status
  • Assertions on parsed fields the code actually uses
  • Invalid input, missing resource, and a timeout or 5xx executed
  • Missing and invalid credential executed; no credential in logs; no retry loop
  • Pagination, empty set, null field, and units or timezone checked
  • Contract test committed, with its stub-versus-live value stated
  • Suite rerun from a clean state
  • The report's verb matches what was actually done

Failure handling

  • The provider is unreachable or the sandbox is down — that is the result. Report the integration as unverified with the error captured; do not fall back to reading the code and calling it verified.
  • The response differs from the documentation — trust the observed response, record both, and raise the mismatch. Do not quietly widen your parser until it stops throwing.
  • The failure will not reproduce — say so with what was tried and how often. An intermittent integration reported as fixed is worse than one reported as intermittent.
  • Only production credentials exist — stop. Ask before executing, and say plainly that verification is blocked on a safe environment rather than executing anyway.

Evidence to report

The environment and the exact requests executed, each with its status and the asserted fields; the failure and auth-failure responses as they came back; the contract test's path and its command, with its output; what the test is worth (stub or live); and every path left unexecuted, named. A claim of "integration verified" carrying none of that is the thing this skill exists to refuse.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Api Contract Verification?

Prove an API integration actually works by executing it — success path, documented failure paths, auth failure — and leave behind a contract test that catches the next break. Use before reporting any endpoint, client or third-party integration as working, when asked whether an integration is verified, or when checking someone else's integration work. Not for load or performance testing, not for rendered UI verification, and not a substitute for reading the provider's own documentation.

Зачем использовать Api Contract Verification в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Api Contract Verification — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Api Contract Verification в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/backend/api-contract-verification. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Api Contract Verification?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Api Contract Verification?

С любым количеством. В TypingMind вы можете использовать Api Contract Verification с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Api Contract Verification?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — nahid-sparktales. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Test Performance

openclaw
ОрганизацияПопулярный

Сравнивайте производительность, диагностируйте проблемы и оптимизируйте время выполнения тестов OpenClaw и набора тестов плагинов, узкие места при импорте, загрузку CPU и RSS, рост кучи и медленные пути покрытия кода.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Testing

openclaw
ОрганизацияПопулярный

Выбирайте подходящие по масштабу тесты и проверки OpenClaw, диагностируйте сбои и направляйте вопросы, зависящие от окружения, и подтверждение релиза ответственным за них специалистам.

82.2K
391K
Файлы: 2
Открыть
Логотип openclaw

Release Openclaw Ci

openclaw
ОрганизацияПопулярный

Запускайте и отслеживайте полный CI-процесс релиза OpenClaw, проверки релиза, контрольные проверки подключений к рабочим провайдерам, подтверждения установки и обновления, а также предварительные проверки секретов релиза; разбирайте ошибки и составляйте сводки.

82.2K
391K
Файлы: 3
Открыть
Логотип openclaw

Release Openclaw Mac

openclaw
ОрганизацияПопулярный

Запускайте или восстанавливайте процессы подписания релизов OpenClaw для macOS, нотариального заверения, обновления appcast и публикации ресурсов.

82.2K
391K
Инструкции
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇