api
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想写接口、创建 API、生成后端端点、做增删改查接口时使用 — 生成 RESTful API 端点,包含路由、验证和错误处理
13 other projects use a version of this.
Adopted by
Most recently taken up by
- outboundsync/skillstheir own version, first seen Sep 28, 2026
- wangqiqi/cursor-aitheir own version, first seen Sep 23, 2026
- video-gen/skillstheir own version, first seen Sep 15, 2026
- jircdev/crew-plugintheir own version, first seen Sep 7, 2026
- zyphr-labs/bounty-harnesstheir own version, first seen Aug 26, 2026
- Xia-Ataraxia/craft-skillstheir own version, first seen Jul 3, 2026
Used with
Projects with it also use design and review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- oasm-platform/open-asm★ 204same name
- genkovich/sdd★ 170same name
- renatoworks/strudel-claude★ 67same name
- xiaobei930/cc-best★ 48same name
- wangqiqi/cursor-ai★ 3same name
- outboundsync/skills★ 2same name
- video-gen/skills★ 2same name
- jircdev/crew-plugin★ 1same name
- Nudgen-Marketing/skills★ 1same name
- zyphr-labs/bounty-harness★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- databaseSkill
- debugSkill
- deploySkill
- docSkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- gitsetupSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- storageSkill
- testSkill
The file
Files
生成 API 接口
帮用户快速生成一个规范的 API 端点。
步骤
1. 确定接口需求
如果用户已经说了,直接开始。否则问:
你需要什么 API?告诉我:
- 管理什么资源?(比如用户、文章、订单)
- 需要哪些操作?(查询列表、查询详情、创建、更新、删除)
2. 检测技术栈
查看项目中的后端框架:
- Python: FastAPI / Flask / Django
- Node.js: Express / Nest / Hono
- 没有后端 → 推荐 FastAPI(Python)或 Express(Node.js),问用户选哪个
3. 生成代码
为每个操作生成完整的端点:
- 路由定义 — RESTful 风格(GET /users, POST /users, GET /users/:id 等)
- 请求验证 — 参数类型检查、必填验证、格式校验
- 业务逻辑 — 用注释标注"在这里写业务逻辑",提供示例代码
- 错误处理 — 统一的错误响应格式,常见错误码(400、404、500)
- 响应格式 — 统一的 JSON 响应结构
4. 验证
启动服务,用 curl 或测试工具验证接口可以正常响应。
API 已生成,接口如下: (列出所有端点和方法) 用 /test 可以生成接口测试。用 /database 连接真实数据库。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

