Skip to content
cccskills
FreePublished on GitHub

check

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

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.

提交前检查

开始时声明:"我正在使用 check skill 运行提交前检查。"

执行步骤

步骤 1:代码格式化检查

gofmt -s -l .

如果有未格式化的文件,列出文件清单并提示运行 gofmt -s -w . 修复。

步骤 2:静态检查

make staticcheck

如果失败,列出 staticcheck 报告的问题并给出修复建议。

步骤 3:单元测试

make unittest

如果任何步骤失败,停止并报告错误,给出修复建议。

输出格式

全部通过时:

✓ gofmt — 通过
✓ staticcheck — 通过
✓ unittest — 通过

有失败时列出具体错误和修复建议。

系统规范(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

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

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

qiniu/go-sdk158Updated Sep 20, 2026

gen

Free

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

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