aip-knowledge
This skill should be used when the user asks about "AIP rules", "API Improvement Proposals", "Google API guidelines", "AIP-158", "AIP-193", or any specific AIP number. Also use when user asks "how should I implement pagination", "what's the right error format", "how do I design a REST API following Google's standards", or needs guidance on errors, pagination, filtering, field masks, long-running operations, or batch operations in REST/OpenAPI APIs.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- aip-knowledge
- description
- This skill should be used when the user asks about "AIP rules", "API Improvement Proposals", "Google API guidelines", "AIP-158", "AIP-193", or any specific AIP number. Also use when user asks "how should I implement pagination", "what's the right error format", "how do I design a REST API following Google's standards", or needs guidance on errors, pagination, filtering, field masks, long-running operations, or batch operations in REST/OpenAPI APIs.
02 资源文件 8
- 参考文档batch.md6.3 KB
- 参考文档errors.md6.2 KB
- 参考文档field-masks.md6.8 KB
- 参考文档filtering.md6.3 KB
- 参考文档linter-rules.md3.7 KB
- 参考文档lro.md8.7 KB
- 参考文档pagination.md5.7 KB
- 参考文档rest-mapping.md7.0 KB
03 SKILL.md 正文
AIP Knowledge
Quick reference for Google API Improvement Proposals adapted to REST/OpenAPI.
How to Use This Skill
- For quick patterns: Use the Quick Reference section below
- For detailed guidance: Load the relevant reference file from the table
- For AIP rule violations: See
linter-rules.mdfor all 17 automated rules - For deeper explanation: Use the
baume-lookupagent to fetch from google.aip.dev
Reference Files
Load the relevant reference file based on the task:
| Topic | Reference File | When to Use |
|---|---|---|
| Error responses | errors.md |
Designing error schema, reviewing error handling |
| Pagination | pagination.md |
Adding pagination to list endpoints |
| Filtering & sorting | filtering.md |
Adding filter/order_by parameters |
| Long-running ops | lro.md |
Async operations, jobs, polling |
| Partial updates | field-masks.md |
PATCH implementation, update semantics |
| Batch operations | batch.md |
Batch create/update/delete |
| Proto → REST mapping | rest-mapping.md |
Translating AIP concepts to REST |
| Linter rules | linter-rules.md |
All 17 automated AIP rules with skip options |
Quick Reference
Standard Methods → HTTP
| Method | HTTP | Path | Idempotent | Related Rules |
|---|---|---|---|---|
| Get | GET | /resources/{id} |
Yes | aip131/get-no-body |
| List | GET | /resources |
Yes | aip158/list-paginated, aip132/has-filtering, aip132/has-ordering |
| Create | POST | /resources |
No* | aip133/post-returns-201, aip155/idempotency-key |
| Update | PATCH | /resources/{id} |
Yes | aip134/patch-over-put |
| Delete | DELETE | /resources/{id} |
Yes | aip135/delete-idempotent |
*Use Idempotency-Key header for safe retries
Naming Rules (AIP-122)
/users,/orders,/products(plural nouns)/user,/order(singular - triggersaip122/plural-resources)/getUsers,/createOrder(verbs - triggersaip122/no-verbs)/users/{id}/orders(nested ownership)
Pagination (AIP-158)
Request: ?page_size=20&page_token=xxx
Response:
{
"data": [...],
"next_page_token": "yyy"
}
Error Response (AIP-193)
{
"error": {
"code": "INVALID_ARGUMENT",
"message": "Human-readable message",
"details": [...],
"request_id": "req_abc123"
}
}
Fetch AIPs On Demand
For detailed guidance, fetch from:
https://google.aip.dev/{number}(e.g.,/158for pagination)- Only fetch when user needs deeper explanation
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.