AgentSkillsCN

finishing-work

在实现工作完成后,需要验证成果并决定如何整合时使用——涵盖完工前的验证与分支收尾工作。

SKILL.md
--- frontmatter
name: finishing-work
description: Use when implementation is complete and you need to verify work and decide how to integrate — covers verification-before-completion and branch finishing

Finishing Work

Overview

Verify work is actually done, then present integration options. Combines verification-before-completion and finishing-a-development-branch.

Verification (MANDATORY before claiming done)

Evidence before assertions. Always.

CheckCommandMust Pass
Tests passRun project test suiteAll green
Linting cleanRun project linterNo errors
Build succeedsRun project buildNo errors
Changes committedgit statusClean working tree

Run these commands and confirm output. Do NOT claim "tests pass" without actually running them.

Red Flags — STOP

  • "I'm confident it works" without running tests
  • "Tests should pass" without evidence
  • "I verified manually" without command output
  • Claiming done with uncommitted changes

Integration Options

After verification passes, present these options:

OptionWhenCommand
Merge to mainSimple feature, sole developergit checkout main && git merge [branch]
Create PRTeam project, needs reviewgh pr create --title "..." --body "..."
Keep branchNot ready to integrate yetJust inform user
Squash mergeMany small commits to clean upgit checkout main && git merge --squash [branch]

PR Format

bash
gh pr create --title "short title" --body "$(cat <<'PREOF'
## Summary
- [bullet points]

## Test plan
- [ ] Tests pass
- [ ] Manual verification done
PREOF
)"

Process

  1. Run all verification checks
  2. Show output to user
  3. If all pass → present integration options
  4. If any fail → fix first, re-verify
  5. Execute user's choice
  6. Confirm completion