finalize

eihli 的头像作者 eihli

工作完成后清单。在以下情况下使用:(1)用户说“完成”、“总结”、“你完成了吗?”、“你提交了吗?”等类似的话,(2)在移交/任务结束时,(3)以验证没有遗漏。运行 git 状态检查、测试/类型/lint 阀门、关键审查和提交剩余更改。

📖 中文导读:工作完成后清单。在以下情况下使用:(1)用户说“完成”、“总结”、“你完成了吗?”、“你提交了吗?”等类似的话,(2)在移交/任务结束时,(3)以验证没有遗漏。运行 git 状态检查、测试/类型/lint 阀门、关键审查和提交剩余更改。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: finalize description: > Wrap-up checklist after completing work. Use when: (1) user says "finalize", "wrap up", "are you done?", "did you commit?", or similar, (2) before handoff/end of task, (3) to verify nothing was forgotten. Runs git status check, test/type/lint gates, critical review, and commits remaining changes.

Finalize

Run this checklist before considering work complete.

1. Git Status Check

git status
git diff --stat

If uncommitted changes exist, proceed through remaining steps before committing.

2. Task Completion Check

  • Review conversation for any unfinished TODOs or skipped items
  • Check TodoWrite list - are all items marked completed?
  • If anything incomplete, finish it before proceeding

3. Run Quality Gates

Run project-appropriate checks. Detect from project structure:

Files present Commands to run
package.json npm test, npm run lint, npm run typecheck (or equivalents)
pyproject.toml / setup.py pytest, mypy ., ruff check . (or project equivalents)
Cargo.toml cargo test, cargo clippy
go.mod go test ./..., go vet ./...

Check package.json scripts or project config for actual command names. Fix any failures before proceeding.

4. Critical Self-Review

Review all changes with adversarial mindset:

  • Security: injection, auth issues, exposed secrets?
  • Edge cases: nil/null, empty collections, boundary conditions?
  • Error handling: failures caught and handled appropriately?
  • Breaking changes: backwards compatibility maintained?
  • Tests: new code has test coverage?

If issues found, fix them. Re-run quality gates after fixes.

5. Commit

If all gates pass and changes look good:

git add -A
git commit -m "<descriptive message with why, not just what>"

Report final status to user.