Skip to content
cccskills
FreePublished on GitHub

gen

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

代码生成

开始时声明:"我正在使用 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 为准。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

check

Free

运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用。

The English summary is being prepared. Showing the original description.

qiniu/go-sdk158Updated Sep 20, 2026

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

The English summary is being prepared. Showing the original description.

qiniu/go-sdk158Updated Sep 20, 2026

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

The English summary is being prepared. Showing the original description.

qiniu/go-sdk158Updated Sep 20, 2026

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

The English summary is being prepared. Showing the original description.

qiniu/go-sdk158Updated Sep 20, 2026

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

The English summary is being prepared. Showing the original description.

qiniu/go-sdk158Updated Sep 20, 2026

See all skills by qiniu

Report a problem with this skill