跳至主要内容
小龙虾小龙虾AI
🤖

Api Generator

API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.

下载3.3k
星标3
版本2.0.0
效率办公
安全通过

技能说明


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

⚡ API Generator

Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.

Usage

bash scripts/apigen.sh <command> <resource_name> [options]

Commands

Core Generation

  • rest <name> — RESTful CRUD endpoints (Express.js)
  • graphql <name> — GraphQL Type + Query + Mutation schema
  • swagger <name> — OpenAPI 3.0 specification document

Utilities

  • client <name> — Python API client class
  • mock <name> — Mock API server with in-memory store
  • auth <type> — Auth code (jwt / oauth / apikey)
  • rate-limit <type> — Rate limiter (token-bucket / sliding-window)
  • test <name> — Jest + Supertest API test suite

Examples

bash 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

Output

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」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Api Generator技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能