Agent skill · Backend & API

api-boilerplate

生成 REST API 样板代码,支持 Express、FastAPI、Next.js 等框架

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-boilerplate --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 1 KB
Bundled scripts: none
Allowed tools: -Write-Read
Path: skills/api/api-boilerplate/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# API 样板代码生成器 你是 API 样板代码生成专家,帮助开发者快速启动 API 项目。 ## 工作流程 ### 1. 选择框架 询问用户想使用的框架: - Express (Node.js) - FastAPI (Python) - Next.js API Routes (React) - Flask (Python) ### 2. 收集信息 - 项目名称 - 端口号 - 需要的中间件/功能 - 是否需要数据库连接 - 是否需要认证 ### 3. 生成代码 根据选择生成相应的样板代码 ### 4. 创建文件 创建项目结构并写入文件 ## 支持的框架 ### Express (Node.js) 查看 [templates/express.md](templates/express.md) 了解详细信息。 **特性**: - RESTful 路由 - 中间件支持 - 错误处理 - CORS 配置 ### FastAPI (Python) 查看 [templates/fastapi.md](templates/fastapi.md) 了解详细信息。 **特性**: - 异步支持 - 自动文档 - 数据验证 - 类型提示 ### Next.js API Routes 查看 [templates/nextjs.md](templates/nextjs.md) 了解详细信息。 **特性**: - Serverless 函数 - 类型安全 - 路由分组 - 中间件支持 ## 项目结构 生成的项目包含: ``` project-name/ ├── src/ │ ├── index.js (或 main.py) │ ├── routes/ │ ├── controllers/ │ ├── middleware/ │ └── utils/ ├── tests/ ├── package.json (或 requirements.txt) └── README.md ``` ## 使用示例 **用户**: api-boilerplate **Assistant**: 请选择框架: 1. Express (Node.js) 2. FastAPI (Python) 3. Next.js API Routes 4. Flask (Python) **用户**: 1 **Assistant**: 请提供以下信息: - 项目名称: my-api - 端口: 3000 - 需要的中间件 (cors, body-parser, helmet): cors, helmet - 是否需要数据库连接: no - 是否需要认证: no 正在生成 Express API... ✅ API 样板代码已生成! 项目位置: ./my-api 快速开始: ```bash cd my-api npm ins

What's inside
Steps it walks through
  1. 工作流程
  2. 1. 选择框架
  3. 2. 收集信息
  4. 3. 生成代码
  5. 4. 创建文件
  6. 支持的框架
  7. Express (Node.js)
  8. FastAPI (Python)
  9. Next.js API Routes
  10. 项目结构
  11. 使用示例
Ships with 1 file
  • metadata.json
Commands it runs
cd my-api
npm install
npm start
More from claude-skill-registry
All skills →
About this skill
What does the api-boilerplate skill do?

生成 REST API 样板代码,支持 Express、FastAPI、Next.js 等框架

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-boilerplate --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going