BytesAgain2

Api Generator

开发编程v2.0.0
作者:BytesAgain2更新于 2026-05-11共 9 个版本 · 最新版本发布于 2026-03-17api-generator@clawhub_ckchzh/api-generator
代码生成后端开发#GraphQL

据 AlphaMoat 统计,截至 2026-09,Api Generator 累计下载 4,335 次、获 5 个星标,在全部 5,078 个 AI 技能中排名第 2,269 位,在「开发编程」分类(577 个)中排名第 287 位。

累计安装
121
累计下载
4,335
星标
5
全站排名
#2,269
全站前 45% · 「开发编程」前 50%
平台累计安装累计下载星标评论
ClawHub ↗1213,6053-
SkillHub ↗1194,3355—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文提供通过脚本生成 Express.js CRUD 端点、GraphQL 类型与查询变更、OpenAPI 3.0 规范、Python 客户端、模拟服务、JWT/OAuth/API 密钥认证、限流器及 Jest 与 Supertest 测试套件的命令。生成结果只是项目起点;使用前应审查并加固认证、密钥管理和输入校验,再检查端点、模式并补充项目测试。

资料发布于 2026-10-29

可以用来做什么

  • 规划 REST 或 GraphQL API 的初始脚手架
  • 生成 OpenAPI 文档、客户端或模拟服务
  • 为已有 API 设计认证、限流与测试起点

什么时候用

  • 需要通过所列 shell 命令生成 API 起始代码,并准备审查和按项目要求完善输出时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

为一个资源列出生成 REST 端点、OpenAPI 文档和测试套件的命令,不执行命令。
规划使用 API Generator 输出认证脚手架后的密钥管理与校验审查项。

月度数据趋势

累计下载4,335
1,7353,1324,5282026-03 · 累计下载 1,9282026-05 · 累计下载 2,9662026-06 · 累计下载 3,1602026-07 · 累计下载 3,4802026-08 · 累计下载 3,6592026-09 · 累计下载 4,33526-0326-09
星标5
1352026-03 · 星标 12026-05 · 星标 32026-06 · 星标 32026-07 · 星标 42026-08 · 星标 52026-09 · 星标 526-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-094,335—5
2026-083,659+5.1%5
2026-073,480+10.1%4
2026-063,160+6.5%3
2026-052,966—3
2026-031,928—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.6 KB · ClawHub v2.0.0
---
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
展开全部(共 50 行)

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

「开发编程」分类下的热门技能

BytesAgain2 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。