Skip to content
Back to skills

Api Generator

ASecurity

API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
toolspythonbashexpressgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add bytesagain/ai-skills --skill api-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytesagain-api-generator/badge)](https://www.skillsdirectory.com/skills/bytesagain-api-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
version: "2.0.0"
name: api-generator
description: "API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting."
author: BytesAgain
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
---

# ⚡ 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.
---
💬 Feedback & Feature Requests: https://bytesagain.com/feedback
Powered by BytesAgain | bytesagain.com

Files in this skill

  • SKILL.md1.6 KB
  • scripts/apigen.sh18.1 KB
  • scripts/script.sh9.7 KB
  • tips.md949 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…