← Back to Skills Marketplace
ckchzh

Api Generator

by BytesAgain2 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ Security Clean
2324
Downloads
3
Stars
20
Active Installs
9
Versions
Install in OpenClaw
/install api-generator
Description
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
README (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 \x3Ccommand> \x3Cresource_name> [options]

Commands

Core Generation

  • rest \x3Cname> — RESTful CRUD endpoints (Express.js)
  • graphql \x3Cname> — GraphQL Type + Query + Mutation schema
  • swagger \x3Cname> — OpenAPI 3.0 specification document

Utilities

  • client \x3Cname> — Python API client class
  • mock \x3Cname> — Mock API server with in-memory store
  • auth \x3Ctype> — Auth code (jwt / oauth / apikey)
  • rate-limit \x3Ctype> — Rate limiter (token-bucket / sliding-window)
  • test \x3Cname> — 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

Usage Guidance
This skill appears to do what it claims: generate API scaffolds and example code. Before running, review the bundled scripts (scripts/apigen.sh and scripts/script.sh). They are local template generators and do not make network calls, but script.sh will create ~/.local/share/api-generator (or $APIGEN_DIR/XDG_DATA_HOME) and append a history.log — if you prefer no writes, set APIGEN_DIR to a tmp path or inspect output without running stateful commands. Also review generated auth templates (they reference secrets like JWT_SECRET with 'change-me-in-production') and audit any generated code before using in production. If you need extra assurance, run the scripts in an isolated environment or container.
Capability Analysis
Type: OpenClaw Skill Name: api-generator Version: 2.0.0 The api-generator skill bundle is a legitimate code scaffolding tool for generating REST, GraphQL, and authentication boilerplate. Analysis of scripts/apigen.sh and scripts/script.sh shows they only print templates to stdout or log basic command history to a local directory, with no evidence of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
Name/description (API code generator for REST/GraphQL/Swagger/clients/mocks/auth/rate-limiting/tests) align with the included scripts and templates. The two provided scripts produce the claimed outputs and suggested tooling (npm/pip) is only referenced in templates or usage hints — nothing appears unrelated to API generation.
Instruction Scope
SKILL.md directs the agent to run scripts/apigen.sh which generates templates to stdout; that stays within the stated purpose. Note: scripts/script.sh also provides a CLI-like helper that creates a per-user data directory and logs actions (history.log). Templates include references to environment variables (e.g., JWT_SECRET) as placeholders; the skill does not attempt to read arbitrary system files or external secrets.
Install Mechanism
No install spec is provided (instruction-only) and the included code is local shell/Python template generation. No downloads, third-party registries, or archive extraction are performed by the skill itself.
Credentials
The skill declares no required environment variables or credentials. References to env vars appear only in generated template snippets (e.g., JWT_SECRET) which are normal for auth examples and not requested/consumed by the skill at runtime.
Persistence & Privilege
always is false and the skill does not request elevated privileges. However, scripts/script.sh will create a data directory (default: ${APIGEN_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/api-generator}) and append to $DATA_DIR/history.log — local persistence in the user's home directory. This is reasonable for a scaffolding tool but worth noting to users who expect no filesystem writes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install api-generator
  3. After installation, invoke the skill by name or use /api-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v2.3.4
yaml-fix+quality
v2.3.3
yaml-fix+quality
v2.3.2
Quality upgrade
v2.3.1
Quality upgrade: custom functionality
v2.3.0
Quality fixes: removed third-party references, aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v1.0.1
probe
v1.0.0
Initial release of API Generator skill. - Generate RESTful endpoints, GraphQL schemas, and OpenAPI/Swagger docs. - Create Python API clients and mock servers. - Add authentication (JWT, OAuth, API key) and rate limiting. - Generate Jest + Supertest API test suites. - All commands output production-ready, well-commented code scaffolds for backend development.
Metadata
Slug api-generator
Version 2.0.0
License MIT-0
All-time Installs 21
Active Installs 20
Total Versions 9
Frequently Asked Questions

What is Api Generator?

API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting. It is an AI Agent Skill for Claude Code / OpenClaw, with 2324 downloads so far.

How do I install Api Generator?

Run "/install api-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Api Generator free?

Yes, Api Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Api Generator support?

Api Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Api Generator?

It is built and maintained by BytesAgain2 (@ckchzh); the current version is v2.0.0.

💬 Comments