go-gin-init-skill

go-gin-init-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 212 tokens per session (3,226 once invoked), scanned A, original, Apache-2.0.

A starter that creates a Go web service from scratch, including a Gin web framework, streaming responses, login protection, file uploads, database options, API documentation, and start or restart scripts. It is designed for people new to Go projects.

In plain words
What is it for?
Use it to initialize a Go backend with MySQL, PostgreSQL, or no database, plus HTTP endpoints, JWT login, file uploads, Swagger documentation, and development or production scripts.
Why use it?
It removes much of the setup work involved in choosing tools, installing the environment, and wiring common web-service pieces together. It gives a new project a defined structure and startup path.

Skill for Claude CodeCodex

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

Good fit Use it to initialize a Go backend with MySQL, PostgreSQL, or no database, plus HTTP endpoints, JWT login, file uploads, Swagger documentation, and development or production scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/go-gin-init-skill
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 jiushiwon/wg-skills --skill go-gin-init-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

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-gin-init-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-gin-init-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/go-gin-init-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/go-gin-init-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-gin-init-skill/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-gin-init-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/go-gin-init-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-gin-init-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 212 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,226 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 2 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 134
    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.
  • high Privilege Escalation · line 146
    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.
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.00212 $0.03226
Opus 5 $0.00106 $0.01613
Sonnet 5 $0.00042 $0.00645
Haiku 4.5 $0.00021 $0.00323

Measured 6d ago against content hash 9179c377d579, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

go-gin-init-skill 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 6d 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.

curl http://localhost:8080/api/sse/chat
vibeCoding/backend/go/go-gin-init-skill/SKILL.md · 209 lines

How it starts

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

Go Init Skill

面向完全不懂编程的小白,一键生成标准化、开箱即用的 Go Web 服务骨架。

与 go-backend-skill 的区别

维度 go-backend-skill 本 skill
目标用户 后端开发者 零基础小白
环境安装 用户自己装 自动检测 + 自动安装
启动方式 go run main.go **一条命令:`./restart.sh [dev
Web 框架 无默认 Gin(最流行)
SSE 支持 内置 SSE 流式框架
文件上传 内置文件上传接口
默认数据库 PostgreSQL MySQL(可选 PostgreSQL / 无数据库)
脚本 只生成 restart.sh / restart.bat(dev/prod 双模式)
Swagger swaggo/gin-swagger 集成
交互次数 多个技术问题 最多 3 个问题
文件数 ~25 ~20

不重复造轮子:统一响应信封、错误码、JWT 规范与 backend-convention-skill 对齐,但模板已内置于本 skill(references/api-contract-template.mdreferences/project-guide-template.md),生成项目不依赖 backend-convention-skill 文件;关系型 DB 配置引用 database-skill;前端联动规范引用 frontend-request-skill。本 skill 在它们之上增加「小白友好」的完整封装。

依赖

  • backend-convention-skill:响应信封 { code, message, data }、错误码(-1001 校验 / -2000 系统)、JWT Bearer、api-contract、project-guide 规范对齐(模板已内置本 skill)
  • database-skill:MySQL / PostgreSQL 选型规则、表前缀 wg、连接参数
  • frontend-request-skill:前端请求层规范,确保后端生成的接口契约可直接被前端消费

核心能力清单(11 项)

# 能力 说明
1 环境探测 自动检测 Go 版本(>= 1.20)、GolangCI-Lint、操作系统类型
2 自动安装 初始化 go.mod、安装依赖、go build 检查
3 一键启动/重启 `./restart.sh [dev
4 开发模式 ./restart.sh dev 热重载(air),日志 logs/dev.log
5 生产模式 ./restart.sh prod 后台多 worker,日志 logs/app.log
6 SSE 流式 内置 gin-sse,示例端点 /api/sse/chat
7 文件上传 内置 /api/upload 单文件与 /api/uploads 多文件上传
8 统一响应 中间件自动包装 { code, message, data }
9 全局异常 BusinessException / 校验错误 / 兜底错误处理
10 JWT 鉴权 golang-jwt/v5:注册 / 登录 / 刷新令牌 / 当前用户注入
11 安全头 内置 X-Frame-Options / X-Content-Type-Options 等基础安全头

生成流程

第一步:询问用户(只问 3 个问题)

1. 项目名叫什么?(默认 my-go-app)
2. 用哪个数据库?
   A. MySQL(默认,推荐)
   B. PostgreSQL
   C. 暂时不用数据库
3. 是否需要 Redis?(默认不需要)

Read the full file on GitHub · 209 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. 6d ago First seen · 209 lines · 212 tokens per session scan A 9179c377d579

Subscribe to this mod's changes

go-gin-init-skill is a skill published in the GitHub repository jiushiwon/wg-skills (102 stars, last pushed 2d ago), licensed Apache-2.0. It adds 212 tokens to every session and 3,226 once invoked, about $0.0011 per session on Opus 5. 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-09-06.

Related

Other skills, from other repositories

golang-graphql

Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports github.com/99designs/gqlgen or github.com/graph-gophers/graphql-go.

samber/cc-skills-golang · 77 tokens

golang-pro

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming…

Jeffallan/claude-skills · 95 tokens

golang-grpc

Provides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gRPC servers/clients, writing proto files, setting up interceptors, handling gRPC errors with status codes, configuring TLS/mTLS, testing with bufconn, or…

samber/cc-skills-golang · 72 tokens

golang-swagger

Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example…

samber/cc-skills-golang · 146 tokens

layered-architecture-types

Enforce primitive-at-edges / strong-types-in-Business layering and the toBus/fromBusResponse/toDB converter pattern. Use when writing, editing, or auditing Go files under app/, business/domain/, or .../stores/db.

ardanlabs/service · 56 tokens

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens