Логотип Api Review

Api Review

Сообщество
robbyt
api-review

This skill should be used when reviewing API designs, auditing REST or gRPC endpoints, designing backend APIs, evaluating BFF architecture, or discussing API best practices. Also triggers on: "review this API", "API design review", "is this API correct", "REST API audit", "gRPC API review", "PATCH vs PUT", "etag", "idempotency", "pagination design", "API error handling", "backward compatibility", "BFF architecture", "resource-oriented design", "TOCTOU", "race condition", "optimistic concurrency", "field mask", "long-running operation", "custom method", "soft delete", "API naming conventions", "declarative-friendly"

Обзор

Издательrobbyt
Репозиторийclaude-skills
Название навыкаapi-review
Звёзды
42
Форки
2
Встроенные файлы
37
Ссылки
  • Инструкции в формате Markdown

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

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

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

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

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

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

    Опубликовано на GitHub: robbyt. Перед установкой изучите исходные материалы.

Установка

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

1

Установка в TypingMind

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

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/robbyt/claude-skills/tree/main/plugins/api-design/skills/api-review
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

API Design Review

Expert guidance for API design based on Google's API Improvement Proposals (AIPs) — the same standards governing all public Google APIs. These principles are universal and apply to any organization building REST, gRPC, or BFF/backend APIs.

When to Use

Invoke this skill when:

  • Reviewing or auditing API endpoint designs (REST or gRPC)
  • Designing new backend service APIs
  • Evaluating BFF (Backend-for-Frontend) architecture boundaries
  • Resolving concurrency issues (TOCTOU, lost updates, race conditions)
  • Choosing between PATCH and PUT, or standard vs custom methods
  • Designing pagination, filtering, or error handling
  • Assessing backward compatibility of API changes

Always cite the AIP number (e.g., "Per AIP-154, ETags must use ABORTED on mismatch") when providing guidance. This gives teams an authoritative, linkable reference at https://google.aip.dev/{number}.

Query Routing

Match the user's concern to the right reference file:

User asks about...Primary referenceKey AIPs
PUT vs PATCH, partial update, field masksstandard-update.mdAIP-134
Race conditions, lost updates, concurrent edits, ETagsetags-and-freshness.mdAIP-154
Retry safety, duplicate requests, request IDsidempotency.mdAIP-155
Page tokens, cursor pagination, filtering, orderingpagination-and-filtering.mdAIP-158, 160
Breaking changes, backward compatibilitycompatibility.mdAIP-192
Alpha/beta/stable, API versioningversioning-and-stability.mdAIP-180, 181
Error codes, error responses, status detailserrors.mdAIP-193
Auth checks, permission denied vs not foundauthorization.mdAIP-211
BFF anti-patterns, layer boundaries, orchestrationbff-architecture.md--
Secrets, passwords, write-only fieldssensitive-fields.mdAIP-147
Soft delete, undelete, resource expiryresource-lifecycle.mdAIP-164, 216
Async tasks, long-running operationslong-running-operations.mdAIP-151
Recurring tasks, scheduled executionjobs.mdAIP-152
Bulk operations, batch requestsbatch-methods.mdAIP-235
Bulk data import/export, data portabilityimport-and-export.mdAIP-153
Dry run, preview, validate-onlychange-validation.mdAIP-163
Many-to-many, multi-parent resourcesresource-association.mdAIP-124
Field defaults, server-modified valuesserver-modified-values.mdAIP-129
Timestamps, durations, date fieldstime-and-duration.mdAIP-142
Unset vs zero, optional primitivesunset-field-values.mdAIP-149
Naming conventions, enums, standard fieldsnaming-and-fields.mdAIP-140, 148
Required/optional/immutable annotationsfield-behavior.mdAIP-203
Wildcard parent, cross-collection queriescross-collection-reads.mdAIP-159
Singleton resources, config objectssingletons.mdAIP-156
Management vs data planeplanes.mdAIP-111
Desired-state, reconciliation, declarativedeclarative-interfaces.mdAIP-128

Core Principles

These five principles form the foundation of well-designed APIs:

#PrincipleKey AIPsOne-liner
1Resource-oriented designAIP-121, 122, 123Model APIs as resource hierarchies with standard methods
2Business operations, not CRUDAIP-136Expose domain actions, not raw table access
3Idempotent, conflict-aware mutationsAIP-154, 155ETags prevent lost updates; request IDs enable safe retries
4Declarative desired-stateAIP-128Clients send intended state; server reconciles
5Explicit contractsAIP-192, 203Field behavior is documented; breaking changes are caught

