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.
npx skills add jiushiwon/wg-skills --skill go-gin-init-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/go-gin-init-skill)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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 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.md、references/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?(默认不需要)
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 549 B
- references/api-contract-template.md 8.8 KB
- references/db-guide.md 3.6 KB
- references/db-schema-guide.md 3.5 KB
- references/env-setup.md 3.3 KB
- references/frontend-integration.md 5.9 KB
- references/middleware-guide.md 6.9 KB
- references/project-guide-template.md 4.8 KB
- references/skeleton.md 22 KB
- references/sse-guide.md 3.9 KB
- references/startup-scripts.md 5.9 KB
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.
- 6d ago First seen · 209 lines · 212 tokens per session scan A 9179c377d579
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.
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.
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…
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…
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…
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.
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…