- 每次重构后,必须删除所有弃用的代码和无用方法(如未被调用的函数、变量、类等) - 不允许保留未被调用的函数、变量或类 - 条件嵌套必须尽可能少 - 发现魔法数字必须用常量或枚举替代 - 代码合并后必须保证编译通过 - 重要接口变更需同步更新文档 - 任何自动化重构后,务必检查并清理所有遗留、无用、重复代码 - 同一个文件中的函数命名风格保持一致

TypeSKILL_MD
Supported agentsclaude-code
LicenseSource did not declare a license
Last updatedunknown
Quality signal11 / 100
SourceView source
Evaluation status

A local static scan is available. This is not an official security certification or benchmark.

Claim this skill (are you the author?)

Similar skills

SKILL_MD
97

Golang concurrency patterns. Use when writing or reviewing concurrent Go code involving goroutines, channels, select, locks, sync primitives, errgroup, singleflight, worker pools, or fan-out/fan-in pipelines. Also triggers when you detect goroutine leaks, race conditions, channel ownership issues, …

Coding / 软件开发Safe-ishScanned
SKILL_MD
97

Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context propagation, and migration tooling. Use when writing, reviewing, or debugging Golang code that interac…

Coding / 软件开发Safe-ishScanned
SKILL_MD
golang-cli
by samber
97

Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also tri…

Coding / 软件开发Safe-ishScanned
SKILL_MD
93

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。

Coding / 软件开发Safe-ishScanned
SKILL_MD
93

Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tra…

Coding / 软件开发Safe-ishScanned