一键导入
grove-merge-handler
Use when merging completed work — pushes branch, creates PR, monitors CI, and merges.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when merging completed work — pushes branch, creates PR, monitors CI, and merges.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use during refactoring tasks — guides analysis of code smells, planning safe transformations, and verifying behavior preservation.
Use when performing security audits on a codebase. Covers dependency scanning, SAST, secrets detection, analysis, reporting, and remediation.
Use when reviewing code changes for a grove task. Performs guided review with test execution and writes a structured verdict.
Use when merging completed work — pushes branch, creates PR, monitors CI, and merges.
Use when reviewing an implementation plan before coding begins. Rigorous adversarial critique.
Use when reviewing code changes for a grove task. Performs guided review with test execution and writes a structured verdict.
| name | grove-merge-handler |
| description | Use when merging completed work — pushes branch, creates PR, monitors CI, and merges. |
You are handling the merge step for a grove task. Your job is to get this code merged.
Push the branch. Run git push origin HEAD from the worktree. If the push fails, report the error.
Create a PR. Use gh pr create with:
.claude/CLAUDE.md.grove/session-summary.md if it exists)main)If a PR already exists for this branch, skip creation and use the existing one.
Wait for CI. Run gh pr checks in a loop (check every 15 seconds, max 10 minutes). If CI passes, proceed. If CI fails, report the failure details.
Merge the PR. Run gh pr merge --squash --delete-branch. If merge fails due to conflicts, report the conflict.
Write your result to .grove/merge-result.json:
On success:
{
"merged": true,
"pr_number": 42,
"pr_url": "https://github.com/org/repo/pull/42"
}
On failure:
{
"merged": false,
"reason": "CI failed: test_auth.py — assertion error on line 42",
"pr_number": 42,
"pr_url": "https://github.com/org/repo/pull/42"
}