Skip to content

qiniu/go-sdk / .agents/skills/gen

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

代码生成

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

执行步骤

步骤 1:记录当前状态

git diff --stat

步骤 2:运行代码生成

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

make generate

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

make generate-sandbox

步骤 3:检查变更

git diff --stat

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

步骤 4:验证编译

go build ./...

确认编译通过。

输出格式

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

系统规范(AGENTS.md)

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

receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 319kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 319kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 319kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 319kUpdated Claude CodeCodexVerifiedInstall