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.03371 |
| Opus 5.5 | $0.00085 | $0.01348 |
| Sonnet 5.5 | $0.00042 | $0.00674 |
| Haiku 4.5 | $0.00021 | $0.00337 |
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.
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 — 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 等基础安全头 |
What ships with it
30 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.
- demo/cmd/server/main.go 2.8 KB
- demo/configs/config.example.yaml 391 B
- demo/go.mod 1.8 KB
- demo/go.sum 10 KB
- demo/internal/handler/auth_test.go 513 B
- demo/internal/handler/auth.go 1.8 KB
- demo/internal/handler/user.go 2.3 KB
- demo/internal/model/user.go 617 B
- demo/internal/repository/user.go 1.2 KB
- demo/internal/service/user.go 881 B
- demo/pkg/config/config_test.go 666 B
- demo/pkg/config/config.go 1.1 KB
- demo/pkg/middleware/cors.go 427 B
- demo/pkg/middleware/jwt.go 978 B
- demo/pkg/middleware/logger.go 306 B
- demo/pkg/utils/response.go 391 B
- demo/README.md 4.5 KB
- demo/scripts/start.bat 140 B runs code
- demo/scripts/start.sh 156 B runs code
- README.md 549 B
- references/api-contract-template.md 8.9 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 5.0 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.
- 1mo ago Changed · +2 lines 9f19aa7e9c9d
- 2mo ago Changed · -4 lines 4bb8290907f9
- 2mo ago Changed 547da2d32490
- 2mo 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 (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.
go-gin-init-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-gin-init-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 212 | Claude Code, Codex |
| golang-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 95 | Claude Code |
| platform-constrained-handlerclidey/whodb | Skill | 5.1k | today | Apache-2.0 | A | 26 | Claude Code, Codex |
| golang-graphqlsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 77 | Claude Code |
| golang-grpcsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 72 | Claude Code |
| golang-swaggersamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 146 | Claude Code |
| printing-pressmvanhorn/cli-printing-press | Skill | 5.1k | today | MIT | A | 86 | Claude Code |