Agent skill

Gen

by qiniu in qiniu/go-sdk

运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

MITAuto-check passedBackend & APIs

Install Gen

skills CLI
$ npx skills add qiniu/go-sdk --skill gen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install qiniu/go-sdk gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/qiniu/go-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gen .claude/skills/gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gen
GitHub stars
158
Token cost
~189 tokens
SKILL.md length
33 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

  • Tasks that involve OpenAPI specifications
  • SKILL.md covers 执行步骤, 输出格式 and 系统规范(AGENTS.md)
  • Calls git, make and go
  • Tasks that involve gRPC and Protobuf

What it does

Gen is an agent skill from qiniu/go-sdk. 运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

Its SKILL.md is about 190 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications and gRPC and Protobuf. It works with gRPC and OpenAPI. The licence is MIT.

When your agent uses it

  • Tasks that involve OpenAPI specifications
  • Tasks that involve gRPC and Protobuf

Example prompts

  • “/gen”

Requirements

  • Pre-approved tools (allowed-tools): Bash(make generate), Bash(make generate-sandbox), Bash(go build *), Bash(git diff *), Bash(git status)

What it can do on your machine

Read from SKILL.md and the folder at commit e1fe1ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(make generate)
    • Bash(make generate-sandbox)
    • Bash(go build *)
    • Bash(git diff *)
    • Bash(git status)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • make
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gen loads about 189 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 33 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~189

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from qiniu/go-sdk at commit e1fe1ce, republished under its MIT licence (© qiniu). 33 words, ~189 tokens.

Download SKILL.mdSave it as .claude/skills/gen/SKILL.md (or your agent's skills folder).
name
gen
description
运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。
allowed-tools
Bash(make generate), Bash(make generate-sandbox), Bash(go build *), Bash(git diff *), Bash(git status)
argument-hint
[sandbox]

代码生成

开始时声明:"我正在使用 gen skill 运行代码生成。"

执行步骤

步骤 1:记录当前状态
bash
git diff --stat
步骤 2:运行代码生成

默认运行 API 代码生成(storagev2、iam、media、audit):

bash
make generate

如果用户提到 sandbox,则运行:

bash
make generate-sandbox
步骤 3:检查变更
bash
git diff --stat

对比生成前后的变更,列出生成产生的文件差异。

步骤 4:验证编译
bash
go build ./...

确认编译通过。

输出格式

列出生成的文件变更清单和编译结果。如果没有变更,说明"代码生成未产生新变更"。

系统规范(AGENTS.md)

执行本 skill 时同时遵守 AGENTS.md 中的系统规范;与本 skill 冲突时以本 skill 为准。

© qiniu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/gen of qiniu/go-sdk.

Open the folder on GitHubat commit e1fe1ce

Compare with similar skills

Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gen this skillqiniu/go-sdk158—~189Automated safety check: PassMIT
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
SpikardGoldziher/spikard123—~799Automated safety check: PassMIT
Capability GovernanceArtisanCloud/PowerX379—~3kAutomated safety check: PassApache-2.0
Dotnet APInovotnyllc/dotnet-artisan233—~1.6kAutomated safety check: PassMIT
Uxcholon-run/uxc116—~1.8kAutomated safety check: PassMIT

Similar skills

  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Spikard

    Goldziher/spikard

    Scaffold Spikard projects and generate code from OpenAPI, AsyncAPI, OpenRPC, GraphQL, and Protobuf schemas using the Spikard CLI or its MCP server.

    123 GitHub stars~799 tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Capability Governance

    ArtisanCloud/PowerX

    PowerX 底座 Capability 治理与发布准入规则。用于审计 REST/OpenAPI/gRPC/Gin 生成的能力候选、正式 platformcapabilities 目录、Capability Registry 登记、agentusable/permissioncode/risklevel 元数据、ignore…

    379 GitHub stars~3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Dotnet API

    novotnyllc/dotnet-artisan

    Builds ASP.NET Core APIs, EF Core data access, gRPC, SignalR, and backend services with middleware, security (OAuth, JWT, OWASP), resilience, messaging, OpenAPI, .NET Aspire, Semantic Kernel…

    233 GitHub stars~1.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Uxc

    holon-run/uxc

    Discover and call remote schema-exposed interfaces with UXC.

    116 GitHub stars~1.8k tokensUpdated 23 days ago
    Backend & APIsAuto-check passed
  • Dotnet Webapi

    dotnet/skills

    Official

    Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

    5.6k GitHub starsUsed in 2 repos~5.5k tokens
    Backend & APIsAuto-check passed

More from qiniu/go-sdk

  • CI Analyze

    qiniu/go-sdk

    分析 CI 失败原因并给出修复建议。在用户提到 CI 失败、pipeline 失败、构建失败、测试失败时使用。典型场景:PR 合前 CI 红、需要根因与修复建议时。

    158 GitHub stars~904 tokensUpdated 18 days ago
    Auto-check passed
  • Gh View

    qiniu/go-sdk

    分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

    158 GitHub stars~627 tokensUpdated 18 days ago
    Auto-check passed
  • Git Commit

    qiniu/go-sdk

    遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

    158 GitHub stars~666 tokensUpdated 18 days ago
    Auto-check passed
  • Release Check

    qiniu/go-sdk

    检查发布版本号是否在三处保持一致(conf/conf.go、CHANGELOG.md、README.md)。在准备发布新版本时使用。

    158 GitHub stars~195 tokensUpdated 18 days ago
    Auto-check passed
  • Check

    qiniu/go-sdk

    运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk.

    158 GitHub stars~159 tokensUpdated 18 days ago
    Auto-check passed

Works with

Categories

Questions about Gen

What does Gen do?

运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。. Gen is an agent skill from qiniu/go-sdk.

When should I use Gen?

Gen fits situations like: tasks that involve OpenAPI specifications; tasks that involve gRPC and Protobuf.

How do I install Gen in Claude Code?

Run `npx skills add qiniu/go-sdk --skill gen -a claude-code`. Or copy the skill folder (.agents/skills/gen in qiniu/go-sdk) into .claude/skills/gen in your project. Claude Code loads it when a task matches its description.

How do I install Gen in Codex?

Run `npx skills add qiniu/go-sdk --skill gen -a codex`. Or copy the skill folder (.agents/skills/gen in qiniu/go-sdk) into .agents/skills/gen in your project. Codex loads it when a task matches its description.

Can I use Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qiniu/go-sdk --skill gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gen, .gemini/skills/gen, .github/skills/gen and .opencode/skills/gen in your project.

What does Gen need to run?

Going by SKILL.md and its folder, Gen needs the command-line tools its instructions call (git, make and go). Its frontmatter pre-approves these tools: Bash(make generate), Bash(make generate-sandbox), Bash(go build *), Bash(git diff *), Bash(git status).

Does Gen access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gen use?

Gen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gen use?

About 189 tokens (SKILL.md is roughly 756 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gen?

Skills that share tags, products or a category with Gen: Use Yaak (mountain-loop/yaak, 19k stars), Spikard (Goldziher/spikard, 123 stars), Capability Governance (ArtisanCloud/PowerX, 379 stars) and Dotnet API (novotnyllc/dotnet-artisan, 233 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gen?

qiniu (a GitHub organization) maintains it in qiniu/go-sdk, which has 158 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 20, 2026.

Source: qiniu/go-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.