Standard Methods Quick Reference

Per AIP-121, every resource should expose standard methods where appropriate:

MethodHTTPAIPNotes
GetGET /v1/{name=...}AIP-131Return single resource
ListGET /v1/{parent=...}/resourcesAIP-132Paginated collection; see AIP-158
CreatePOST /v1/{parent=...}/resourcesAIP-133Include {resource}_id for client-assigned names
UpdatePATCH /v1/{resource.name=...}AIP-134Always PATCH, never PUT; use field masks
DeleteDELETE /v1/{name=...}AIP-135Support etag, force, allow_missing

Custom methods use POST /v1/{name=...}:verb (AIP-136) for operations that don't fit standard methods — e.g., :archive, :merge, :approve.

Decision Tables

PATCH vs PUT (AIP-134)

ScenarioRecommendationRationale
Updating specific fieldsPATCH + field maskAdding fields later won't break existing clients
Full resource replacementPATCH with * maskEquivalent to PUT without the compatibility risk
Legacy system requires PUTDiscouragedDocument risks; plan migration to PATCH

Standard vs Custom Method (AIP-136)

OperationMethodReason
Get a resource by nameStandard GetFits AIP-131 exactly
Search with complex filtersStandard List + filterAIP-132 + AIP-160
Archive a resourceCustom :archiveState change, not a data update (AIP-136)
Merge two resourcesCustom :mergeMulti-resource operation with side effects
Approve a workflow stepCustom :approveDomain action, not a field update

Concurrency Control (AIP-154, AIP-155)

ProblemSolutionAIP
TOCTOU race conditionETags — server returns etag; client sends it back on mutationAIP-154
Lost updates from parallel writesETags — ABORTED (409) on mismatchAIP-154
Network retry causes duplicate creationRequest IDs — UUID4 request_id fieldAIP-155
Client unsure if mutation succeededRequest ID + idempotency — same ID returns same resultAIP-155

BFF Architecture Boundaries

A well-designed architecture separates concerns:

LayerOwnsDoes NOT Own
Frontend + BFFUI rendering, session management, request routing, lightweight response shapingBusiness logic, DB connections, data joins, authorization decisions
Backend APIsBusiness operations, domain logic, data integrity, validation, audit loggingUI concerns, session state, frontend formatting
AuthZ serviceCentralized access control, policy enforcementBusiness logic; answers "is this allowed?" not "what should happen?"

Red flags in BFF code: direct database queries, business rule enforcement, data assembly across multiple sources, independent authorization logic.

Audit Checklist

When reviewing an API, check these categories in order. For full details with examples and fix guidance, consult references/audit-checklist.md.

CRITICAL — Concurrency & Safety

  • Mutable resources include etag field (AIP-154)
  • Mutating endpoints accept request_id for idempotency (AIP-155)
  • Update uses PATCH, not PUT (AIP-134)
  • Delete supports etag for protected delete (AIP-135)

HIGH — Resource Design

  • Resources follow hierarchical naming: {parent}/{collection}/{id} (AIP-122)
  • Standard methods used where applicable (AIP-131–135)
  • Custom methods use :verb suffix, not faux resources (AIP-136)
  • Field behavior annotated (required, optional, output_only, immutable) (AIP-203)

MEDIUM — Usability & Evolution

  • List endpoints paginated with page_size + page_token (AIP-158)
  • Errors use standard codes with structured details (AIP-193)
  • Changes assessed for backward compatibility (AIP-192)
  • Long-running operations return Operation object (AIP-151)

LOW — Polish

  • Filtering uses common expression language (AIP-160)
  • Partial responses supported via field masks (AIP-161)
  • Soft delete available where appropriate (AIP-164)

Reference Files

Consult these for detailed guidance, full AIP text, and code examples:

Resource Design

  • references/resource-oriented-design.md — Resource hierarchies, naming, types, standard methods overview (AIP-121, 122, 123)
  • references/resource-association.md — Many-to-many, multi-parent, canonical parent selection (AIP-124)
  • references/planes.md — Management vs data plane, declarative client requirements, consistency rules (AIP-111)
  • references/singletons.md — Single-instance resources, no Create/Delete, config objects (AIP-156)

