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,371 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,371 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.03371
Opus 5.5 $0.00085 $0.01348
Sonnet 5.5 $0.00042 $0.00674
Haiku 4.5 $0.00021 $0.00337

Measured 1mo ago against content hash 9f19aa7e9c9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (demo/scripts/start.bat, demo/scripts/start.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
backend/go/go-gin-init-skill/SKILL.md · 207 lines

How it starts

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

Go Init Skill

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

4 语言 init-skill 横向对比

维度 springboot-init(Java) fastapi-init(Python) go-gin-init(Go) nodejs-init(Node.js)
框架 Spring Boot 3 FastAPI + uvicorn Gin Express
启动方式 mvn spring-boot:run uvicorn main:app **`./restart.sh [dev prod]`**
默认数据库 MySQL MySQL / PostgreSQL MySQL(可选 PostgreSQL) MySQL
ORM MyBatis-Plus SQLAlchemy GORM Sequelize
鉴权 JWT + Spring Security JWT + OAuth2 JWT + 中间件 JWT + Passport
SSE WebFlux SSE StreamingResponse Gin SSE SSE
Swagger springdoc-openapi FastAPI 自带 swaggo/gin-swagger swagger-jsdoc

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

依赖

  • init-skill 内置契约层:响应信封 { code, message, data }、错误码(-1001 校验 / -2000 系统)、JWT Bearer、api-contract、project-guide 规范已内置本 skill
  • database-design-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 等基础安全头

Read the full file on GitHub · 207 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 Changed · +2 lines 9f19aa7e9c9d
  2. 2mo ago Changed · -4 lines 4bb8290907f9
  3. 2mo ago Changed 547da2d32490
  4. 2mo 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 (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 212 tokens to every session and 3,371 once invoked, about $0.0008 per session on Opus 5.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

go-gin-init-skill compared with skills from other repositories

go-gin-init-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-gin-init-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A212Claude Code, Codex
golang-proJeffallan/claude-skillsSkill13ktodayMITA95Claude Code
platform-constrained-handlerclidey/whodbSkill5.1ktodayApache-2.0A26Claude Code, Codex
golang-graphqlsamber/cc-skills-golangSkill4.0k22d agoMITA77Claude Code
golang-grpcsamber/cc-skills-golangSkill4.0k22d agoMITA72Claude Code
golang-swaggersamber/cc-skills-golangSkill4.0k22d agoMITA146Claude Code
printing-pressmvanhorn/cli-printing-pressSkill5.1ktodayMITA86Claude Code