go-swagger3-docs

go-swagger3-docs is a skill for Claude Code, Codex from parvez3019/go-swagger3. It costs 63 tokens per session (3,413 once invoked), scanned A, original, MIT.

A guide to documenting existing Go HTTP APIs with code comments and struct tags, then generating OpenAPI 3 specifications. OpenAPI is a machine-readable description of an API’s endpoints, inputs, and responses.

In plain words
What is it for?
Use it to add go-swagger3 annotations, document handlers and data structures, and generate an oas.json or oas.yml file.
Why use it?
It turns an existing Go API into documentation that tools can read without requiring handlers to be rewritten. It also explains how to include request and response fields, enumerated values, and headers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --module-path . --main-file-path ./cmd/api/main.go --output oas.json --schema-without-pkg.

Good fit Use it to add go-swagger3 annotations, document handlers and data structures, and generate an oas.json or oas.yml file.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/parvez3019/go-swagger3
agentmods
npx agentmods add skills/parvez3019/go-swagger3/claude

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 go-swagger3-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/parvez3019/go-swagger3/claude/github.svg)](https://agentmods.dev/skills/parvez3019/go-swagger3/claude)
Your own site
<a href="https://agentmods.dev/skills/parvez3019/go-swagger3/claude"><img src="https://agentmods.dev/badge/skills/parvez3019/go-swagger3/claude/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 go-swagger3-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/parvez3019/go-swagger3/claude"><img src="https://agentmods.dev/badge/skills/parvez3019/go-swagger3/claude.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,413 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 warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 222
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Agent Snooping · line 12
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium MCP Rug Pull · line 23
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • low Tool Misuse · line 23
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00063 $0.03413
Opus 5 $0.00032 $0.01707
Sonnet 5 $0.00013 $0.00683
Haiku 4.5 $0.00006 $0.00341

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

Security

Grade A, and why

go-swagger3-docs 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 9d 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.

agent-skills/claude/SKILL.md · 348 lines

How it starts

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

go-swagger3 — document existing Go APIs

Copy this file into a consumer project as .claude/skills/go-swagger3-docs/SKILL.md.

Annotate existing Go code with go-swagger3 godoc @ tags and struct tags, then run the CLI. Prefer editing comments and tags over rewriting handlers.

Install

go install github.com/parvez3019/go-swagger3@latest
export PATH="$HOME/go/bin:$PATH"

# Docker alternative
docker run -t --rm -v $(pwd):/app -w /app parvez3019/go-swagger3:latest \
  --module-path . --main-file-path ./cmd/api/main.go --output oas.json --schema-without-pkg

Workflow

  1. Confirm go.mod exists (Go modules only).
  2. Put service annotations on the main/entry file (@Title and @Version required).
  3. Annotate each HTTP handler’s godoc (comments must sit directly above the func).
  4. Add json + OAS tags on request/response structs; add @Enum / @HeaderParameters types when needed.
  5. Generate (pick the matching layout):
    # main next to go.mod
    go-swagger3 --module-path . --output oas.json --schema-without-pkg
    
    # main elsewhere
    go-swagger3 --module-path . --main-file-path ./cmd/api/main.go --output oas.json --schema-without-pkg
    
    # only scan handlers under a path
    go-swagger3 --module-path . --main-file-path ./cmd/api/main.go --handler-path ./internal/handlers --output oas.json --schema-without-pkg
    
    # YAML
    go-swagger3 --module-path . --main-file-path ./cmd/api/main.go --output oas.json --schema-without-pkg --generate-yaml
    
  6. Open the output, fix gaps, re-run with --debug if needed. Use --strict when hardening.

CLI flags

Flag Purpose
--module-path Module root to scan
--main-file-path File with service-level annotations
--handler-path Optional: only scan handlers under this path
--output Output path (default oas.json)
--schema-without-pkg Schema names without package prefix
--generate-yaml Emit YAML (.json output becomes .yml)
--exclude Comma-separated dirs to skip
--quiet Reduce log noise
--debug Debug logging
--strict Treat parse warnings as fatal

Read the full file on GitHub · 348 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. 9d ago First seen · 348 lines · 63 tokens per session scan A 6970bea468b4

Subscribe to this mod's changes

go-swagger3-docs is a skill published in the GitHub repository parvez3019/go-swagger3 (149 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 3,413 once invoked, about $0.0003 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.