ring:adopting-lib-commons-huma-wrapper

ring:adopting-lib-commons-huma-wrapper is a skill for Cursor 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 Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the ring-dev-team plugin — 35 skills, 24 agents shipped together

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: Cursor.

Or install ring-dev-team, the plugin that ships this one along with the rest of its 35 skills, 24 agents.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ring:adopting-lib-commons-huma-wrapper

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00057 $0.02092
Sonnet 5.5 $0.00028 $0.01046
Haiku 4.5 $0.00014 $0.00523

Measured 1mo ago against content hash 914dd6d91c70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (218 stars, last pushed 3d ago), licensed Apache-2.0. It adds 142 tokens to every session and 5,230 once invoked, about $0.0006 per session on Opus 5.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

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

mutation-test

Mutation testing with two engines. Uses the project's NATIVE mutation runner (StrykerJS / Infection / mutmut / PIT / cargo-mutants) when one is configured — installing it on explicit consent when it is not — for a reproducible, comparable score; and an LLM-guided engine for the mutation classes native mutators cannot…

greglas75/zuvo · 210 tokens

content-audit

Content file quality audit across 8 dimensions (CC1-CC8): encoding artifacts (NBSP, mojibake, zero-width), markdown syntax (broken italic, orphan backslash), CMS migration artifacts (Joomla/WordPress/PHP), frontmatter quality, image integrity, link integrity with anchor validation, content completeness, and…

greglas75/zuvo · 137 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

update-deps

Update Python dependencies or pre-commit hooks while preserving the project's pin and configuration style.

reidemeister94/development-skills · 21 tokens

infra-audit

Server / infrastructure security audit of LIVE hosts over SSH (12 dimensions IS1-IS12: SSH hardening, accounts, network exposure, TLS, firewall, patch posture, logging, web services, Docker, databases, filesystem, host secrets). Deterministic collector + parallel LLM analysts; dual-vantage (internal SSH + external via…

greglas75/zuvo · 229 tokens