check
- Repo stars 1,024
- Author repo qshell
- Domain
- AI
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Runtime evidence
- Not run; no isolated runtime test evidence is currently recorded
- Author / version / license
- @qiniu · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No explicit requirements detected
- Detected file/system behavior
-
- Read-only
- Network behavior
- Local-only
- Install commands
- None (reference only)
Heads up: Tool permissions are not declared; actual access depends on the runtime.
# 提交前检查
开始时声明:"我正在使用 check skill 运行提交前检查。"
## 执行步骤
### 步骤 1:代码格式化检查
```bash
gofmt -s -l .
```
如果有未格式化的文件,列出文件清单并提示运行 `gofmt -s -w .` 修复。
### 步骤 2:静态检查
```bash
make lint
```
如果失败,列出 vet/staticcheck 报告的问题并给出修复建议。
### 步骤 3:单元测试
```bash
make test
```
如果任何步骤失败,停止并报告错误,给出修复建议。
## 输出格式
全部通过时:
```
✓ gofmt — 通过
✓ lint — 通过
✓ test — 通过
```
有失败时列出具体错误和修复建议。
## 验收标准(统一)
- 输入前提:参数与上下文可解析;缺省参数按 skill 默认值执行,并在输出中注明。
- 产出要求:按 skill 约定的输出模板给出结果,并包含关键证据(命令、路径、链接或日志摘要)。
- 通过判定:主流程步骤已完成且无阻塞;若有未完成项,必须明确标注影响范围与下一步。
- 默认策略(非交互):需要确认但用户未及时响应时,采用"推荐默认值/最小风险项"继续;需要交互选择时优先推荐项。
- 阻塞升级:遇到权限、凭证、外部依赖缺失时立即停止该步骤,输出"阻塞点 + 已尝试 + 需要用户提供的信息"。
## 系统规范(AGENTS.md)
执行本 skill 时同时遵守 `AGENTS.md` 中的系统规范;与本 skill 冲突时以本 skill 为准。
Sections and files
Listed in source order.
sections -> See the original source for section headings
terms -> No English key terms available
files/cmd -> gofmt -s -w . · AGENTS.md · vet/staticcheck
body sha256 -> 507dfd6b6a1d