go-sdk CLAUDE.md

go-sdk CLAUDE.md is an instructions file for Claude Code from qiniu/go-sdk. It costs 405 tokens per session, scanned A, original, MIT.

Contributor instructions for Qiniu Cloud’s Go SDK, a Go library for accessing Qiniu cloud services. They list common commands for tests, static checks, formatting, code generation, and submodule setup, along with rules for generated code and releases.

In plain words
What is it for?
Use them when modifying the SDK, API specifications, sandbox definitions, tests, or release files. They explain when to run each maintenance command and where changes should be made.
Why use it?
They provide a repeatable way to check changes and prevent edits from being lost or overwritten by code generation. They also keep version information, examples, and test categories consistent.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions AGENTS.md.

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.

agentmods
npx agentmods add instructions/qiniu/go-sdk/claude-md
Clone the repo
git clone --depth 1 https://github.com/qiniu/go-sdk

Made for: Claude Code.

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-sdk CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/qiniu/go-sdk/claude-md.svg)](https://agentmods.dev/instructions/qiniu/go-sdk/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/qiniu/go-sdk/claude-md"><img src="https://agentmods.dev/badge/instructions/qiniu/go-sdk/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 405 This file is loaded in full into every session.
When invoked 405 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00405 $0.00405
Opus 5 $0.00202 $0.00202
Sonnet 5 $0.00081 $0.00081
Haiku 4.5 $0.00040 $0.00040

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

Security

Grade A, and why

go-sdk CLAUDE.md 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 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.

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.

CLAUDE.md · 33 lines

What it actually says

Qiniu Go SDK — Claude Code Instructions

项目概要

七牛云 Go SDK,模块路径 github.com/qiniu/go-sdk/v7,Go 1.22+,MIT 许可。

核心开发规范

@AGENTS.md

Claude Code 特定指引

常用命令

命令 说明 时机
make unittest 运行单元测试 修改前确认状态 + 提交前必须通过
make staticcheck 运行静态检查 提交前必须通过
make generate API 代码生成 修改 api-specs/ 中的 YAML 规范后
make generate-sandbox Sandbox 代码生成 修改 sandbox OpenAPI/protobuf 规范后
gofmt -s -w . 格式化代码 提交前
git submodule update --init --recursive 初始化 submodule 首次 clone 或 submodule 更新后

开发注意事项

  • 修改代码前先运行 make unittest 确认当前状态
  • 绝不修改 DO NOT EDIT DIRECTLY 标记的生成代码,需修改请更新 API 规范后重新生成
  • 注释默认使用中文,导出标识符注释以标识符名称开头
  • 测试文件必须添加 //go:build unit//go:build integration 标签
  • api-specs/ 是 git submodule,使用 git submodule update --init --recursive 初始化
  • 发布时确保 conf/conf.goconst Version)、CHANGELOG.mdREADME.md 版本号一致
  • examples/ 下每个示例是独立的 main 包,不要破坏其编译
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 · 33 lines · 405 tokens per session scan A d1ab59561dff

Subscribe to this mod's changes

go-sdk CLAUDE.md is an instructions file published in the GitHub repository qiniu/go-sdk (157 stars, last pushed 1mo ago), licensed MIT. It adds 405 tokens to every session, about $0.0020 per session on Opus 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-08-30.