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 skills/erraggy/oastools/generate-codenpx skills add erraggy/oastools --skill generate-codegit clone --depth 1 https://github.com/erraggy/oastoolsWhat 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.00017 | $0.00526 |
| Opus 5 | $0.00009 | $0.00263 |
| Sonnet 5 | $0.00003 | $0.00105 |
| Haiku 4.5 | $0.00002 | $0.00053 |
Grade A, and why
generate-code 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 yesterday.
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 — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Code from an OpenAPI Specification
Step 1: Understand the spec
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.
Step 2: Determine what to generate
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 code
Step 3: Generate the code
Call the generate tool:
{
"spec": {"file": "<path>"},
"client": true,
"output_dir": "./generated",
"package_name": "petstore"
}
Step 4: Review the output
The tool returns a manifest of generated files with names and sizes. Review:
- File list -- Confirm all expected files were created
- Generated types count -- Matches the schema count from Step 1
- Generated operations count -- Matches the operation count from Step 1
- Warnings -- Any issues encountered during generation (unsupported features, naming conflicts)
- Critical errors -- If
successis false, explain what went wrong
Read the generated files and provide a summary of the key types and functions.
Step 5: Suggest integration steps
Based on what was generated, suggest next steps:
For types only:
- Import the package and use the types in existing code
- Note any custom types that may need manual adjustment (e.g.,
interface{}fields)
For client:
- Show how to initialize the client with a base URL
- Demonstrate calling one or two key endpoints
- Note authentication setup if the spec has security schemes
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.
- yesterday First seen · 78 lines · 17 tokens per session scan A 7eee37363ee0
generate-code is a skill published in the GitHub repository erraggy/oastools (5 stars, last pushed 3d ago), licensed MIT. It adds 17 tokens to every session and 526 once invoked, about $0.0001 per session on Opus 5. 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-31.
Other skills, from other repositories
openapi-glossary
Use consistent OpenAPI terminology and definitions when writing documentation, educational material, and tooling guidance.
scalar-docs
Skill for writing and updating scalar.config.json — Scalar Docs configuration reference for users and LLMs.
scalar-design-system
Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library. Use when designing or implementing Scalar UI, especially with Paper (code-to-design / design-to-code), so output matches real Scalar tokens, colors, typography, spacing, and components instead of…
cloud-agents-starter
Minimal starter runbook for cloud agents to install dependencies, run packages, execute tests, and troubleshoot the Scalar monorepo quickly.
mock-server
Build, customize, and troubleshoot OpenAPI mock servers with @scalar/mock-server, including x-handler, x-seed, authentication, and Docker.
tests
Write clear, maintainable Vitest and Playwright tests with precise assertions, consistent structure, and strong behavioral coverage.