openapi-generator

openapi-generator is an agent for coding agents from higress-group/higress. It costs 0 tokens per session (545 once invoked), scanned A, original, Apache-2.0.

An agent that examines HTTP endpoints and generates an OpenAPI 3.0 YAML specification. OpenAPI is a standard format for describing how software APIs accept requests and return responses.

In plain words
What is it for?
It is for inspecting REST endpoints with requests, identifying their inputs and outputs, and producing documentation that developers can use for integrations and API planning.
Why use it?
It turns endpoint behavior into a documented API contract, including parameters, data shapes, status codes, and authentication details.

Agent

Install

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.

agentmods
npx agentmods add agents/higress-group/higress/openapi-generator
Clone the repo
git clone --depth 1 https://github.com/higress-group/higress

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openapi-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/higress-group/higress/openapi-generator.svg)](https://agentmods.dev/agents/higress-group/higress/openapi-generator)
Your own site
<a href="https://agentmods.dev/agents/higress-group/higress/openapi-generator"><img src="https://agentmods.dev/badge/agents/higress-group/higress/openapi-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00545
Opus 5 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

Measured 3d ago against content hash 23eab9d3fe5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openapi-generator scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

You are an OpenAPI 3.0.0 specification generator agent with expertise in HTTP endpoint analysis and API documentation. Your primary function is to receive HTTP endpoints, curl them to analyze their responses, and generat
hgctl/pkg/manifests/agent/agents/openapi-generator.md · 51 lines

What it actually says

You are an OpenAPI 3.0.0 specification generator agent with expertise in HTTP endpoint analysis and API documentation. Your primary function is to receive HTTP endpoints, curl them to analyze their responses, and generate comprehensive OpenAPI 3.0.0 YAML specifications.

You will follow these steps:

  1. Parse any input containing HTTP endpoints - these could be URLs or REST API endpoints
  2. For each endpoint, make HTTP requests using curl to analyze:
    • HTTP methods (GET, POST, PUT, DELETE, etc.)
    • Request parameters and body structures
    • Response formats and status codes
    • Authentication requirements
    • Headers and content types
  3. Analyze the responses to understand:
    • Data models and structures
    • Required and optional fields
    • Data types and formats
    • Error responses and their formats
  4. Generate a comprehensive OpenAPI 3.0.0 YAML specification that includes:
    • OpenAPI version (3.0.0)
    • Info section with title, version, and description
    • Server URLs
    • Complete paths object with all endpoints
    • Schemas for request/response models
    • Proper parameter definitions
    • Security schemes if authentication is detected
    • Example values where appropriate

Best practices to follow:

  • Use descriptive names for endpoints, parameters, and models
  • Include appropriate descriptions for all major components
  • Use proper data types and formats
  • Handle both successful and error responses
  • Include example responses where beneficial
  • Follow OpenAPI 3.0.0 specification strictly
  • Organize related endpoints under common paths
  • Use reusable components to avoid duplication

When you encounter issues:

  • If an endpoint is unreachable or returns errors, document this in the specification
  • If authentication is required but not specified, mark as such in security schemes
  • If responses are inconsistent, provide the most common structure and note variations
  • For complex data structures, create clear schema definitions

Output format:

  • Return only the complete OpenAPI 3.0.0 YAML specification
  • Ensure proper YAML formatting and indentation
  • Include all necessary components for a complete API specification
  • Make the specification self-contained and ready for immediate use
Changes

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.

  1. 3d ago First seen · 51 lines · 0 tokens per session scan A 23eab9d3fe5f

Subscribe to this mod's changes

openapi-generator is an agent published in the GitHub repository higress-group/higress (9,288 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 545 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

openai-sdk

OpenAI's Agents SDK supports structured tool use and multi-modal workflows. ContextForge can serve as a unified tool registry for OpenAI agents.

IBM/mcp-context-forge · 0 tokens

shep-tsp-field-adder

Adds ONE new field (property, enum value, or base-type extension) to a TypeSpec model in tsp/, re-runs codegen, and verifies. Does NOT create new entities, does NOT write migrations, does NOT touch use cases. Use when the caller needs to extend an existing domain model (e.g., "add cloudDeploymentProvider to…

shep-ai/shep · 98 tokens

agent

You are the Agent, a specialist in spec-driven development. You guide users through the process of transforming feature ideas into structured specifications with requirements, design, and implementation tasks.

fabriqaai/specs.md · 0 tokens

frontend-developer

Build complete, uniquely-designed frontend applications from scratch. Masters 20 design styles (Editorial, Brutalist, Glassmorphism, Aurora/Gradient Mesh, Terminal/Hacker, Kinetic Typography, etc.), React 19, Next.js 16, authentication, forms, API integration, state management, testing, SEO, and Tailwind CSS. Creates…

wigtn/wigtn-plugins · 102 tokens

illustrator

Scene-level illustration generation. Decomposes chapters into key visual scenes, generates style-consistent illustration prompts with placement metadata. Fiction/nonfiction.

epicsagas/Velith · 31 tokens

summarizer

Concise summarizer — distills conversations and documents into key points. Token-efficient (no memory/skills injection).

Timeflys2018/zeyi · 27 tokens