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]
<name> — RESTful CRUD endpoints (Express.js)<name> — GraphQL Type + Query + Mutation schema<name> — OpenAPI 3.0 specification document<name> — Python API client class<name> — Mock API server with in-memory store<type> — Auth code (jwt / oauth / apikey)7w4.net有更好的技能外掛。
<type> — Rate limiter (token-bucket / sliding-window)<name> — 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
這個 Skill 質量中等偏上,功能覆蓋面廣,能生成 REST、GraphQL、API 文件等多種程式碼。生成程式碼包含錯誤處理和分頁等實用功能,配套有使用技巧說明。不過部分功能實現可以更完善,整體缺少示例輸出展示實際效果。對於需要快速搭建 API 腳手架的開發者有一定幫助。