一键导入
api-design-principles
REST/HTTP API design: resource naming, status codes, error formats, versioning, pagination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
REST/HTTP API design: resource naming, status codes, error formats, versioning, pagination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Session bootstrap + workflows for Pathfinder semantic navigation tools. Covers: discovery protocol, tool chaining patterns (explore, impact, audit, debug), search optimization, LSP degraded mode, and error recovery.
Playwright browser automation via MCP. Covers E2E testing, UI review, web scraping, screenshot capture, and general browser interaction. MCP-first — CLI is fallback only.
Safe command execution: input sanitization, timeout handling, output capture, error propagation. For spawning processes, shell commands, system calls.
Git conventions: conventional commits, branch naming, PR hygiene, release tagging.
Structured incident workflow: severity classification, triage, diagnosis, mitigation, postmortem, and prevention. Template-driven with blameless review.
Constructs, validates, and traverses a Directed Acyclic Graph (DAG) from scope cards for safe level-based parallel dispatch. Determines execution order via topological sort. Detects cycles and invalid dependencies.
| name | api-design-principles |
| description | REST/HTTP API design: resource naming, status codes, error formats, versioning, pagination. |
| user-invocable | false |
URLs: plural nouns (/api/v1/users), hierarchical (/users/:id/orders), no verbs.
Methods: GET=read (safe, idempotent, cacheable), POST=create, PUT=replace (idempotent), PATCH=partial update (idempotent), DELETE=remove (idempotent).
Versioning: URL path /api/v1/users.
Pagination: default 20, max 100. Cursor (?cursor=abc123) or offset (?page=2&limit=20).
Filter/Sort: ?status=active&role=admin, ?sort=created_at:desc,name:asc, ?q=search+term.
Success: 200 OK (GET/PUT/PATCH), 201 Created (POST), 204 No Content (DELETE).
4xx (client can fix):
5xx (system): 500/502/503 — generic message + correlationId. User: retry later.
{
"data": { /* resource or array */ },
"meta": {
"total": 100,
"page": 1,
"perPage": 20
},
"links": {
"self": "/api/v1/users?page=1",
"next": "/api/v1/users?page=2",
"prev": null
}
}
{
"status": "error",
"code": 400,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid email format",
"details": {
"field": "email",
"reason": "Must be a valid address"
},
"correlationId": "req-1234567890",
"doc_url": "https://..."
}
}