Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Design APIs that developers love to use — consistent, predictable, and well-documented.
✅ GET /api/users → List users
✅ POST /api/users → Create user
✅ GET /api/users/{id} → Get user
✅ PATCH /api/users/{id} → Update user fields
✅ DELETE /api/users/{id} → Delete user
❌ POST /api/createUser
❌ GET /api/getUserById
❌ POST /api/deleteUser
| Method | Purpose | Idempotent | Safe | Request Body |
|---|---|---|---|---|
| GET | Read | ✅ | ✅ | No |
| POST | Create | ❌ | ❌ | Yes |
| PUT | Replace | ✅ | ❌ | Yes |
| PATCH | Partial update | ❌ | ❌ | Yes |
| DELETE | Remove | ✅ | ❌ | No |
| Code | When | Example |
|---|---|---|
| 200 | Success with body | GET returns resource |
| 201 | Created | POST creates new resource |
| 204 | Success, no body | DELETE succeeds |
| 400 | Client sent bad data | Malformed JSON |
| 401 | Not authenticated | Missing/invalid token |
| 403 | Authenticated but not authorized | Wrong role |
| 404 | Resource doesn't exist | Invalid ID |
| 409 | Conflict | Duplicate email |
| 422 | Valid JSON, invalid content | Email format wrong |
| 429 | Rate limited | Too many requests |
| 500 | Server error | Unhandled exception |
{
"error": "ValidationError",
"code": "INVALID_EMAIL",
"message": "Email address is not valid",
"details": {
"field": "email",
"value": "not-an-email",
"constraint": "Must be a valid email format"
}
}
Rules:
code for client logicmessage for displaydetails for field-level validation errorsGET /api/users?page=2&page_size=20
Response:
{
"items": [...],
"total": 243,
"page": 2,
"page_size": 20,
"pages": 13
}
For GraphQL, use cursor-based pagination (Relay spec):
type UserConnection {
edges: [UserEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
| Strategy | URL | Header | Query |
|---|---|---|---|
| Example | /api/v1/users | Accept: application/vnd.api+json; version=1 | /api/users?version=1 |
| Pros | Simple, visible | Clean URLs | Simple to add |
| Cons | URL pollution | Hidden from browsers | Caching complexity |
| Best for | Most APIs | Internal APIs | Quick prototypes |
Every public endpoint must return rate limit headers:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 42
X-RateLimit-Reset: 1625097600
Before implementing any endpoint:
| Don't | Do |
|---|---|
Verbs in URLs (/getUser) | Nouns + HTTP methods (GET /users) |
| 200 for everything | Correct status codes per operation |
| Generic errors ("Something went wrong") | Structured errors with codes |
| Return all fields always | Support field selection or use GraphQL |
| Nest resources >2 levels deep | /users/{id}/orders max; flatten after that |
| Ignore backward compatibility | Version APIs; deprecation headers before removal |
See resources/implementation-playbook.md for:
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.
中文简介正在准备中。当前显示原文说明。
Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.
中文简介正在准备中。当前显示原文说明。
Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.
中文简介正在准备中。当前显示原文说明。
Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).
中文简介正在准备中。当前显示原文说明。
Orchestrate ambiguity auditing across selected layers with rubric-driven scoring, remediation flow, and next-step gating
中文简介正在准备中。当前显示原文说明。