在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用staticcheck
星标3
分支0
更新时间2025年12月18日 03:03
Fix staticcheck issues
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Fix staticcheck issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Handle hook scripts and paths for plugin packaging
Package claudefiles components into a valid Claude Code plugin
Package language-specific subsets of claudefiles
Plugin validation errors and fixes
Common channel patterns and idioms
Context cancellation patterns for graceful shutdown
| name | staticcheck |
| description | Fix staticcheck issues |
Advanced static analyzer with comprehensive checks.
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
staticcheck -checks=all ./...
// Bad
ioutil.ReadFile("file.txt")
// Good
os.ReadFile("file.txt")
// Bad
value := compute()
value = other()
// Good
_ = compute()
value := other()
// Bad
if err != nil {
// TODO
}
// Good - remove or implement
if err != nil {
return err
}
// Bad
if x == true {
return true
}
// Good
return x
// Bad
func GetHTTPSUrl() string
// Good
func GetHTTPSURL() string
// Bad
fmt.Printf("error: %v\n", err)
// Good
fmt.Fprintf(os.Stderr, "error: %v\n", err)
// Bad
append(slice, item)
// Good
slice = append(slice, item)
# .staticcheck.conf
checks = ["all", "-ST1000"]