Back to skills
SKILL.md
Api Generator
ASecurityAPI code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting, and test suites. Commands: rest, graphql, swagger, client, mock, auth, rate-limit, test. Use for backend development, API scaffolding, interface generation.
- 33 stars
- 0 votes
- 0 copies
- 2 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add dvcrn/openclaw-skills-marketplace --skill api-generator --agent claude-codeAre you the author of Api Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dvcrn-api-generator)---
name: api-generator
description: "API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting, and test suites. Commands: rest, graphql, swagger, client, mock, auth, rate-limit, test. Use for backend development, API scaffolding, interface generation."
---
# ⚡ API Generator
Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.
## Usage
```bash
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
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.
Files in this skill
- SKILL.md
- scripts/apigen.sh
- tips.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.