技能 finishing-a-development-branch
📦

finishing-a-development-branch

安全 ⚙️ 外部命令📁 檔案系統存取

Gitブランチを自信を持って完了する

也可從以下取得: Cycleaddict,obra,davila7,CodingCossack,DYAI2025,ZhanlinCui,Cygnusfear

このスキルは、テストの通過を確認し、明確なマージ/PRオプションを提示し、選択したワークフローを安全に実行することで、機能開発の最後のステップを自動化します。

支援: Claude Codex Code(CC)
🥉 72 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「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.

安全審計

安全
v1 • 2/25/2026

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.

1
已掃描檔案
206
分析行數
2
發現項
1
審計總數
審計者: claude

品質評分

38
架構
100
可維護性
85
內容
32
社群
100
安全
100
規範符合性

你能建構什麼

機能ブランチを完了する

実装タスクを完了した後、このスキルを使用して完了した作業をクリーンにマージまたはPRします

開発worktreeをクリーンアップする

開発が完了した後、開発中に作成された一時的なworktreeを削除するために使用します

チーム内のブランチ完了を標準化する

チームメンバー間での一貫したブランチ完了ワークフローを確保する

試試這些提示

基本的なブランチ完了
I'm done with my feature. Can you help me finish this branch?
PRを作成してクリーンアップ
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をクリーンアップする(マージと破棄のみ実行)

常見問題

テストが失敗した場合はどうなりますか?
スキルは停止し、テストの失敗を表示します。テストが通過するまでオプションステップには進しません。
最初にプッシュせずにPRを作成できますか?
いいえ。オプション2はPRを作成する前にoriginにブランチをプッシュする必要があります。
worktreeとは何ですか?
git worktreeを使用すると、複数のブランチを別のディレクトリで同時にチェックアウトできます。
このスキルはマージ競合を処理しますか?
いいえ。スキルは競合を報告して停止します。手動で解決する必要があります。
どのgitホストがサポートされていますか?
PR作成にはGitHubとgh CLIが必要です。他のホストはローカルマージのみに対応しています。
オプション3(ブランチを保持)を選んだ場合はどうなりますか?
ブランチとworktreeは保持されます。クリーンアップは行われません。後でユーザーが手動で処理します。

開發者詳情

檔案結構

📄 SKILL.md