finishing-a-development-branch
Gitブランチを自信を持って完了する
也可從以下取得: Cycleaddict,obra,davila7,CodingCossack,DYAI2025,ZhanlinCui,Cygnusfear
このスキルは、テストの通過を確認し、明確なマージ/PRオプションを提示し、選択したワークフローを安全に実行することで、機能開発の最後のステップを自動化します。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「finishing-a-development-branch」。 I'm done with my feature. Can you help me finish this branch?
預期結果:
Running test suite...
✓ All tests pass (42 passed, 0 failed)
Implementation complete. What would you like to do?
1. Merge back to main locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?
正在使用「finishing-a-development-branch」。 Option 2 - create a PR
預期結果:
✓ Pushed branch 'feature/add-user-auth'
✓ Created PR #42: Add user authentication
✓ Removed worktree at '/Users/dev/project/.git/worktrees/feature-add-user-auth'
Branch complete! Pull request created and worktree cleaned up.
安全審計
安全All static findings are false positives. The 23 external command detections are legitimate git operations (checkout, branch, merge, push, worktree) that form the core functionality of this git workflow skill. The 2 filesystem detections are standard shell redirection and git worktree management. The high-severity crypto flags are false positives from text pattern misidentification.
風險因素
⚙️ 外部命令 (6)
📁 檔案系統存取 (2)
品質評分
你能建構什麼
機能ブランチを完了する
実装タスクを完了した後、このスキルを使用して完了した作業をクリーンにマージまたはPRします
開発worktreeをクリーンアップする
開発が完了した後、開発中に作成された一時的なworktreeを削除するために使用します
チーム内のブランチ完了を標準化する
チームメンバー間での一貫したブランチ完了ワークフローを確保する
試試這些提示
I'm done with my feature. Can you help me finish this branch?
All tests are passing. I want to create a pull request and clean up my worktree.
Please merge my branch into main locally and verify tests still pass.
I want to discard this work. Please confirm before deleting anything.
最佳實務
- 壊れたコードのマージを防ぐため、オプションを提示する前に常にテストが通過することを確認する
- ユーザーの選択を明確にするため、追加の説明なしで正確に4つのオプションを提示する
- 作業の偶発的な損失を防ぐため、入力による'discard'確認を要求する
避免
- テスト検証をスキップして直接マージまたはPRに進む
- オプションを提示する代わりに'What should I do next?'などの開かれた質問をする
- すべてのオプションに対して自動的にworktreeをクリーンアップする(マージと破棄のみ実行)