원클릭으로
dart-sdk-cleanup-bead
Post-merge cleanup protocol for Dart SDK Bazel thread task worktrees, beads issue closing, and remote sync.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Post-merge cleanup protocol for Dart SDK Bazel thread task worktrees, beads issue closing, and remote sync.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Runs pre-flight checks and deep code reviews on local commits of a feature branch before push or PR creation.
MANDATORY skill when working on Bazel thread tasks (sdk-5m4.*, etc.), updating task status in beads, managing PR alignment lifecycle, or syncing the Dolt task DB.
Orchestrates long-running or recurring patrols of the Dart SDK Bazel test completion matrix. Discovers test targets, runs automated watchdog timers (default 5m/300s), bypasses blocking test suites or configs, regenerates canonical completion reports (TEST_COMPLETION_MATRIX.md), and synchronizes findings with the Beads issue backlog. Use when the user asks to run all Bazel tests, check test completion matrix health, audit migration test gaps, or leave overnight test patrols running.
Import, test, and export upstream Gerrit CLs or GitHub PRs in the Bazel workspace.
| name | dart-sdk-cleanup-bead |
| description | Post-merge cleanup protocol for Dart SDK Bazel thread task worktrees, beads issue closing, and remote sync. |
dart-sdk-cleanup-bead)This skill defines the standard protocol for cleaning up task worktrees, closing beads issues, and syncing local main with remote after a PR has been merged on the Bazel thread (bazel).
flowchart TD
A["PR Merged on Remote"] --> B["1. Go to Main Bazel Checkout<br/>cd bazel/main/sdk"]
B --> C["2. Pull Latest & Verify PR Landed<br/>git pull origin main"]
C --> D["3. Cleanup Worktree & Local Branch<br/>.agents/scripts/rmagenttree bazel task-name<br/>git branch -d branch-name"]
D --> E["4. Update Bead<br/>bd close bead-id"]
E --> F["5. Interactive Authorization<br/>ask_question: Push main branch to origin?"]
F -->|"Approved"| G["git push origin main"]
F -->|"Declined"| H["Keep local commit unpushed"]
Navigate to the primary persistent main checkout for the bazel thread:
cd /usr/local/google/home/kevmoo/github/dart-sdk/bazel/main/sdk
Pull the latest changes from the primary remote origin/main to verify the PR commit has landed:
git pull origin main
Confirm git log -n 5 contains the merged PR commit.
Reclaim disk space by deleting the task sandbox worktree and local branch:
# Remove the sandbox worktree
.agents/scripts/rmagenttree bazel <task-name>
# Delete the local feature branch (if it exists)
git branch -d <branch-name>
Close the corresponding bead issue in the local database:
# Close the bead
bd close <bead-id>
ask_questionUse ask_question to ask the user for authorization to push the local commit and sync Dolt remote:
(Recommended) Yes, push commit to origin/main and sync Dolt remoteNo, keep local commit unpushed for nowIf approved, run:
git push origin main
bd dolt push