golang-echo-oapi
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- Engineering
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: golang-echo-oapi
description: Use when working on github.com/adlandh/echo-oapi-middleware/v2, an Echo v5 middleware library th…
category: engineering
runtime: no special runtime
---
# golang-echo-oapi output preview
## PART A: Task fit
- Use case: Use when working on github.com/adlandh/echo-oapi-middleware/v2, an Echo v5 middleware library that serves OpenAPI YAML and Swagger UI from kin-openapi specs. <!-- tomevault:4.0:skill_md:2026-05-23 --> makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “When To Use / Library Shape / Behavior To Preserve” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use when working on github.com/adlandh/echo-oapi-middleware/v2, an Echo v5 middleware library that serves OpenAPI YAML and Swagger UI from kin-openapi specs. <!-- tomevault:4.0:skill_md:2026-05-23 --> makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “When To Use / Library Shape / Behavior To Preserve” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; may access external network resources; usually needs no extra API key.
## Running Rules
- read files, write/modify files; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/swagger`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “When To Use / Library Shape / Behavior To Preserve”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: golang-echo-oapi
description: Use when working on github.com/adlandh/echo-oapi-middleware/v2, an Echo v5 middleware library th…
category: engineering
source: tomevault-io/skills-registry
---
# golang-echo-oapi
## When to use
- Use when working on github.com/adlandh/echo-oapi-middleware/v2, an Echo v5 middleware library that serves OpenAPI YAML…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “When To Use / Library Shape / Behavior To Preserve” and keep inference separate from source facts.
- read files, write/modify files; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "golang-echo-oapi" {
input -> user goal + target files + boundaries + acceptance criteria
context -> When To Use / Library Shape / Behavior To Preserve
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | may access external network resources
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} golang-echo-oapi
When To Use
- Use this skill for changes to
github.com/adlandh/echo-oapi-middleware/v2or code that consumes this library. - Apply it when touching
SwaggerYaml,SwaggerYamlWithConfig,SwaggerUI,SwaggerUIWithConfig, their tests, or README examples.
Library Shape
- Package name is
echooapimiddleware; it is a single-package Go module with no generated code or subpackages. - It targets Go 1.25 and Echo v5 (
github.com/labstack/echo/v5). Echo handlers usefunc(c *echo.Context) error. - Public API accepts
*openapi3.Tfromgithub.com/getkin/kin-openapi/openapi3; do not add runtime parsing as part of the middleware path unless explicitly requested.
Behavior To Preserve
- Serialize the OpenAPI spec once when middleware is created, not on every request.
SwaggerYamldefaults to/swagger.yamland serves onlyGETandHEAD; all other methods and paths pass through to the next handler.SwaggerUIdefaults to/swagger, also serves/swagger/and/swagger/index.html, and wires the YAML endpoint.HEADresponses for YAML and UI must setContent-Lengthand write no body.nilspecs are valid and produce successful empty YAML responses.KeepServersdefaults to false: omit top-levelserversfrom emitted YAML without mutating the caller's*openapi3.T.- Generated Swagger UI HTML references unpkg
swagger-ui-dist@5assets.
Verification Commands
- Fast local check:
go test ./.... - CI-equivalent tests:
go test -race -coverprofile=coverage.txt -covermode=atomic ./.... - Focused tests:
go test -run TestSwaggerYaml_RequestRouting .orgo test -run TestSwaggerUI_DefaultPaths .. - Benchmark YAML serving path:
go test -bench BenchmarkSwaggerYamlGET -benchmem .. - CI lint downloads the shared config before running:
curl -sS https://raw.githubusercontent.com/adlandh/golangci-lint-config/refs/heads/main/.golangci.yml -o .golangci.yml, thengolangci-lint run.
Implementation Notes
- Keep the middleware chain passthrough behavior explicit; tests depend on non-matching requests reaching downstream Echo routes.
- Prefer small direct functions over new abstractions; this library is intentionally tiny.
- If changing config defaults or route matching, update both README examples and tests in the same change.
Integrating Into A Project
- Do not try to embed or parse
swagger.yaml/openapi.yamlat runtime. This library accepts*openapi3.Tfromgithub.com/getkin/kin-openapi/openapi3, not a raw YAML file. - Before reaching for
//go:embedoros.ReadFile, check the generated code — most OpenAPI code generators (e.g.oapi-codegen) produce aGetSpecfunction that returns the parsed*openapi3.Tdirectly. Pass that toSwaggerYAMLorSwaggerUI.
Source: adlandh/echo-oapi-middleware — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review