api-generator
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
Why use this skill?
Automate API development with OpenClaw's api-generator. Quickly scaffold REST endpoints, GraphQL schemas, auth, and tests for production-ready backend projects.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ckchzh/api-generatorWhat This Skill Does
The api-generator skill is a powerful command-line utility for OpenClaw that automates the boilerplate-heavy process of API development. It provides developers with a streamlined way to scaffold production-ready code structures, including RESTful endpoints, GraphQL schemas, and OpenAPI documentation. By abstracting away the initial setup phase, the skill allows developers to focus on business logic rather than infrastructure configuration. It supports essential backend components such as authentication providers (JWT, OAuth, API keys), sophisticated rate-limiting algorithms, and automated test suites via Jest and Supertest. All generated code is printed directly to stdout, allowing for seamless integration into existing workflows through piping or manual copy-pasting.
Installation
To integrate this tool into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ckchzh/api-generator
Ensure that you have the necessary execution permissions and that your project environment is compatible with the generated Express.js or Python boilerplate requirements.
Use Cases
This skill is ideal for rapid prototyping, building microservices, and standardizing API structures across teams. Use it to quickly generate a mock server for frontend teams while the actual backend is being developed. It is also highly effective for adding security layers, such as token-bucket rate limiting or JWT validation, to legacy applications without manual code entry. Furthermore, it accelerates the creation of client-side integration code, generating Python API clients that match your defined server endpoints perfectly.
Example Prompts
- "Generate a RESTful endpoint for a 'blog-post' resource and include an accompanying test suite using Jest."
- "I need a GraphQL schema for a 'customer' entity with queries for fetching single records and mutations for creation."
- "Set up a sliding-window rate limiter and generate a JWT authentication boilerplate for my project."
Tips & Limitations
- Output Handling: Since the code outputs to stdout, use
> filename.jsor>> filename.jsto redirect the output directly into your project files. - Customization: Generated code serves as a starting point. While production-ready in terms of structure, always review generated logic to ensure it adheres to your specific security and business requirements.
- Compatibility: The REST generation is specifically optimized for Express.js environments; verify that your environment supports these node modules before deploying the generated code.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ckchzh-api-generator": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
header
Header design reference — navigation patterns, sticky headers, responsive menus, accessibility. Use when designing website headers or implementing navigation components.
docker-helper
Dockerfile生成、docker-compose编排、命令速查、调试排错、镜像优化、仓库配置. Use when you need docker helper capabilities. Triggers on: docker helper.
rsyslog
RSyslog advanced system logging reference. RainerScript configuration, input/output modules (imtcp/imfile/omfwd/omelasticsearch), templates with property replacer, content-based filtering, TLS-encrypted remote logging, queue performance tuning, and debug troubleshooting.
Fitness Plan — Science-Based Training & Workout Auditor
Track workouts, calculate BMI/1RM, and access exercise science guides. 支持科学健身计划制定、BMI/最大力量计算及运动解剖学参考。Use when planning gym sessions, calculating macro needs, or auditing training splits.
pesticide
Pesticide management reference — chemical classes, application methods, IPM strategies, residue limits, safety protocols. Use when selecting pest control products, calculating spray rates, or managing pesticide compliance.