[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7227ZZJPYPCFWKB5T3F0YV4":3,"skill-same:01M7227ZZJPYPCFWKB5T3F0YV4":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":47},"01M7227ZZJPYPCFWKB5T3F0YV4","google-aip",null,"API design guidance, reviews, and design-discovery questions grounded in Google's API Improvement Proposals (google.aip.dev\u002Fgeneral).","drew-council\u002Fpi-config","drew-council","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F45700916?v=4","01M72275D5EM2VFTX86DA88431","Drew Council","01M72275DVCT4MMYZRA8R3AXC4",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle-aip\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: google-aip\ndescription: API design guidance, reviews, and design-discovery questions grounded in Google's API Improvement Proposals (google.aip.dev\u002Fgeneral).\ndisable-model-invocation: true\nsource:\n  git: https:\u002F\u002Fgithub.com\u002Faip-dev\u002Fgoogle.aip.dev\n  path: aip\u002Fgeneral\n  into: references\n---\n\n# Google API Improvement Proposals (AIP) Guidance\n\nUse this skill to design APIs, critique existing or proposed API surfaces, and interview the user about open API design decisions using the General corpus from [google.aip.dev\u002Fgeneral](https:\u002F\u002Fgoogle.aip.dev\u002Fgeneral).\n\nAll General AIP Markdown documents are materialized in `{{skillDir}}\u002Freferences\u002F` (`0001.md` through `0236.md`, plus `scope.yaml`).\n\n## How to Use the Reference Corpus\n\n1. **Always read the relevant AIP files before giving detailed guidance or review feedback.** Use the catalog below to pick the 2–6 AIPs that govern the topic at hand and read `{{skillDir}}\u002Freferences\u002F\u003Cdddd>.md`.\n2. **Follow relative cross-references.** Each AIP links to related AIPs at the bottom of the file (for example, `[AIP-158]: .\u002F0158.md`); resolve `.\u002F\u003Cdddd>.md` against `{{skillDir}}\u002Freferences\u002F`.\n3. **Search when a topic spans multiple AIPs.** Run `grep` across `{{skillDir}}\u002Freferences\u002F` for specific terms (`etag`, `idempotency`, `allow_missing`, `validate_only`, `unreachable`, `field_mask`, status codes, etc.).\n\n## Adapting AIPs to the Target Stack\n\nGoogle's AIP examples are written in Protocol Buffers and gRPC (`google.api.http`, `google.protobuf.FieldMask`, `google.longrunning.Operation`, `google.rpc.Status`). Per the AIP FAQ, **apply the architectural and semantic rules to whatever stack the codebase uses**, and only enforce Protobuf-specific syntax when working on `.proto` \u002F gRPC \u002F Connect definitions:\n\n| AIP Concept | Protobuf \u002F gRPC | REST \u002F JSON \u002F OpenAPI \u002F TypeScript \u002F RPC |\n|---|---|---|\n| **Resource-oriented design (`AIP-121`)** | Service RPCs over resource messages | Nouns (resources & collections) with standard verbs; decouple public schema from DB tables |\n| **Resource names & IDs (`AIP-122`)** | `publishers\u002F{publisher}\u002Fbooks\u002F{book}` in `string name` | Canonical hierarchical paths (`\u002Fv1\u002Fpublishers\u002F{publisher}\u002Fbooks\u002F{book}`) or consistent resource `id`\u002F`name` fields; never embed full sub-resources where references belong |\n| **Standard methods (`AIP-131`–`AIP-135`)** | `Get`, `List`, `Create`, `Update`, `Delete` RPCs | `GET` item, `GET` collection, `POST` collection, `PATCH` item, `DELETE` item returning consistent resource schemas |\n| **Custom methods (`AIP-136`)** | `POST \u002Fv1\u002F{name=...}:archive` | Prefer state fields (`AIP-216`) or sub-resources first; when a custom verb is required, use `POST` with an action suffix or action sub-path (`:archive` \u002F `\u002Farchive`), never custom HTTP verbs |\n| **Partial updates (`AIP-134`, `AIP-161`)** | `update_mask` (`google.protobuf.FieldMask`) | `PATCH` with explicit partial-update semantics (JSON Merge Patch or field mask); never require callers to resend the full resource just to change one field |\n| **Pagination (`AIP-158`)** | `page_size` + opaque `page_token` -> `next_page_token` | Cursor-based pagination (`page_size`\u002F`limit` + opaque `page_token`\u002F`cursor`) from day one on every collection; avoid offset pagination on mutable collections |\n| **Long-running operations (`AIP-151`, `AIP-152`)** | `google.longrunning.Operation` | Return `202 Accepted` with an Operation resource (`id`, `done`, `metadata`, `response`\u002F`error`) or model repeatable tasks as `Job` resources (`AIP-152`) |\n| **Idempotency & concurrency (`AIP-154`, `AIP-155`)** | `etag` field + `request_id` UUID | `etag` \u002F `If-Match` for optimistic concurrency (`AIP-154`); `request_id` \u002F `Idempotency-Key` on non-idempotent mutations (`AIP-155`) |\n| **Field behavior (`AIP-203`)** | `google.api.field_behavior` annotations | Document and type fields explicitly as required, optional, output-only (`readOnly`), input-only (`writeOnly`), immutable, or unordered |\n| **Time & quantities (`AIP-141`, `AIP-142`)** | `Timestamp`, `Duration`, unit-suffixed fields | RFC 3339 UTC strings (`create_time`, `expire_time`) and explicit unit suffixes (`size_bytes`, `timeout_seconds`) |\n| **Errors (`AIP-193`, `AIP-211`)** | `google.rpc.Status` + `ErrorInfo` | Canonical status codes + machine-readable error `reason`\u002F`domain`\u002F`metadata` details; check authorization before request validation (`AIP-211`) |\n\n## Operational Modes\n\n### 1. Asking Questions \u002F Design Discovery\n\nWhen the user asks you to help flesh out an API, stress-test a proposal, or ask clarifying questions:\n\n- Inspect the existing codebase\u002Fspec first so you never ask questions the code already answers.\n- Walk the design decision tree across the core AIP axes, prioritizing unsettled prerequisites first:\n  1. **Resource model & hierarchy (`AIP-121`, `AIP-122`, `AIP-124`, `AIP-156`)**: What are the nouns? Are any resources singletons (`AIP-156`)? Does every resource have a single canonical parent, or are there many-to-one \u002F many-to-many references (`AIP-124`)? Are identifiers server-generated or user-specified (`AIP-122`, `AIP-133`)?\n  2. **Methods & state transitions (`AIP-130`–`AIP-136`, `AIP-216`)**: Which standard CRUD methods exist? Can proposed RPC-style actions (`cancel`, `enable`, `publish`, `approve`) be modeled as state transitions (`AIP-216`) or sub-resources instead of custom methods (`AIP-136`)?\n  3. **Asynchrony & batching (`AIP-151`, `AIP-152`, `AIP-231`–`AIP-235`)**: Can any write take more than a couple of seconds (requiring an LRO `AIP-151` or `Job` `AIP-152`)? If batch operations exist, must they be atomic or support partial failure (`AIP-231`–`AIP-235`)?\n  4. **Collection semantics (`AIP-132`, `AIP-157`–`AIP-160`, `AIP-217`)**: What are default\u002Fmax page sizes (`AIP-158`)? Do callers need filtering (`AIP-160`), sorting (`AIP-132`), cross-parent listing (`AIP-159`), or summary vs. full views (`AIP-157`)?\n  5. **Concurrency, retries & validation (`AIP-154`, `AIP-155`, `AIP-163`, `AIP-194`)**: Can concurrent writers clobber each other without `etag` (`AIP-154`)? Do creates\u002Fcustom actions need idempotency keys (`AIP-155`) or dry-run validation (`validate_only`, `AIP-163`)?\n  6. **Lifecycle, deletion & compatibility (`AIP-135`, `AIP-162`, `AIP-164`, `AIP-180`, `AIP-214`)**: Is deletion permanent, soft-delete with `Undelete` (`AIP-164`), TTL-based (`expire_time`, `AIP-214`), or cascading (`force`, `AIP-135`)? Are revisions needed (`AIP-162`)?\n- For each question, briefly cite the relevant AIP and state the AIP-recommended default so the user can accept or override it quickly.\n\n### 2. Reviewing \u002F Giving Feedback on an API\n\nWhen reviewing an API definition, PR, schema, or implementation:\n\n- Read the applicable AIPs in `{{skillDir}}\u002Freferences\u002F` before writing the review.\n- Organize findings by severity:\n  1. **Contract & evolution hazards**: Unpaginated list endpoints (`AIP-158`), backwards-incompatible changes (`AIP-180`), boolean flags instead of extensible state enums (`AIP-126`, `AIP-216`), leaky database schemas (`AIP-121`), missing idempotency\u002Fconcurrency protection (`AIP-154`, `AIP-155`), or validation errors that leak resource existence before auth checks (`AIP-211`).\n  2. **Resource & method design**: Custom verbs where standard methods fit (`AIP-121`, `AIP-136`), inconsistent resource shapes across `Get`\u002F`List`\u002F`Create`\u002F`Update` (`AIP-121`), missing `Get` or `List`, `PUT` full-replacement traps instead of partial `PATCH` (`AIP-134`), or blocking methods that should be LROs (`AIP-151`).\n  3. **Fields, naming & polish**: Ambiguous field names (`AIP-140`, `AIP-148`), unitless numbers (`AIP-141`), non-standard timestamps\u002Fdurations (`AIP-142`), non-ISO codes (`AIP-143`), single fields dual-purposed for user input and server-computed state (`AIP-129`), or vague error responses (`AIP-193`).\n- For every finding:\n  - Cite the AIP number and requirement level (**MUST**, **SHOULD**, **MAY**).\n  - Explain the **rationale** (what breaks for clients or future maintainers if ignored).\n  - Provide a concrete before\u002Fafter snippet idiomatic to the repo's stack.\n- Balance strictness with **`AIP-200` (Precedent)**: if the codebase already has an established local convention, note the AIP trade-off and distinguish between harmless local style differences and beta\u002FGA-blocking usability hazards (`AIP-205`).\n\n### 3. Answering Specific API Design Questions\n\n- Read the primary AIP(s) from `{{skillDir}}\u002Freferences\u002F`.\n- Give a direct recommendation first, cite the governing AIPs, explain the trade-offs\u002Fexceptions documented in the AIP's `## Guidance` and `## Rationale` sections, and show an idiomatic example.\n\n---\n\n## General AIP Reference Catalog (`{{skillDir}}\u002Freferences\u002F`)\n\n### Meta & Process\n- `{{skillDir}}\u002Freferences\u002F0001.md` — **AIP-1: AIP Purpose and Guidelines**: Why AIPs exist, states (`draft`, `reviewing`, `approved`), and governance.\n- `{{skillDir}}\u002Freferences\u002F0002.md` — **AIP-2: AIP Numbering**: General block (`1–999`) vs. product-area blocks (`2500+`) and internal `9000+` block.\n- `{{skillDir}}\u002Freferences\u002F0003.md` — **AIP-3: AIP Versioning**: Date-based evolution of AIP guidance.\n- `{{skillDir}}\u002Freferences\u002F0008.md` — **AIP-8: AIP Style and Guidance**: RFC 2119 requirement keywords (`MUST`, `SHOULD`, `MAY`) and designing for broad client ecosystems.\n- `{{skillDir}}\u002Freferences\u002F0009.md` — **AIP-9: Glossary**: Definitions of service, interface, method, resource, consumer, producer, and declarative client.\n- `{{skillDir}}\u002Freferences\u002F0100.md` — **AIP-100: API Design Review FAQ**: How API design reviews work, handling precedent, and resolving design trade-offs.\n- `{{skillDir}}\u002Freferences\u002F0200.md` — **AIP-200: Precedent**: When local\u002Fexisting API consistency justifies deviating from an AIP, and when it does not.\n- `{{skillDir}}\u002Freferences\u002F0205.md` — **AIP-205: Beta-blocking changes**: Usability and standard violations that must be fixed before promoting an Alpha API to Beta\u002FGA.\n\n### API Concepts & Resource Design\n- `{{skillDir}}\u002Freferences\u002F0111.md` — **AIP-111: Planes**: Management plane vs. data plane distinctions (scale, latency, consistency, declarative friendliness).\n- `{{skillDir}}\u002Freferences\u002F0121.md` — **AIP-121: Resource-oriented design**: Core model: resources (nouns), acyclic hierarchies, standard methods, matching resource schemas across methods, strong consistency on management plane, stateless requests.\n- `{{skillDir}}\u002Freferences\u002F0122.md` — **AIP-122: Resource names**: Collection identifiers (plural `camelCase`), resource ID segments, full resource names, `name` vs. `parent` vs. `*_id`, referring to other resources by name instead of embedding them.\n- `{{skillDir}}\u002Freferences\u002F0123.md` — **AIP-123: Resource types**: Canonical `{Service}\u002F{Type}` resource type names, singular\u002Fplural definitions, message alignment.\n- `{{skillDir}}\u002Freferences\u002F0124.md` — **AIP-124: Resource association**: Single canonical parent rule, multiple many-to-one references, and sub-resources\u002Fassociation resources for many-to-many relationships.\n- `{{skillDir}}\u002Freferences\u002F0126.md` — **AIP-126: Enumerations**: `UPPER_SNAKE_CASE`, mandatory `*_UNSPECIFIED = 0` zero value, when to use enums vs. strings (`AIP-143`) or booleans.\n- `{{skillDir}}\u002Freferences\u002F0128.md` — **AIP-128: Declarative-friendly interfaces**: Requirements for IaC\u002Fdeclarative tools (user-settable IDs, `etag`, `allow_missing`, LROs, no custom methods).\n- `{{skillDir}}\u002Freferences\u002F0129.md` — **AIP-129: Server-Modified Values and Defaults**: Handling server defaults, dynamic defaults (separate `effective_*` output-only fields), and input normalization.\n- `{{skillDir}}\u002Freferences\u002F0156.md` — **AIP-156: Singleton resources**: Resources with exactly one instance per parent (e.g., `Settings`, `Config`); supports `Get` and `Update`, omits `Create`\u002F`Delete`\u002F`List`.\n- `{{skillDir}}\u002Freferences\u002F0236.md` — **AIP-236: Policy preview**: Previewing\u002Fsimulating policy changes (`live` vs. `preview` policy fields, dry-run evaluation).\n\n### Operations: Standard, Custom & Batch Methods\n- `{{skillDir}}\u002Freferences\u002F0130.md` — **AIP-130: Methods**: Choosing between standard methods, custom methods, and batch methods.\n- `{{skillDir}}\u002Freferences\u002F0131.md` — **AIP-131: Standard methods: Get**: Retrieving a single resource by `name`; `GET`, no side effects, returns the resource itself.\n- `{{skillDir}}\u002Freferences\u002F0132.md` — **AIP-132: Standard methods: List**: Listing a collection (`parent`, `page_size`, `page_token`, optional `filter` and `order_by`); response has plural resource field + `next_page_token`.\n- `{{skillDir}}\u002Freferences\u002F0133.md` — **AIP-133: Standard methods: Create**: Creating a resource (`parent`, `book`, optional `book_id`); `POST`, returns the created resource (or LRO).\n- `{{skillDir}}\u002Freferences\u002F0134.md` — **AIP-134: Standard methods: Update**: Partial updates via `PATCH` + `update_mask` (field mask); `allow_missing` for upsert; returns updated resource (or LRO).\n- `{{skillDir}}\u002Freferences\u002F0135.md` — **AIP-135: Standard methods: Delete**: Deleting a resource by `name`; `DELETE`, returns `Empty` (or resource for soft-delete, or LRO); `allow_missing`, `etag`, `force` for cascading delete.\n- `{{skillDir}}\u002Freferences\u002F0136.md` — **AIP-136: Custom methods**: `POST \u002Fv1\u002F{name=...}:\u003Cverb>` for actions that cannot map to standard CRUD; verb naming (`ArchiveBook`, no prepositions), resource vs. collection vs. stateless custom methods.\n- `{{skillDir}}\u002Freferences\u002F0151.md` — **AIP-151: Long-running operations**: Async operations returning an `Operation` with `response` and `metadata` types, polling, cancellation, expiration, and errors.\n- `{{skillDir}}\u002Freferences\u002F0231.md` — **AIP-231: Batch methods: Get**: `BatchGet\u003CPlural>` (`GET \u002Fv1\u002F{parent=...}\u002Fbooks:batchGet`), atomic retrieval of up to a fixed number of resources.\n- `{{skillDir}}\u002Freferences\u002F0233.md` — **AIP-233: Batch methods: Create**: `BatchCreate\u003CPlural>` (`POST ...\u002Fbooks:batchCreate`), atomic vs. partial success patterns.\n- `{{skillDir}}\u002Freferences\u002F0234.md` — **AIP-234: Batch methods: Update**: `BatchUpdate\u003CPlural>` (`POST ...\u002Fbooks:batchUpdate`), nested `UpdateBookRequest` items, atomic vs. partial success.\n- `{{skillDir}}\u002Freferences\u002F0235.md` — **AIP-235: Batch methods: Delete**: `BatchDelete\u003CPlural>` (`POST ...\u002Fbooks:batchDelete`), atomic vs. partial success, soft-delete responses.\n\n### Fields\n- `{{skillDir}}\u002Freferences\u002F0140.md` — **AIP-140: Field names**: ` lower_snake_case`, American English, no prepositions (`for`, `during`, `at`, `with`), avoid abbreviations (`config`, `id`, `spec`, `stats` allowed), boolean `has_`\u002F`is_` rules, `uri` over `url`.\n- `{{skillDir}}\u002Freferences\u002F0141.md` — **AIP-141: Quantities**: Always suffix numeric quantities with the plural unit (`size_bytes`, `distance_miles`, ` node_count`); prefer `int64` over `uint64` and `double` over `float`.\n- `{{skillDir}}\u002Freferences\u002F0142.md` — **AIP-142: Time and duration**: `Timestamp` with `*_time` suffix (never `*_date` or `*_at`), `Duration` or unit-suffixed integers, civil `Date`\u002F`TimeOfDay`\u002F`DateTime` + IANA time zone.\n- `{{skillDir}}\u002Freferences\u002F0143.md` — **AIP-143: Standardized codes**: Use string fields for MIME `content_type` \u002F `mime_type`, Unicode CLDR `region_code` (not `country`), ISO-4217 `currency_code`, BCP-47 `language_code`, IANA `time_zone`.\n- `{{skillDir}}\u002Freferences\u002F0144.md` — **AIP-144: Repeated fields**: Prefer repeated messages over parallel arrays or scalar lists when elements may grow attributes; helper strategies for updating repeated fields.\n- `{{skillDir}}\u002Freferences\u002F0145.md` — **AIP-145: Ranges**: Half-open `[start_*, end_*)` intervals (`start_time`\u002F`end_time`, `start_offset`\u002F`end_offset`); inclusive only for dates.\n- `{{skillDir}}\u002Freferences\u002F0146.md` — **AIP-146: Generic fields**: Trade-offs between `oneof`, `map\u003Cstring, string>`, `Struct`, and `Any`; avoid untyped blobs when schemas are known.\n- `{{skillDir}}\u002Freferences\u002F0147.md` — **AIP-147: Sensitive fields**: Handling secrets\u002Fkeys via `INPUT_ONLY` fields, dedicated custom methods, or separate secret resources.\n- `{{skillDir}}\u002Freferences\u002F0148.md` — **AIP-148: Standard fields**: Standard names and semantics for `name`, `uid`, `display_name`, `title`, `description`, `create_time`, `update_time`, `delete_time`, `expire_time`, `etag`, `labels`, `annotations`.\n- `{{skillDir}}\u002Freferences\u002F0149.md` — **AIP-149: Unset field values**: Distinguishing unset\u002Fnull from zero-value defaults (`optional` presence tracking) and avoiding nullable wrapper types.\n- `{{skillDir}}\u002Freferences\u002F0202.md` — **AIP-202: Fields**: Enriching string\u002Fbytes fields with semantic format metadata (`UUID4`, `IPV4`, `IPV6`, `IPV4_OR_IPV6`).\n- `{{skillDir}}\u002Freferences\u002F0203.md` — **AIP-203: Field behavior documentation**: Semantics of `REQUIRED`, `OPTIONAL`, `OUTPUT_ONLY`, `INPUT_ONLY`, `IMMUTABLE`, `IDENTIFIER`, and `UNORDERED_LIST` (including ignoring `OUTPUT_ONLY` fields in requests rather than erroring).\n- `{{skillDir}}\u002Freferences\u002F0216.md` — **AIP-216: States**: Lifecycle `State` enum (`CREATING`, `ACTIVE`, `UPDATING`, `DELETING`, `DELETED`, `FAILED`, `SUSPENDED`), output-only `state` field, state transition methods.\n\n### Design Patterns\n- `{{skillDir}}\u002Freferences\u002F0152.md` — **AIP-152: Jobs**: Modeling recurring or re-runnable long-running tasks as a `Job` resource with a `:run` custom method returning an LRO.\n- `{{skillDir}}\u002Freferences\u002F0153.md` — **AIP-153: Import and export**: `:import` and `:export` custom methods, source\u002Fdestination config `oneof`, inline vs. external storage, LRO handling.\n- `{{skillDir}}\u002Freferences\u002F0154.md` — **AIP-154: Resource freshness validation**: Optimistic concurrency via `etag` (strong vs. weak), `ABORTED` (`409`) on mismatch.\n- `{{skillDir}}\u002Freferences\u002F0155.md` — **AIP-155: Request identification**: Idempotency via `request_id` (UUID4); deduplicating retries and returning cached response on duplicate request IDs.\n- `{{skillDir}}\u002Freferences\u002F0157.md` — **AIP-157: Partial responses**: Resource `View` enums (`BASIC`, `FULL`) vs. read field masks for large or expensive fields.\n- `{{skillDir}}\u002Freferences\u002F0158.md` — **AIP-158: Pagination**: `page_size` and opaque `page_token` on requests, `next_page_token` and optional `total_size` on responses, optional `skip`.\n- `{{skillDir}}\u002Freferences\u002F0159.md` — **AIP-159: Reading across collections**: Supporting `-` wildcard in parent segments (`publishers\u002F-\u002Fbooks`) for cross-parent `List` and `Get`.\n- `{{skillDir}}\u002Freferences\u002F0160.md` — **AIP-160: Filtering**: Structured `string filter` expressions (`AND`, `OR`, `NOT`, comparisons, `:` has operator, field traversal).\n- `{{skillDir}}\u002Freferences\u002F0161.md` — **AIP-161: Field masks**: Wildcards, nested field paths, map key masks, and invalid mask handling.\n- `{{skillDir}}\u002Freferences\u002F0162.md` — **AIP-162: Resource Revisions**: Revision history via `@\u003Crevision_id>` syntax or nested `revisions` subcollections, tagging, rollback, and deleting revisions.\n- `{{skillDir}}\u002Freferences\u002F0163.md` — **AIP-163: Change validation**: `bool validate_only` on mutating requests for dry-run validation without side effects.\n- `{{skillDir}}\u002Freferences\u002F0164.md` — **AIP-164: Soft delete**: Retaining deleted resources with `DELETED` state and `expire_time`, `show_deleted` on `List`, `:undelete` and `:expunge` methods.\n- `{{skillDir}}\u002Freferences\u002F0165.md` — **AIP-165: Criteria-based delete**: `: purge` custom method (`filter` + `force` dry-run safety flag) when deleting resources by filter criteria.\n- `{{skillDir}}\u002Freferences\u002F0210.md` — **AIP-210: Unicode**: UTF-8 encoding, NFC normalization, measuring lengths in Unicode code points or UTF-8 bytes, identifier character restrictions.\n- `{{skillDir}}\u002Freferences\u002F0211.md` — **AIP-211: Authorization checks**: Check permissions before input validation to prevent resource-existence timing\u002Ferror leaks; `PERMISSION_DENIED` vs. `NOT_FOUND`.\n- `{{skillDir}}\u002Freferences\u002F0214.md` — **AIP-214: Resource expiration**: `expire_time` (`Timestamp`) + input-only `ttl` (`Duration`) `oneof` for automatic resource expiration.\n- `{{skillDir}}\u002Freferences\u002F0217.md` — **AIP-217: Unreachable resources**: `repeated string unreachable` and `return_partial_success` when listing across regions\u002Fshards with partial outages.\n\n### Compatibility & Versioning\n- `{{skillDir}}\u002Freferences\u002F0180.md` — **AIP-180: Backwards compatibility**: Source, wire, and semantic compatibility rules: what changes are safe vs. breaking across API evolutions.\n- `{{skillDir}}\u002Freferences\u002F0181.md` — **AIP-181: Stability levels**: Alpha \u002F Experimental, Beta \u002F Preview, and GA expectations for stability, support, and deprecation windows.\n- `{{skillDir}}\u002Freferences\u002F0182.md` — **AIP-182: External software dependencies**: Versioning and lifecycle rules when a resource exposes third-party software versions.\n- `{{skillDir}}\u002Freferences\u002F0184.md` — **AIP-184: API version identifiers**: Major (`v1`), beta (`v1beta1`), and alpha (`v1alpha`) version identifier formats and ordering.\n- `{{skillDir}}\u002Freferences\u002F0185.md` — **AIP-185: API Versioning**: Channel-based, interface-based, release-based, and visibility-based versioning strategies.\n\n### Polish & Error Handling\n- `{{skillDir}}\u002Freferences\u002F0190.md` — **AIP-190: Naming conventions**: Service, interface, method (`UpperCamelCase` verb+noun), message, and enum naming conventions.\n- `{{skillDir}}\u002Freferences\u002F0191.md` — **AIP-191: File and directory structure**: Package naming, directory layout, and language-specific packaging options (Protobuf).\n- `{{skillDir}}\u002Freferences\u002F0192.md` — **AIP-192: Documentation**: Writing clear API comments: third-person declarative style, constraints, units, cross-references, and deprecation notices.\n- `{{skillDir}}\u002Freferences\u002F0193.md` — **AIP-193: Errors**: Canonical error codes, actionable developer `message`, structured `ErrorInfo` (`reason`, `domain`, `metadata`), `LocalizedMessage`, and partial errors.\n- `{{skillDir}}\u002Freferences\u002F0194.md` — **AIP-194: Automatic retry configuration**: Which methods and status codes (`UNAVAILABLE`, `DEADLINE_EXCEEDED`) are safe for automatic client retry vs. non-retryable.\n\n### Protocol Buffers (When Working with `.proto` \u002F gRPC)\n- `{{skillDir}}\u002Freferences\u002F0127.md` — **AIP-127: HTTP and gRPC Transcoding**: `google.api.http` path bindings, query parameters, `body` mappings, and `additional_bindings`.\n- `{{skillDir}}\u002Freferences\u002F0213.md` — **AIP-213: Common components**: Using well-known `google.protobuf.*` and `google.type.*` messages (`Date`, `Money`, `LatLng`, `Interval`, `PostalAddress`).\n- `{{skillDir}}\u002Freferences\u002F0215.md` — **AIP-215: API-specific protos**: Keeping API proto packages self-contained within a versioned package namespace.\n","# Google API Improvement Proposals (AIP) Guidance\n\nUse this skill to design APIs, critique existing or proposed API surfaces, and interview the user about open API design decisions using the General corpus from [google.aip.dev\u002Fgeneral](https:\u002F\u002Fgoogle.aip.dev\u002Fgeneral).\n\nAll General AIP Markdown documents are materialized in `{{skillDir}}\u002Freferences\u002F` (`0001.md` through `0236.md`, plus `scope.yaml`).\n\n## How to Use the Reference Corpus\n\n1. **Always read the relevant AIP files before giving detailed guidance or review feedback.** Use the catalog below to pick the 2–6 AIPs that govern the topic at hand and read `{{skillDir}}\u002Freferences\u002F\u003Cdddd>.md`.\n2. **Follow relative cross-references.** Each AIP links to related AIPs at the bottom of the file (for example, `[AIP-158]: .\u002F0158.md`); resolve `.\u002F\u003Cdddd>.md` against `{{skillDir}}\u002Freferences\u002F`.\n3. **Search when a topic spans multiple AIPs.** Run `grep` across `{{skillDir}}\u002Freferences\u002F` for specific terms (`etag`, `idempotency`, `allow_missing`, `validate_only`, `unreachable`, `field_mask`, status codes, etc.).\n\n## Adapting AIPs to the Target Stack\n\nGoogle's AIP examples are written in Protocol Buffers and gRPC (`google.api.http`, `google.protobuf.FieldMask`, `google.longrunning.Operation`, `google.rpc.Status`). Per the AIP FAQ, **apply the architectural and semantic rules to whatever stack the codebase uses**, and only enforce Protobuf-specific syntax when working on `.proto` \u002F gRPC \u002F Connect definitions:\n\n| AIP Concept | Protobuf \u002F gRPC | REST \u002F JSON \u002F OpenAPI \u002F TypeScript \u002F RPC |\n|---|---|---|\n| **Resource-oriented design (`AIP-121`)** | Service RPCs over resource messages | Nouns (resources & collections) with standard verbs; decouple public schema from DB tables |\n| **Resource names & IDs (`AIP-122`)** | `publishers\u002F{publisher}\u002Fbooks\u002F{book}` in `string name` | Canonical hierarchical paths (`\u002Fv1\u002Fpublishers\u002F{publisher}\u002Fbooks\u002F{book}`) or consistent resource `id`\u002F`name` fields; never embed full sub-resources where references belong |\n| **Standard methods (`AIP-131`–`AIP-135`)** | `Get`, `List`, `Create`, `Update`, `Delete` RPCs | `GET` item, `GET` collection, `POST` collection, `PATCH` item, `DELETE` item returning consistent resource schemas |\n| **Custom methods (`AIP-136`)** | `POST \u002Fv1\u002F{name=...}:archive` | Prefer state fields (`AIP-216`) or sub-resources first; when a custom verb is required, use `POST` with an action suffix or action sub-path (`:archive` \u002F `\u002Farchive`), never custom HTTP verbs |\n| **Partial updates (`AIP-134`, `AIP-161`)** | `update_mask` (`google.protobuf.FieldMask`) | `PATCH` with explicit partial-update semantics (JSON Merge Patch or field mask); never require callers to resend the full resource just to change one field |\n| **Pagination (`AIP-158`)** | `page_size` + opaque `page_token` -> `next_page_token` | Cursor-based pagination (`page_size`\u002F`limit` + opaque `page_token`\u002F`cursor`) from day one on every collection; avoid offset pagination on mutable collections |\n| **Long-running operations (`AIP-151`, `AIP-152`)** | `google.longrunning.Operation` | Return `202 Accepted` with an Operation resource (`id`, `done`, `metadata`, `response`\u002F`error`) or model repeatable tasks as `Job` resources (`AIP-152`) |\n| **Idempotency & concurrency (`AIP-154`, `AIP-155`)** | `etag` field + `request_id` UUID | `etag` \u002F `If-Match` for optimistic concurrency (`AIP-154`); `request_id` \u002F `Idempotency-Key` on non-idempotent mutations (`AIP-155`) |\n| **Field behavior (`AIP-203`)** | `google.api.field_behavior` annotations | Document and type fields explicitly as required, optional, output-only (`readOnly`), input-only (`writeOnly`), immutable, or unordered |\n| **Time & quantities (`AIP-141`, `AIP-142`)** | `Timestamp`, `Duration`, unit-suffixed fields | RFC 3339 UTC strings (`create_time`, `expire_time`) and explicit unit suffixes (`size_bytes`, `timeout_seconds`) |\n| **Errors (`AIP-193`, `AIP-211`)** | `google.rpc.Status` + `ErrorInfo` | Canonical status codes + machine-readable error `reason`\u002F`domain`\u002F`metadata` details; check authorization before request validation (`AIP-211`) |\n\n## Operational Modes\n\n### 1. Asking Questions \u002F Design Discovery\n\nWhen the user asks you to help flesh out an API, stress-test a proposal, or ask clarifying questions:\n\n- Inspect the existing codebase\u002Fspec first so you never ask questions the code already answers.\n- Walk the design decision tree across the core AIP axes, prioritizing unsettled prerequisites first:\n  1. **Resource model & hierarchy (`AIP-121`, `AIP-122`, `AIP-124`, `AIP-156`)**: What are the nouns? Are any resources singletons (`AIP-156`)? Does every resource have a single canonical parent, or are there many-to-one \u002F many-to-many references (`AIP-124`)? Are identifiers server-generated or user-specified (`AIP-122`, `AIP-133`)?\n  2. **Methods & state transitions (`AIP-130`–`AIP-136`, `AIP-216`)**: Which standard CRUD methods exist? Can proposed RPC-style actions (`cancel`, `enable`, `publish`, `approve`) be modeled as state transitions (`AIP-216`) or sub-resources instead of custom methods (`AIP-136`)?\n  3. **Asynchrony & batching (`AIP-151`, `AIP-152`, `AIP-231`–`AIP-235`)**: Can any write take more than a couple of seconds (requiring an LRO `AIP-151` or `Job` `AIP-152`)? If batch operations exist, must they be atomic or support partial failure (`AIP-231`–`AIP-235`)?\n  4. **Collection semantics (`AIP-132`, `AIP-157`–`AIP-160`, `AIP-217`)**: What are default\u002Fmax page sizes (`AIP-158`)? Do callers need filtering (`AIP-160`), sorting (`AIP-132`), cross-parent listing (`AIP-159`), or summary vs. full views (`AIP-157`)?\n  5. **Concurrency, retries & validation (`AIP-154`, `AIP-155`, `AIP-163`, `AIP-194`)**: Can concurrent writers clobber each other without `etag` (`AIP-154`)? Do creates\u002Fcustom actions need idempotency keys (`AIP-155`) or dry-run validation (`validate_only`, `AIP-163`)?\n  6. **Lifecycle, deletion & compatibility (`AIP-135`, `AIP-162`, `AIP-164`, `AIP-180`, `AIP-214`)**: Is deletion permanent, soft-delete with `Undelete` (`AIP-164`), TTL-based (`expire_time`, `AIP-214`), or cascading (`force`, `AIP-135`)? Are revisions needed (`AIP-162`)?\n- For each question, briefly cite the relevant AIP and state the AIP-recommended default so the user can accept or override it quickly.\n\n### 2. Reviewing \u002F Giving Feedback on an API\n\nWhen reviewing an API definition, PR, schema, or implementation:\n\n- Read the applicable AIPs in `{{skillDir}}\u002Freferences\u002F` before writing the review.\n- Organize findings by severity:\n  1. **Contract & evolution hazards**: Unpaginated list endpoints (`AIP-158`), backwards-incompatible changes (`AIP-180`), boolean flags instead of extensible state enums (`AIP-126`, `AIP-216`), leaky database schemas (`AIP-121`), missing idempotency\u002Fconcurrency protection (`AIP-154`, `AIP-155`), or validation errors that leak resource existence before auth checks (`AIP-211`).\n  2. **Resource & method design**: Custom verbs where standard methods fit (`AIP-121`, `AIP-136`), inconsistent resource shapes across `Get`\u002F`List`\u002F`Create`\u002F`Update` (`AIP-121`), missing `Get` or `List`, `PUT` full-replacement traps instead of partial `PATCH` (`AIP-134`), or blocking methods that should be LROs (`AIP-151`).\n  3. **Fields, naming & polish**: Ambiguous field names (`AIP-140`, `AIP-148`), unitless numbers (`AIP-141`), non-standard timestamps\u002Fdurations (`AIP-142`), non-ISO codes (`AIP-143`), single fields dual-purposed for user input and server-computed state (`AIP-129`), or vague error responses (`AIP-193`).\n- For every finding:\n  - Cite the AIP number and requirement level (**MUST**, **SHOULD**, **MAY**).\n  - Explain the **rationale** (what breaks for clients or future maintainers if ignored).\n  - Provide a concrete before\u002Fafter snippet idiomatic to the repo's stack.\n- Balance strictness with **`AIP-200` (Precedent)**: if the codebase already has an established local convention, note the AIP trade-off and distinguish between harmless local style differences and beta\u002FGA-blocking usability hazards (`AIP-205`).\n\n### 3. Answering Specific API Design Questions\n\n- Read the primary AIP(s) from `{{skillDir}}\u002Freferences\u002F`.\n- Give a direct recommendation first, cite the governing AIPs, explain the trade-offs\u002Fexceptions documented in the AIP's `## Guidance` and `## Rationale` sections, and show an idiomatic example.\n\n---\n\n## General AIP Reference Catalog (`{{skillDir}}\u002Freferences\u002F`)\n\n### Meta & Process\n- `{{skillDir}}\u002Freferences\u002F0001.md` — **AIP-1: AIP Purpose and Guidelines**: Why AIPs exist, states (`draft`, `reviewing`, `approved`), and governance.\n- `{{skillDir}}\u002Freferences\u002F0002.md` — **AIP-2: AIP Numbering**: General block (`1–999`) vs. product-area blocks (`2500+`) and internal `9000+` block.\n- `{{skillDir}}\u002Freferences\u002F0003.md` — **AIP-3: AIP Versioning**: Date-based evolution of AIP guidance.\n- `{{skillDir}}\u002Freferences\u002F0008.md` — **AIP-8: AIP Style and Guidance**: RFC 2119 requirement keywords (`MUST`, `SHOULD`, `MAY`) and designing for broad client ecosystems.\n- `{{skillDir}}\u002Freferences\u002F0009.md` — **AIP-9: Glossary**: Definitions of service, interface, method, resource, consumer, producer, and declarative client.\n- `{{skillDir}}\u002Freferences\u002F0100.md` — **AIP-100: API Design Review FAQ**: How API design reviews work, handling precedent, and resolving design trade-offs.\n- `{{skillDir}}\u002Freferences\u002F0200.md` — **AIP-200: Precedent**: When local\u002Fexisting API consistency justifies deviating from an AIP, and when it does not.\n- `{{skillDir}}\u002Freferences\u002F0205.md` — **AIP-205: Beta-blocking changes**: Usability and standard violations that must be fixed before promoting an Alpha API to Beta\u002FGA.\n\n### API Concepts & Resource Design\n- `{{skillDir}}\u002Freferences\u002F0111.md` — **AIP-111: Planes**: Management plane vs. data plane distinctions (scale, latency, consistency, declarative friendliness).\n- `{{skillDir}}\u002Freferences\u002F0121.md` — **AIP-121: Resource-oriented design**: Core model: resources (nouns), acyclic hierarchies, standard methods, matching resource schemas across methods, strong consistency on management plane, stateless requests.\n- `{{skillDir}}\u002Freferences\u002F0122.md` — **AIP-122: Resource names**: Collection identifiers (plural `camelCase`), resource ID segments, full resource names, `name` vs. `parent` vs. `*_id`, referring to other resources by name instead of embedding them.\n- `{{skillDir}}\u002Freferences\u002F0123.md` — **AIP-123: Resource types**: Canonical `{Service}\u002F{Type}` resource type names, singular\u002Fplural definitions, message alignment.\n- `{{skillDir}}\u002Freferences\u002F0124.md` — **AIP-124: Resource association**: Single canonical parent rule, multiple many-to-one references, and sub-resources\u002Fassociation resources for many-to-many relationships.\n- `{{skillDir}}\u002Freferences\u002F0126.md` — **AIP-126: Enumerations**: `UPPER_SNAKE_CASE`, mandatory `*_UNSPECIFIED = 0` zero value, when to use enums vs. strings (`AIP-143`) or booleans.\n- `{{skillDir}}\u002Freferences\u002F0128.md` — **AIP-128: Declarative-friendly interfaces**: Requirements for IaC\u002Fdeclarative tools (user-settable IDs, `etag`, `allow_missing`, LROs, no custom methods).\n- `{{skillDir}}\u002Freferences\u002F0129.md` — **AIP-129: Server-Modified Values and Defaults**: Handling server defaults, dynamic defaults (separate `effective_*` output-only fields), and input normalization.\n- `{{skillDir}}\u002Freferences\u002F0156.md` — **AIP-156: Singleton resources**: Resources with exactly one instance per parent (e.g., `Settings`, `Config`); supports `Get` and `Update`, omits `Create`\u002F`Delete`\u002F`List`.\n- `{{skillDir}}\u002Freferences\u002F0236.md` — **AIP-236: Policy preview**: Previewing\u002Fsimulating policy changes (`live` vs. `preview` policy fields, dry-run evaluation).\n\n### Operations: Standard, Custom & Batch Methods\n- `{{skillDir}}\u002Freferences\u002F0130.md` — **AIP-130: Methods**: Choosing between standard methods, custom methods, and batch methods.\n- `{{skillDir}}\u002Freferences\u002F0131.md` — **AIP-131: Standard methods: Get**: Retrieving a single resource by `name`; `GET`, no side effects, returns the resource itself.\n- `{{skillDir}}\u002Freferences\u002F0132.md` — **AIP-132: Standard methods: List**: Listing a collection (`parent`, `page_size`, `page_token`, optional `filter` and `order_by`); response has plural resource field + `next_page_token`.\n- `{{skillDir}}\u002Freferences\u002F0133.md` — **AIP-133: Standard methods: Create**: Creating a resource (`parent`, `book`, optional `book_id`); `POST`, returns the created resource (or LRO).\n- `{{skillDir}}\u002Freferences\u002F0134.md` — **AIP-134: Standard methods: Update**: Partial updates via `PATCH` + `update_mask` (field mask); `allow_missing` for upsert; returns updated resource (or LRO).\n- `{{skillDir}}\u002Freferences\u002F0135.md` — **AIP-135: Standard methods: Delete**: Deleting a resource by `name`; `DELETE`, returns `Empty` (or resource for soft-delete, or LRO); `allow_missing`, `etag`, `force` for cascading delete.\n- `{{skillDir}}\u002Freferences\u002F0136.md` — **AIP-136: Custom methods**: `POST \u002Fv1\u002F{name=...}:\u003Cverb>` for actions that cannot map to standard CRUD; verb naming (`ArchiveBook`, no prepositions), resource vs. collection vs. stateless custom methods.\n- `{{skillDir}}\u002Freferences\u002F0151.md` — **AIP-151: Long-running operations**: Async operations returning an `Operation` with `response` and `metadata` types, polling, cancellation, expiration, and errors.\n- `{{skillDir}}\u002Freferences\u002F0231.md` — **AIP-231: Batch methods: Get**: `BatchGet\u003CPlural>` (`GET \u002Fv1\u002F{parent=...}\u002Fbooks:batchGet`), atomic retrieval of up to a fixed number of resources.\n- `{{skillDir}}\u002Freferences\u002F0233.md` — **AIP-233: Batch methods: Create**: `BatchCreate\u003CPlural>` (`POST ...\u002Fbooks:batchCreate`), atomic vs. partial success patterns.\n- `{{skillDir}}\u002Freferences\u002F0234.md` — **AIP-234: Batch methods: Update**: `BatchUpdate\u003CPlural>` (`POST ...\u002Fbooks:batchUpdate`), nested `UpdateBookRequest` items, atomic vs. partial success.\n- `{{skillDir}}\u002Freferences\u002F0235.md` — **AIP-235: Batch methods: Delete**: `BatchDelete\u003CPlural>` (`POST ...\u002Fbooks:batchDelete`), atomic vs. partial success, soft-delete responses.\n\n### Fields\n- `{{skillDir}}\u002Freferences\u002F0140.md` — **AIP-140: Field names**: ` lower_snake_case`, American English, no prepositions (`for`, `during`, `at`, `with`), avoid abbreviations (`config`, `id`, `spec`, `stats` allowed), boolean `has_`\u002F`is_` rules, `uri` over `url`.\n- `{{skillDir}}\u002Freferences\u002F0141.md` — **AIP-141: Quantities**: Always suffix numeric quantities with the plural unit (`size_bytes`, `distance_miles`, ` node_count`); prefer `int64` over `uint64` and `double` over `float`.\n- `{{skillDir}}\u002Freferences\u002F0142.md` — **AIP-142: Time and duration**: `Timestamp` with `*_time` suffix (never `*_date` or `*_at`), `Duration` or unit-suffixed integers, civil `Date`\u002F`TimeOfDay`\u002F`DateTime` + IANA time zone.\n- `{{skillDir}}\u002Freferences\u002F0143.md` — **AIP-143: Standardized codes**: Use string fields for MIME `content_type` \u002F `mime_type`, Unicode CLDR `region_code` (not `country`), ISO-4217 `currency_code`, BCP-47 `language_code`, IANA `time_zone`.\n- `{{skillDir}}\u002Freferences\u002F0144.md` — **AIP-144: Repeated fields**: Prefer repeated messages over parallel arrays or scalar lists when elements may grow attributes; helper strategies for updating repeated fields.\n- `{{skillDir}}\u002Freferences\u002F0145.md` — **AIP-145: Ranges**: Half-open `[start_*, end_*)` intervals (`start_time`\u002F`end_time`, `start_offset`\u002F`end_offset`); inclusive only for dates.\n- `{{skillDir}}\u002Freferences\u002F0146.md` — **AIP-146: Generic fields**: Trade-offs between `oneof`, `map\u003Cstring, string>`, `Struct`, and `Any`; avoid untyped blobs when schemas are known.\n- `{{skillDir}}\u002Freferences\u002F0147.md` — **AIP-147: Sensitive fields**: Handling secrets\u002Fkeys via `INPUT_ONLY` fields, dedicated custom methods, or separate secret resources.\n- `{{skillDir}}\u002Freferences\u002F0148.md` — **AIP-148: Standard fields**: Standard names and semantics for `name`, `uid`, `display_name`, `title`, `description`, `create_time`, `update_time`, `delete_time`, `expire_time`, `etag`, `labels`, `annotations`.\n- `{{skillDir}}\u002Freferences\u002F0149.md` — **AIP-149: Unset field values**: Distinguishing unset\u002Fnull from zero-value defaults (`optional` presence tracking) and avoiding nullable wrapper types.\n- `{{skillDir}}\u002Freferences\u002F0202.md` — **AIP-202: Fields**: Enriching string\u002Fbytes fields with semantic format metadata (`UUID4`, `IPV4`, `IPV6`, `IPV4_OR_IPV6`).\n- `{{skillDir}}\u002Freferences\u002F0203.md` — **AIP-203: Field behavior documentation**: Semantics of `REQUIRED`, `OPTIONAL`, `OUTPUT_ONLY`, `INPUT_ONLY`, `IMMUTABLE`, `IDENTIFIER`, and `UNORDERED_LIST` (including ignoring `OUTPUT_ONLY` fields in requests rather than erroring).\n- `{{skillDir}}\u002Freferences\u002F0216.md` — **AIP-216: States**: Lifecycle `State` enum (`CREATING`, `ACTIVE`, `UPDATING`, `DELETING`, `DELETED`, `FAILED`, `SUSPENDED`), output-only `state` field, state transition methods.\n\n### Design Patterns\n- `{{skillDir}}\u002Freferences\u002F0152.md` — **AIP-152: Jobs**: Modeling recurring or re-runnable long-running tasks as a `Job` resource with a `:run` custom method returning an LRO.\n- `{{skillDir}}\u002Freferences\u002F0153.md` — **AIP-153: Import and export**: `:import` and `:export` custom methods, source\u002Fdestination config `oneof`, inline vs. external storage, LRO handling.\n- `{{skillDir}}\u002Freferences\u002F0154.md` — **AIP-154: Resource freshness validation**: Optimistic concurrency via `etag` (strong vs. weak), `ABORTED` (`409`) on mismatch.\n- `{{skillDir}}\u002Freferences\u002F0155.md` — **AIP-155: Request identification**: Idempotency via `request_id` (UUID4); deduplicating retries and returning cached response on duplicate request IDs.\n- `{{skillDir}}\u002Freferences\u002F0157.md` — **AIP-157: Partial responses**: Resource `View` enums (`BASIC`, `FULL`) vs. read field masks for large or expensive fields.\n- `{{skillDir}}\u002Freferences\u002F0158.md` — **AIP-158: Pagination**: `page_size` and opaque `page_token` on requests, `next_page_token` and optional `total_size` on responses, optional `skip`.\n- `{{skillDir}}\u002Freferences\u002F0159.md` — **AIP-159: Reading across collections**: Supporting `-` wildcard in parent segments (`publishers\u002F-\u002Fbooks`) for cross-parent `List` and `Get`.\n- `{{skillDir}}\u002Freferences\u002F0160.md` — **AIP-160: Filtering**: Structured `string filter` expressions (`AND`, `OR`, `NOT`, comparisons, `:` has operator, field traversal).\n- `{{skillDir}}\u002Freferences\u002F0161.md` — **AIP-161: Field masks**: Wildcards, nested field paths, map key masks, and invalid mask handling.\n- `{{skillDir}}\u002Freferences\u002F0162.md` — **AIP-162: Resource Revisions**: Revision history via `@\u003Crevision_id>` syntax or nested `revisions` subcollections, tagging, rollback, and deleting revisions.\n- `{{skillDir}}\u002Freferences\u002F0163.md` — **AIP-163: Change validation**: `bool validate_only` on mutating requests for dry-run validation without side effects.\n- `{{skillDir}}\u002Freferences\u002F0164.md` — **AIP-164: Soft delete**: Retaining deleted resources with `DELETED` state and `expire_time`, `show_deleted` on `List`, `:undelete` and `:expunge` methods.\n- `{{skillDir}}\u002Freferences\u002F0165.md` — **AIP-165: Criteria-based delete**: `: purge` custom method (`filter` + `force` dry-run safety flag) when deleting resources by filter criteria.\n- `{{skillDir}}\u002Freferences\u002F0210.md` — **AIP-210: Unicode**: UTF-8 encoding, NFC normalization, measuring lengths in Unicode code points or UTF-8 bytes, identifier character restrictions.\n- `{{skillDir}}\u002Freferences\u002F0211.md` — **AIP-211: Authorization checks**: Check permissions before input validation to prevent resource-existence timing\u002Ferror leaks; `PERMISSION_DENIED` vs. `NOT_FOUND`.\n- `{{skillDir}}\u002Freferences\u002F0214.md` — **AIP-214: Resource expiration**: `expire_time` (`Timestamp`) + input-only `ttl` (`Duration`) `oneof` for automatic resource expiration.\n- `{{skillDir}}\u002Freferences\u002F0217.md` — **AIP-217: Unreachable resources**: `repeated string unreachable` and `return_partial_success` when listing across regions\u002Fshards with partial outages.\n\n### Compatibility & Versioning\n- `{{skillDir}}\u002Freferences\u002F0180.md` — **AIP-180: Backwards compatibility**: Source, wire, and semantic compatibility rules: what changes are safe vs. breaking across API evolutions.\n- `{{skillDir}}\u002Freferences\u002F0181.md` — **AIP-181: Stability levels**: Alpha \u002F Experimental, Beta \u002F Preview, and GA expectations for stability, support, and deprecation windows.\n- `{{skillDir}}\u002Freferences\u002F0182.md` — **AIP-182: External software dependencies**: Versioning and lifecycle rules when a resource exposes third-party software versions.\n- `{{skillDir}}\u002Freferences\u002F0184.md` — **AIP-184: API version identifiers**: Major (`v1`), beta (`v1beta1`), and alpha (`v1alpha`) version identifier formats and ordering.\n- `{{skillDir}}\u002Freferences\u002F0185.md` — **AIP-185: API Versioning**: Channel-based, interface-based, release-based, and visibility-based versioning strategies.\n\n### Polish & Error Handling\n- `{{skillDir}}\u002Freferences\u002F0190.md` — **AIP-190: Naming conventions**: Service, interface, method (`UpperCamelCase` verb+noun), message, and enum naming conventions.\n- `{{skillDir}}\u002Freferences\u002F0191.md` — **AIP-191: File and directory structure**: Package naming, directory layout, and language-specific packaging options (Protobuf).\n- `{{skillDir}}\u002Freferences\u002F0192.md` — **AIP-192: Documentation**: Writing clear API comments: third-person declarative style, constraints, units, cross-references, and deprecation notices.\n- `{{skillDir}}\u002Freferences\u002F0193.md` — **AIP-193: Errors**: Canonical error codes, actionable developer `message`, structured `ErrorInfo` (`reason`, `domain`, `metadata`), `LocalizedMessage`, and partial errors.\n- `{{skillDir}}\u002Freferences\u002F0194.md` — **AIP-194: Automatic retry configuration**: Which methods and status codes (`UNAVAILABLE`, `DEADLINE_EXCEEDED`) are safe for automatic client retry vs. non-retryable.\n\n### Protocol Buffers (When Working with `.proto` \u002F gRPC)\n- `{{skillDir}}\u002Freferences\u002F0127.md` — **AIP-127: HTTP and gRPC Transcoding**: `google.api.http` path bindings, query parameters, `body` mappings, and `additional_bindings`.\n- `{{skillDir}}\u002Freferences\u002F0213.md` — **AIP-213: Common components**: Using well-known `google.protobuf.*` and `google.type.*` messages (`Date`, `Money`, `LatLng`, `Interval`, `PostalAddress`).\n- `{{skillDir}}\u002Freferences\u002F0215.md` — **AIP-215: API-specific protos**: Keeping API proto packages self-contained within a versioned package namespace.\n",{"name":5,"source":24,"description":7,"disable-model-invocation":28},{"git":25,"into":26,"path":27},"https:\u002F\u002Fgithub.com\u002Faip-dev\u002Fgoogle.aip.dev","references","aip\u002Fgeneral",true,"main","0f3de0b423ad1c0df73cedbb92434dc6fff152a0","skills\u002Fgoogle-aip","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config","https:\u002F\u002Fgithub.com\u002Fdrew-council","2026-11-14 03:30:35",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":28},[37,40,43],{"tool":38,"command":39},"npx","npx skills add drew-council\u002Fpi-config --skill google-aip",{"tool":41,"command":42},"bunx","bunx skills add drew-council\u002Fpi-config --skill google-aip",{"tool":44,"command":45},"pnpm","pnpm dlx skills add drew-council\u002Fpi-config --skill google-aip","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle-aip\u002FSKILL.md",[],[49,56,64,72,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M78QSXNG06NKTNAJ82MED5SD","fleet","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Ffleet\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M768S9X0ZKPY1A4R50E9PKHE","break-up-pr","Break up a large PR into reviewable smaller PRs stacked in gh-stack.","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fbreak-up-pr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M7490VAWY8FRJFWKPR14NNQ2","copilot-review","Address GitHub Copilot review comments. Use only when you actually see \"GitHub Copilot\" come up.","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fcopilot-review\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7228JHVQ982E3D2PKN6KQE4","writing-skills","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7228GX7C9CPT9G5RVDQY4P7","weekly-update","Draft and apply the invoking user's own updates to the Sheer Weekly Recap Google Doc, from their sprint issues and their past week of GitHub activity. Always presents a draft for approval before editing the doc.","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-update\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7228DXVNZ93439ZPZD9KANA","weave","Resolves and verifies git merge conflicts with weave, an entity-level semantic merge driver. Use when a merge, rebase, or cherry-pick leaves weave conflict markers (lines with `refused_by:`), or when asked to run `weave explain`, `weave check`, `weave preview`, or `weave land`.","https:\u002F\u002Fgithub.com\u002Fdrew-council\u002Fpi-config\u002Fblob\u002Fmain\u002Fskills\u002Fweave\u002FSKILL.md",[],[]]