Api Review logo

Api Review

Community
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"

Overview

Publisherrobbyt
Repositoryclaude-skills
Skill nameapi-review
Stars
42
Forks
2
Bundled files
37
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 37 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by robbyt on GitHub. Read the source before you install it.

Installation

Install the Api Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/robbyt/claude-skills/tree/main/plugins/api-design/skills/api-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Api Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Api Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Api Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Api Review AI skill do?

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...

Why use Api Review on TypingMind?

Because you install it once and use it with any model. Api Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Api Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/robbyt/claude-skills/tree/main/plugins/api-design/skills/api-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Api Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Api Review?

As many as you like. As long as a model supports skills, you can use Api Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Api Review AI skill free?

It is published on GitHub by robbyt. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