用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill generate-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | generate-code |
| description | Generate Go client, server, or type code from an OpenAPI spec Use when this capability is needed. |
| metadata | {"author":"erraggy"} |
Call parse to get an overview of the API:
{"spec": {"file": "<path>"}}
Report the API title, version, number of operations and schemas. This helps set expectations for what will be generated.
Ask the user what they need. The generate tool supports three output modes:
| Option | What it generates |
|---|---|
types | Go type definitions for all schemas |
client | HTTP client with methods for each operation (includes types) |
server | Server interface and handler stubs (includes types) |
Also determine:
output_dir (required) -- Where to write the generated filespackage_name (optional, default: api) -- Go package name for the generated codeCall the generate tool:
{
"spec": {"file": "<path>"},
"client": true,
"output_dir": "./generated",
"package_name": "petstore"
}
The tool returns a manifest of generated files with names and sizes. Review:
success is false, explain what went wrongRead the generated files and provide a summary of the key types and functions.
Based on what was generated, suggest next steps:
For types only:
interface{} fields)For client:
For server:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.