用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Sumatoshi-tech/codefang --skill generalize命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Systematic bug diagnosis and test-driven fix workflow
Audit and improve open-source documentation against best-practice rubrics (Diátaxis, Good Docs Project, Standard README, Google/Microsoft style, Keep a Changelog, MADR, OpenSSF)
Feature requirements document template
基于 SOC 职业分类
正在显示 SKILL.md
| name | generalize |
| description | Find reusable code and document generalization opportunities |
Scan all *.go files excluding *_test.go.
For each function ask: is it reusable?
Criteria:
type parameters).specs/ref/LIST.md is used instead.| Finding | Action |
|---|---|
| (a), (b), (c) | Document into specs/ref/LIST.md |
| (d) | Add info into specs/ref/LIST.md near the corresponding function that could replace it |
Update specs/ref/LIST.md after every file — do not batch, because batching risks losing findings if the process is interrupted.
After completing all files:
specs/ref/LIST.md.specs/ref/SPEC.md — organize findings into clusters by problem domain.## Dedup opportunities
1. {path/to/package}
Function: {function name}
Position: {file}:{line}:{col}
Findings: {What did you find during analysis}
Could replace:
- path/to/package:999:99:FunctionName
...
...
Track your progress as a graph. Complete one movement at a time.
[ {pkg1} [x] ] -> [ {pkg2} [done] ] -> [ {pkg2.1} [skip] ]
-> [ {pkg2.2} [skip] ]
-> [ {pkg3} [next] ] -> [ {pkg3.1} [ ] ]
Legend:
| Symbol | Meaning |
|---|---|
| done | Completed or checked hypothesis |
| skip | Canceled |
| next | Current work |
| [ ] | Not started |
<self_check>
Before writing SPEC.md, verify:
</self_check>
LIST.md after every file, not at the end.specs/ref/SPEC.md before yielding. "I scanned the first few modules, ask me to continue for the rest" is not a valid stop. The only hard blockers that allow earlier yield are: the source tree is not readable, or specs/ref/LIST.md cannot be written.