api-patterns by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill api-patterns2025年API设计原则与决策指南。学会思考,而非照搬固定模式。
仅阅读与请求相关的文件! 查看内容地图,找到你所需的内容。
| 文件 | 描述 | 何时阅读 |
|---|---|---|
api-style.md | REST vs GraphQL vs tRPC 决策树 | 选择 API 类型时 |
rest.md | 资源命名、HTTP 方法、状态码 | 设计 REST API 时 |
response.md | 信封模式、错误格式、分页 | 设计响应结构时 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
graphql.md| 模式设计、使用时机、安全性 |
| 考虑 GraphQL 时 |
trpc.md | TypeScript 单体仓库、类型安全 | TS 全栈项目时 |
versioning.md | URI/Header/Query 版本控制 | 规划 API 演进时 |
auth.md | JWT、OAuth、通行密钥、API 密钥 | 选择认证模式时 |
rate-limiting.md | 令牌桶、滑动窗口 | 保护 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> |
每周安装量
248
代码仓库
GitHub 星标数
22.6K
首次出现时间
Jan 25, 2026
安全审计
已安装于
opencode203
gemini-cli200
codex196
github-copilot190
claude-code176
cursor165
API design principles and decision-making for 2025. Learn to THINK, not copy fixed patterns.
Read ONLY files relevant to the request! Check the content map, find what you need.
| File | Description | When to Read |
|---|---|---|
api-style.md | REST vs GraphQL vs tRPC decision tree | Choosing API type |
rest.md | Resource naming, HTTP methods, status codes | Designing REST API |
response.md | Envelope pattern, error format, pagination | Response structure |
graphql.md | Schema design, when to use, security | Considering GraphQL |
trpc.md | TypeScript monorepo, type safety | TS fullstack projects |
versioning.md | URI/Header/Query versioning | API evolution planning |
auth.md | JWT, OAuth, Passkey, API Keys | Auth pattern selection |
rate-limiting.md | Token bucket, sliding window | API protection |
documentation.md | OpenAPI/Swagger best practices | Documentation |
security-testing.md | OWASP API Top 10, auth/authz testing | Security audits |
| Need | Skill |
|---|---|
| API implementation | @[skills/backend-development] |
| Data structure | @[skills/database-design] |
| Security details | @[skills/security-hardening] |
Before designing an API:
DON'T:
DO:
| Script | Purpose | Command |
|---|---|---|
scripts/api_validator.py | API endpoint validation | python scripts/api_validator.py <project_path> |
Weekly Installs
248
Repository
GitHub Stars
22.6K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode203
gemini-cli200
codex196
github-copilot190
claude-code176
cursor165
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装
竞争对手研究指南:SEO、内容、反向链接与定价分析工具
231 周安装
Azure 工作负载自动升级评估工具 - 支持 Functions、App Service 计划与 SKU 迁移
231 周安装
Kaizen持续改进方法论:软件开发中的渐进式优化与防错设计实践指南
231 周安装
软件UI/UX设计指南:以用户为中心的设计原则、WCAG可访问性与平台规范
231 周安装
Apify 网络爬虫和自动化平台 - 无需编码抓取亚马逊、谷歌、领英等网站数据
231 周安装
llama.cpp 中文指南:纯 C/C++ LLM 推理,CPU/非 NVIDIA 硬件优化部署
231 周安装