i18n/zh-TW/api-patterns/SKILL.md
API 設計原則與決策。REST vs GraphQL vs tRPC 選擇、回應格式、版本控制、分頁。
npx skillsauth add tai-ch0802/skills-bundle api-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
API 設計原則與 2025 年最佳決策。 學習思考方式,而非複製固定模式。
僅閱讀與需求相關的檔案! 查看內容地圖,找到你需要的。
| 檔案 | 描述 | 何時閱讀 |
|------|------|----------|
| api-style.md | REST vs GraphQL vs tRPC 決策樹 | 選擇 API 類型 |
| rest.md | 資源命名、HTTP 方法、狀態碼 | 設計 REST API |
| response.md | 封裝模式、錯誤格式、分頁 | 回應結構 |
| graphql.md | Schema 設計、使用時機、安全性 | 考慮 GraphQL |
| trpc.md | TypeScript monorepo、型別安全 | TS 全端專案 |
| versioning.md | URI/Header/Query 版本控制 | API 演進規劃 |
| auth.md | JWT、OAuth、Passkey、API Keys | 驗證模式選擇 |
| rate-limiting.md | Token bucket、滑動視窗 | API 保護 |
| documentation.md | OpenAPI/Swagger 最佳實踐 | 文件撰寫 |
| security-testing.md | OWASP API Top 10、驗證/授權測試 | 安全稽核 |
| 需求 | 技能 |
|------|------|
| API 實作 | @[skills/backend-development] |
| 資料結構 | @[skills/database-design] |
| 安全細節 | @[skills/security-hardening] |
設計 API 前:
不要:
要:
| 腳本 | 用途 | 指令 |
|------|------|------|
| scripts/api_validator.py | API 端點驗證 | python scripts/api_validator.py <project_path> |
development
Unified testing skill — TDD workflow, unit/integration patterns, E2E/Playwright strategies. Replaces tdd-workflow + testing-patterns + webapp-testing.
testing
Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
development
Spec-Driven Development (SDD): A structured workflow (Requirement -> Analysis -> Implementation) enforcing explicit documentation before coding.
development
Methodologies for System Analysis (SA), focusing on technical architecture, data flow modeling, and API design.