提交前检查
SkillDev toolsRun pre-commit checks: code formatting verification, static analysis, and unit tests. Use when preparing to commit code, checking code quality, or verifying that changes pass.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the 提交前检查 skill
What this skill tells your AI
The instructions your AI receives, as published by qiniu/go-sdk in .agents/skills/check/SKILL.md and read by ahel’s review.
开始时声明:"我正在使用 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 为准。
Signals
- GitHub stars
- 158
- Forks
- 66
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
check-qiniu- Source
- github.com/qiniu/go-sdk