Логотип 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, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

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

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

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем robbyt. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Api Review у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/robbyt/claude-skills/tree/main/plugins/api-design/skills/api-review
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