api-patterns by vudovn/antigravity-kit
npx skills add https://github.com/vudovn/antigravity-kit --skill api-patterns面向 2025 年的 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、Passkey、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> |
每周安装量
97
代码仓库
GitHub 星标数
6.7K
首次出现时间
2026 年 1 月 21 日
安全审计
安装于
gemini-cli79
codex74
opencode71
github-copilot65
antigravity65
cursor64
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
97
Repository
GitHub Stars
6.7K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
gemini-cli79
codex74
opencode71
github-copilot65
antigravity65
cursor64
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
163,300 周安装
阿里云AnalyticDB MySQL管理指南:使用OpenAPI与SDK进行云数据库操作
277 周安装
中国宏观经济新闻聚合与AI解读工具 - 抓取华尔街见闻、36氪等财经资讯
283 周安装
Link Reader:网页PDF抖音内容提取工具,智能读取链接标题和正文
282 周安装
PPTX文件处理全指南:Python创建、编辑、分析.pptx文档与XML操作
279 周安装
阿里云ECS弹性计算服务管理指南:Python SDK脚本与API调用教程
280 周安装
Bun 完全指南:替代 Node.js 的快速 JavaScript 运行时,命令映射与安全实践
288 周安装