api-generator
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- api-generator
- author
- BytesAgain
- source
- https://github.com/bytesagain/ai-skills
- version
- 2.0.0
- homepage
- https://bytesagain.com
- description
- API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
03 SKILL.md 正文
⚡ 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
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.