go-storage-module-skill

go-storage-module-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 93 tokens per session (6,686 once invoked), scanned A, original, Apache-2.0.

A file-storage module for an existing Go Gin backend. It adds server-side handling for uploaded files and attachments.

In plain words
What is it for?
Use it for small or chunked large-file uploads, resumable transfers, downloads, previews, image processing, compression, and storage on local disk, cloud object storage, or MinIO.
Why use it?
It removes the need to build separate upload, download, preview, compression, storage-provider, and attachment-management paths.

Skill for Claude CodeCodex

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

Good fit Use it for small or chunked large-file uploads, resumable transfers, downloads, previews, image processing, compression, and storage on local disk, cloud object storage, or MinIO.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/go-storage-module-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-storage-module-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-storage-module-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/go-storage-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-storage-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,686 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.
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.00093 $0.06686
Opus 5.5 $0.00037 $0.02674
Sonnet 5.5 $0.00019 $0.01337
Haiku 4.5 $0.00009 $0.00669

Measured 2mo ago against content hash 8db87af22751, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-storage-module-skill 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 2mo 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.

backend/go/go-module/go-storage-module-skill/SKILL.md · 884 lines

How it starts

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

Go Gin Storage Module Skill

面向已有 Go Gin 项目的开发者,快速集成静态资源管理能力。

定位

  • 目标:在已有 go-gin-init-skill 骨架上,添加可运行的静态资源管理模块。
  • 不替代:不重复生成 go-gin-init-skill 已经提供的统一响应、JWT、GORM 等基础设施。
  • 输出:模型、仓储、服务、控制器、数据库迁移、接口契约、接入指南。

骨架依赖

本模块是 go-gin-init-skill 的子模块,必须在骨架基础上使用。

使用前必须满足:

  1. ✅ 已安装 go-gin-init-skill(项目骨架)
  2. ✅ 骨架包含:JWT、统一响应、GORM、分页、目录结构

用户问题(最多 3 个)

1. 现有项目的模块名是什么?(默认从骨架推断,如 github.com/koala/myapp)
2. 表前缀是什么?(默认 wg)
3. 默认存储方式是什么?(local / aliyun / tencent / minio,默认 local)

核心能力清单

# 能力 说明
1 小文件上传 单文件/多文件直接上传(< 10MB)
2 大文件切割上传 分片上传 + 断点续传(≥ 10MB)
3 文件压缩 可选开启,支持图片压缩
4 文件下载 流式下载、断点续传下载
5 文件预览 图片/视频/文档在线预览
6 存储策略 本地存储 / 阿里云 OSS / 腾讯云 COS / MinIO
7 附件管理 附件 CRUD、分类、标签
8 图片处理 缩略图、水印、格式转换

配置结构

# config.yaml
storage:
  # 存储方式: local / aliyun / tencent / minio
  type: local
  
  # 文件限制
  max_size: 104857600  # 100MB
  allowed_types: jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx,zip,mp4,mp3
  
  # 分片上传配置
  chunk:
    enabled: true
    size: 5242880  # 5MB 每片
    threshold: 10485760  # 10MB 触发分片上传
  
  # 压缩配置
  compress:
    enabled: false
    types: jpg,jpeg,png  # 需要压缩的文件类型
    quality: 80  # 压缩质量 0-100
    max_size: 1048576  # 1MB 以上才压缩
  
  # 本地存储
  local:
    path: ./uploads
    domain: http://localhost:8080
  
  # 阿里云 OSS
  aliyun:
    access_key: ${ALIYUN_ACCESS_KEY:}
    secret_key: ${ALIYUN_SECRET_KEY:}
    bucket: ${ALIYUN_BUCKET:}
    endpoint: oss-cn-hangzhou.aliyuncs.com
  
  # 腾讯云 COS
  tencent:
    secret_id: ${TENCENT_SECRET_ID:}
    secret_key: ${TENCENT_SECRET_KEY:}
    bucket: ${TENCENT_BUCKET:}
    region: ap-guangzhou
  
  # MinIO
  minio:
    endpoint: http://localhost:9000
    access_key: ${MINIO_ACCESS_KEY:minioadmin}
    secret_key: ${MINIO_SECRET_KEY:minioadmin}
    bucket: ${MINIO_BUCKET:uploads}

配置结构体

// config/storage.go
package config

type ChunkConfig struct {
    Enabled   bool `mapstructure:"enabled"`
    Size      int  `mapstructure:"size"`
    Threshold int  `mapstructure:"threshold"`
}

type CompressConfig struct {
    Enabled  bool     `mapstructure:"enabled"`
    Types    []string `mapstructure:"types"`
    Quality  int      `mapstructure:"quality"`
    MaxSize  int      `mapstructure:"max_size"`
}

type LocalConfig struct {
    Path   string `mapstructure:"path"`
    Domain string `mapstructure:"domain"`
}

type AliyunConfig struct {
    AccessKey string `mapstructure:"access_key"`
    SecretKey string `mapstructure:"secret_key"`
    Bucket    string `mapstructure:"bucket"`
    Endpoint  string `mapstructure:"endpoint"`
}

type TencentConfig struct {
    SecretID  string `mapstructure:"secret_id"`
    SecretKey string `mapstructure:"secret_key"`
    Bucket    string `mapstructure:"bucket"`
    Region    string `mapstructure:"region"`
}

type MinioConfig struct {
    Endpoint  string `mapstructure:"endpoint"`
    AccessKey string `mapstructure:"access_key"`
    SecretKey string `mapstructure:"secret_key"`
    Bucket    string `mapstructure:"bucket"`
}

type StorageConfig struct {
    Type         string         `mapstructure:"type"`
    MaxSize      int            `mapstructure:"max_size"`
    AllowedTypes []string       `mapstructure:"allowed_types"`
    Chunk        ChunkConfig    `mapstructure:"chunk"`
    Compress     CompressConfig `mapstructure:"compress"`
    Local        LocalConfig    `mapstructure:"local"`
    Aliyun       AliyunConfig   `mapstructure:"aliyun"`
    Tencent      TencentConfig  `mapstructure:"tencent"`
    Minio        MinioConfig    `mapstructure:"minio"`
}

Read the full file on GitHub · 884 lines

Files

What ships with it

2 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.

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. 2mo ago First seen · 884 lines · 93 tokens per session scan A 8db87af22751

Subscribe to this mod's changes

go-storage-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 93 tokens to every session and 6,686 once invoked, about $0.0004 per session on Opus 5.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-09-15.

Related

go-storage-module-skill compared with skills from other repositories

go-storage-module-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-storage-module-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A93Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6915d agoMITA105Claude Code, Codex