API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install api-generator或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install api-generator⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/api-generator/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- version: "2.0.0" name: api-generator description: "API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills ---
Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.
bash scripts/apigen.sh <command> <resource_name> [options]
— RESTful CRUD endpoints (Express.js) — GraphQL Type + Query + Mutation schema — OpenAPI 3.0 specification document — Python API client class — Mock API server with in-memory store — Auth code (jwt / oauth / apikey) — Rate limiter (token-bucket / sliding-window) — Jest + Supertest API test suitebash scripts/apigen.sh rest user # RESTful user endpoints
bash scripts/apigen.sh graphql product # GraphQL product schema
bash scripts/apigen.sh auth jwt # JWT authentication
bash scripts/apigen.sh test order # Order API tests
All code prints to stdout. Copy or redirect into your project files. Generated code includes full comments and can serve as a project starting point. --- 💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com
安装 Api Generator 后,可以对 AI 说这些话来触发它
Help me get started with Api Generator
Explains what Api Generator does, walks through the setup, and runs a quick demo based on your current project
Use Api Generator to aPI code generator
Invokes Api Generator with the right parameters and returns the result directly in the conversation
What can I do with Api Generator in my developer & devops workflow?
Lists the top use cases for Api Generator, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/api-generator/ 目录(个人级,所有项目可用),或 .claude/skills/api-generator/(项目级)。重启 AI 客户端后,用 /api-generator 主动调用,或让 AI 根据上下文自动发现并使用。
Api Generator 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Api Generator 可免费安装使用。请查阅仓库了解许可证信息。
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
Api Generator 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Api Generator
Identifies repetitive steps in your workflow and sets up Api Generator to handle them automatically