← 返回
开发者工具 中文

Neckr0ik Api Wrapper

Convert any REST API into an OpenClaw skill automatically. Generates SKILL.md, scripts, and claw.json from OpenAPI spec or URL. Use when you want to quickly...
将任何 REST API 自动转换为 OpenClaw 技能。根据 OpenAPI 规范或 URL 生成 SKILL.md、脚本和 claw.json。适用于想要快速...
neckr0ik
开发者工具 clawhub v1.0.0 1 版本 99853.8 Key: 无需
★ 0
Stars
📥 683
下载
💾 8
安装
1
版本
#latest

概述

API Wrapper Generator

Automatically generate OpenClaw skills from REST APIs.

What This Does

  • Parses OpenAPI specs — Read API documentation
  • Generates skill files — SKILL.md, scripts, claw.json
  • Handles authentication — API keys, OAuth, Bearer tokens
  • Creates type-safe wrappers — Validates requests/responses
  • Documents endpoints — Usage examples for each operation

Quick Start

# Generate skill from OpenAPI spec
neckr0ik-api-wrapper generate --spec https://api.example.com/openapi.json --name my-api

# Generate from URL (discovers OpenAPI)
neckr0ik-api-wrapper generate --url https://api.example.com --name my-api

# Generate from local file
neckr0ik-api-wrapper generate --spec ./openapi.yaml --name my-api

Output Structure

my-api/
├── SKILL.md           # Skill documentation
├── claw.json          # Package metadata
└── scripts/
    └── api.py         # Generated API client

Supported Auth Types

TypeSupportConfig
-----------------------
API Key (header)--auth header:X-API-Key
API Key (query)--auth query:api_key
Bearer Token--auth bearer
Basic Auth--auth basic
OAuth 2.0--auth oauth2

Commands

generate

Generate OpenClaw skill from API spec.

neckr0ik-api-wrapper generate [options]

Options:
  --spec <url>          OpenAPI spec URL or file
  --url <url>           API base URL (discovers spec)
  --name <name>         Skill name (default: api name)
  --output <dir>        Output directory
  --auth <type>         Authentication type
  --include <endpoints> Include specific endpoints (comma-sep)
  --exclude <endpoints>  Exclude specific endpoints (comma-sep)

validate

Validate OpenAPI spec before generating.

neckr0ik-api-wrapper validate --spec <url>

test

Test generated skill against live API.

neckr0ik-api-wrapper test --skill ./my-api --endpoint <operationId>

Generated Skill Example

# Generated from Stripe API

## Quick Start

stripe-api customers list --limit 10

stripe-api customers create --email "user@example.com"

stripe-api charges create --amount 1000 --currency usd


## Endpoints

### customers.list
List all customers.
- Method: GET
- Path: /v1/customers
- Auth: Bearer Token

### customers.create
Create a new customer.
- Method: POST
- Path: /v1/customers
- Auth: Bearer Token
- Body: email, name, metadata

Benefits

  1. Speed — Generate skills in minutes, not hours
  2. Consistency — Standard format for all API skills
  3. Documentation — Auto-generated from OpenAPI
  4. Type Safety — Request/response validation
  5. Maintainability — Regenerate when API updates

Use Cases

  • API Providers — Create skills for your APIs
  • Developers — Quickly integrate new APIs
  • Monetization — Sell skills for popular APIs

Example APIs to Wrap

  • Stripe Payments API
  • OpenAI API
  • Slack API
  • Notion API
  • GitHub API
  • Any OpenAPI-compliant API

See Also

  • references/openapi.md — OpenAPI specification guide
  • references/templates/ — Skill templates
  • scripts/generator.py — Main generator

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 13:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,808
data-analysis

Image Handler

neckr0ik
读取、分析元数据、转换格式、调整尺寸、旋转、裁剪、压缩以及批量处理 PNG、JPG、GIF、WebP、TIFF、BMP、HEIC、SVG 和 ICO 图像。
★ 0 📥 1,572
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,239