Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/generate-openapigit clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkitWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00683 |
| Opus 5 | $0.00000 | $0.00342 |
| Sonnet 5 | $0.00000 | $0.00137 |
| Haiku 4.5 | $0.00000 | $0.00068 |
Grade A, and why
generate-openapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/api-architect:generate-openapi
Generate an OpenAPI 3.1 specification from the existing codebase or API design.
Process
-
Discover existing API routes and handlers:
- For Express/Fastify: search for
app.get,app.post,router.usepatterns - For FastAPI/Flask: search for
@app.route,@router.getdecorators - For Go: search for
http.HandleFunc,r.GET,mux.Handlepatterns - For Spring: search for
@GetMapping,@PostMapping,@RestControllerannotations - Read each handler to understand request parameters, body, and response shape
- For Express/Fastify: search for
-
Extract schema information:
- Parse TypeScript interfaces, Python dataclasses/Pydantic models, Go structs, or Java DTOs
- Map field types to OpenAPI types (string, integer, number, boolean, array, object)
- Identify required vs optional fields from type annotations or validation rules
- Extract enum values from code constants or type unions
- Document field constraints (minLength, maxLength, pattern, minimum, maximum)
-
Build the OpenAPI specification:
Info Section
- Set title from package.json name or project directory
- Set version from package.json version or git tag
- Write a concise description of the API's purpose
Servers
- Add localhost development server
- Add placeholder for production server URL
Paths
- One path entry per route
- Include all HTTP methods supported by each path
- Define path parameters with types and descriptions
- Define query parameters for list endpoints (pagination, filtering, sorting)
- Reference request body schemas from components
- Define response schemas for each status code (200, 201, 400, 401, 404, 500)
Components
- Define reusable schemas for each domain entity
- Create shared error response schema
- Create pagination metadata schema
- Define security schemes (Bearer JWT, API Key, OAuth2 as applicable)
- Use
$refextensively to avoid duplication
Security
- Apply security requirements globally or per-operation
- Document which endpoints are public (override global security with empty array)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 73 lines · 0 tokens per session scan A b9669db746a5
generate-openapi is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,578 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 683 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
export
将生成的 SVG 页面批量导出为可直接演示的 PDF 文档或可编辑的 PPTX 幻灯片文件。.
quick
一键完成「文稿分析 → 风格设计 → SVG 生成」全流程,适合已明确需求的用户快速产出。.
analyze
分析用户提供的 Markdown 文稿,提取核心内容,输出结构化的 PPT 页面清单。.
check-todos
List outstanding todos and select one to work on.
add-skill
Scaffold a new skill with validation, plugin generation, and README update.
create-agent-skill
Create or edit Claude Code skills with expert guidance on structure and best practices.