ring:adopting-lib-commons-huma-wrapper

ring:adopting-lib-commons-huma-wrapper is a skill for Claude Code, Codex from LerianStudio/ring. It costs 142 tokens per session (5,230 once invoked), scanned A, original, Apache-2.0.

A migration workflow for a Go web service that uses Huma to generate an OpenAPI description, which documents an HTTP API. It also standardizes errors using RFC 9457, a format for machine-readable HTTP problem details.

In plain words
What is it for?
Use it to migrate a Go service to the shared Huma OpenAPI wrapper, install standardized problem responses, update specification generation, and map service errors.
Why use it?
It removes duplicated API and error-handling implementations and keeps runtime behavior aligned with generated API documentation. It is intended for services adopting the shared lib-commons wrapper.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to migrate a Go service to the shared Huma OpenAPI wrapper, install standardized problem responses, update specification generation, and map service errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lerianstudio/ring/adopting-lib-commons-huma-wrapper
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.

Any agent
npx skills add LerianStudio/ring --skill adopting-lib-commons-huma-wrapper
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Made for: Claude Code, Codex.

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 ring:adopting-lib-commons-huma-wrapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/adopting-lib-commons-huma-wrapper.svg)](https://agentmods.dev/skills/lerianstudio/ring/adopting-lib-commons-huma-wrapper)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/adopting-lib-commons-huma-wrapper"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/adopting-lib-commons-huma-wrapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00142 $0.05230
Opus 5 $0.00071 $0.02615
Sonnet 5 $0.00028 $0.01046
Haiku 4.5 $0.00014 $0.00523

Measured 8d ago against content hash 914dd6d91c70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ring:adopting-lib-commons-huma-wrapper 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 8d 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.

dev-team/skills/adopting-lib-commons-huma-wrapper/SKILL.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adopt the lib-commons Huma OpenAPI Wrapper

When to use

  • A Go service needs code-first OpenAPI 3.1 over Fiber (Huma) with RFC 9457 application/problem+json errors
  • User asks to "adopt the lib-commons OpenAPI/problem wrapper", "use the shared Huma wrapper", "standardize error responses on RFC 9457"
  • A service already carries a local copy of the wrapper (internal/shared/adapters/openapi, shared/openapi, shared/humaerr, a hand-rolled huma.NewError override) and should move onto the shared lib-commons/v5/commons/net/http/{openapi,problem}
  • A service is still on swaggo/swag (Swagger 2.0) and is migrating to Huma

Skip when

  • Service is not a Go project
  • Task does not involve an HTTP API / OpenAPI spec
  • The service genuinely needs a bespoke error envelope that is NOT RFC 9457 (rare; challenge it first)
  • Documentation-only or non-code task

You orchestrate. Agents implement. NEVER use Edit/Write/Bash on Go source files — all code changes go through Task(subagent_type="ring:backend-go"). TDD mandatory for implementation gates (RED → GREEN → REFACTOR). The orchestrator owns git (commit/push/PR/release) and NEVER commits without the user's go-ahead.

Architecture

The wrapper is two packages in lib-commons/v5 (minimum v5.6.0):

Alias Import Path Purpose
openapi github.com/LerianStudio/lib-commons/v5/commons/net/http/openapi Config, New (builds the humafiber API), DeclareBearerAuth, ServeSpec
problem github.com/LerianStudio/lib-commons/v5/commons/net/http/problem Install (global huma.NewError override), MapError, Detail, BaseURI

openapi.New(app, group, cfg) constructs the Fiber-v2 Huma API via humafiber.NewV2WithGroup (the default humafiber.New targets Fiber v3 — wrong major), strips Transformers/OnAddOperation/CreateHooks, and clears the auto-mounted /openapi.json + /docs (auto-mount is a latent production exposure — the spec must be served explicitly and gated). Config{Title, Version, Description, Servers}.

Read the full file on GitHub · 203 lines

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. 8d ago First seen · 203 lines · 142 tokens per session scan A 914dd6d91c70

Subscribe to this mod's changes

ring:adopting-lib-commons-huma-wrapper is a skill published in the GitHub repository LerianStudio/ring (211 stars, last pushed 19d ago), licensed Apache-2.0. It adds 142 tokens to every session and 5,230 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

council-review

Multi-model validation council — auto-validate plans, architecture changes, and PRs via validate-plan/review before executing.

alinaqi/maggy · 28 tokens

mcp-builder

Guide the creation of high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when the user wants to build an MCP server to integrate an external API or service, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

waybarrios/opencode-power-pack · 68 tokens

rust-skills

Comprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, concurrency, unsafe code, API design, memory optimization, performance, numeric safety, conversions, serde, pattern matching, macros…

leonardomso/rust-skills · 84 tokens

cook

Implement an approved spec or focused task through stale-safe source edits. Use this skill when the user says "implement this", "cook this spec", or "fix this bug". Use it for /cook .cheese/specs/ .md. Also use it when the user says "go" or "ship it" with clear acceptance criteria. Run it alone for an unambiguous…

paulnsorensen/easy-cheese · 122 tokens

culture

Primarily the agent's internal-thinking skill — invoke it silently to model a problem, identify trade-offs, and decide what to do, BEFORE asking the user anything or dispatching another skill. Only treat this as a user-facing skill when the user has explicitly opted out of code writes — phrases like "no writes", "just…

paulnsorensen/easy-cheese · 130 tokens

standards

Use this agent when you need to evaluate code, architecture, or development practices against the NASAB framework principles and Rust best practices.

samibs/skillfoundry · 29 tokens