Standard Methods

  • references/standard-get-list.md — Get and List methods with pagination, filtering, ordering (AIP-131, 132, 158, 160)
  • references/standard-create.md — Create method, user-specified IDs, long-running create (AIP-133)
  • references/standard-update.md — Update/PATCH method, field masks, etags on update, why not PUT (AIP-134)
  • references/standard-delete.md — Delete method, soft delete, cascading delete, force/allow_missing (AIP-135, 164)

Design Patterns

  • references/etags-and-freshness.md — Optimistic concurrency, TOCTOU prevention, strong vs weak etags (AIP-154)
  • references/idempotency.md — Request IDs, safe retries, UUID4 format (AIP-155)
  • references/custom-methods.md — When and how to use custom methods for business operations (AIP-136)
  • references/declarative-interfaces.md — Desired-state pattern, reconciliation, declarative-friendly resources (AIP-128)
  • references/long-running-operations.md — LRO pattern, metadata, parallel operations, expiration (AIP-151)
  • references/jobs.md — Recurring tasks, Run method, Job vs LRO distinction (AIP-152)
  • references/import-and-export.md — Bulk data movement, inline sources, partial failures (AIP-153)
  • references/change-validation.md — Validate-only / dry-run pattern for previewing mutations (AIP-163)
  • references/cross-collection-reads.md — Wildcard parent reads, unique resource lookup, partial failures (AIP-159, 217)

Fields & Data Handling

  • references/naming-and-fields.md — Field naming conventions, standard fields, enums, standardized codes (AIP-140, 148, 126, 143)
  • references/field-behavior.md — Required, optional, output_only, input_only, immutable annotations (AIP-203)
  • references/server-modified-values.md — Field ownership, effective values, normalization rules (AIP-129)
  • references/time-and-duration.md — Timestamp/Duration/Date types, naming conventions (AIP-142)
  • references/unset-field-values.md — Optional primitives, unset vs default value distinction (AIP-149)
  • references/field-masks.md — Partial update and partial response with FieldMask (AIP-161)
  • references/sensitive-fields.md — Write-only secrets, INPUT_ONLY pattern, obfuscated fields (AIP-147)
  • references/repeated-fields.md — List fields, update strategies (read-modify-write vs Add/Remove), sub-resources (AIP-144)
  • references/partial-responses.md — View enums, field mask parameters, BASIC vs FULL views (AIP-157)
  • references/pagination-and-filtering.md — Page tokens, page size, filter expressions, ordering (AIP-158, 160)
  • references/batch-methods.md — Batch get, create, update, delete patterns (AIP-235)

Lifecycle & Errors

  • references/errors.md — Standard error codes, error details, PERMISSION_DENIED vs NOT_FOUND (AIP-193)
  • references/authorization.md — Auth-before-validation rule, information leakage prevention (AIP-211)
  • references/retry-strategy.md — Retryable vs non-retryable error codes, exponential backoff (AIP-194)
  • references/resource-lifecycle.md — State enums, soft delete/undelete, resource expiry/TTL (AIP-216, 164, 214)
  • references/compatibility.md — Backward compatibility rules, breaking vs non-breaking changes (AIP-192)
  • references/versioning-and-stability.md — Alpha/Beta/Stable levels, major versions, compatibility rules (AIP-180, 181, 185)

Architecture

  • references/bff-architecture.md — BFF layer boundaries, anti-patterns, migration guidance
  • references/http-transcoding.md — HTTP/JSON to gRPC mapping, URI conventions (AIP-127)
  • references/audit-checklist.md — Full audit checklist with severity, examples, and fix patterns

Встроенные файлы

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

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

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

This skill should be used when reviewing API designs, auditing REST or gRPC endpoints, designing backend APIs, evaluating BFF architecture, or discussing API best practices. Also triggers on: "review this API", "API design review", "is this API correct", "REST API audit", "gRPC API review", "PATCH vs PUT", "etag", "idempotency", "pagination design", "API error handling", "backward compatibility", "BFF architecture", "resource-oriented design", "TOCTOU", "race condition", "optimistic concurrency", "field mask", "long-running operation", "custom method", "soft delete", "API naming conventions...

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

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

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

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

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

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

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

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Api Review: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

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

Навык опубликован на GitHub автором robbyt. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

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

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

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

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

Все

Создайте свою рабочую ИИ-среду сейчас

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