← スキル一覧に戻る

finish-worktree
by Async-IO
MCP/A2A/Rest Fitness Intelligence platform.
⭐ 16🍴 2📅 2026年1月24日
SKILL.md
name: finish-worktree description: Completes feature branch work by rebasing, pushing, monitoring CI, and squash merging to main user-invocable: true
Finish Worktree Skill
CLAUDE: When this skill is invoked with /finish-worktree, immediately run:
./.claude/skills/finish-worktree.sh
Then guide the user through CI monitoring and merge-and-cleanup.
Purpose
Completes feature branch work with proper rebase, CI validation, and squash merge back to main.
Usage
/finish-worktree
Workflow Steps
Step 1: Rebase onto main
./.claude/skills/finish-worktree.sh
This script:
- Fetches latest from origin/main
- Rebases your branch onto main
- Runs local validation (fmt, architectural, clippy)
- Pushes with
--force-with-lease
Step 2: Monitor CI
Check GitHub Actions:
https://github.com/Async-IO/pierre_mcp_server/actions
Wait for all checks to pass (green).
Step 3: If CI Fails
Fix the issues locally, then:
# Make fixes
cargo fmt
cargo clippy --all-targets -- -D warnings -D clippy::all -D clippy::pedantic -D clippy::nursery
# Amend or add commit
git add .
git commit --amend --no-edit # or new commit
# Push again
git push --force-with-lease origin <branch-name>
Repeat until CI is green.
Step 4: Squash Merge and Cleanup
Once CI is green, run from the main worktree:
cd /path/to/main/worktree
./.claude/skills/merge-and-cleanup.sh
No arguments needed - branch info is saved by finish-worktree.sh.
This script:
- Pulls latest main
- Squash merges the feature branch
- Prompts for commit message
- Pushes main
- Removes the worktree
- Deletes the feature branch
Complete Example Session
# On feature branch in worktree
./.claude/skills/finish-worktree.sh
# Wait for CI...
# If red, fix and push again
# Once green, go to main worktree:
cd /path/to/main/worktree
./.claude/skills/merge-and-cleanup.sh
Related Skills
create-worktree- Creates worktree with environment setup
スコア
総合スコア
65/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

