Api Generator
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
BytesAgain2
@ckchzh
What This Skill Does
Generates production-ready API code scaffolds from the command line. Supports RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, and rate limiting.
Replaces manually writing boilerplate API code by generating complete, commented scaffolds for REST, GraphQL, auth, tests, and more with a single command.
When to Use It
- Generate RESTful CRUD endpoints for a new resource
- Create a GraphQL schema with queries and mutations
- Produce an OpenAPI 3.0 specification document
- Scaffold a Python API client class for an existing API
- Set up a mock API server with an in-memory store
- Add JWT, OAuth, or API key authentication to a project
Install
$ openclaw skills install @ckchzh/api-generator⚡ 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
Top skills in this category
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Elite Longterm Memory
@nextfrontierbuildsUltimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Model Usage
@steipeteUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Screenshot
@ivangdavilaCapture, inspect, and compare screenshots of screens, windows, regions, web pages, simulators, and CI runs with the right tool, wait strategy, viewport, and...
Interview Simulator
@wscatsSimulates mock interviews for any role and experience level with tailored technical, behavioral, and case questions plus detailed feedback and scoring.