en un clic
watch-merge-pr
Watch PR checks and merge when successful
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Watch PR checks and merge when successful
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
全量分析现有代码仓库,逆向生成为 Codewave (LCAP) 规范模板,输出 spec.md + menus.md + TypeScript 实体/枚举文件。
分析代码仓库,自动识别功能模块并生成编号规格说明文档。多智能体架构:研究→规划→写作。
在任务生成后对 spec.md、plan.md 和 tasks.md 执行非破坏性的跨产物一致性和质量分析。
根据用户需求为当前功能生成自定义检查清单。
通过提出最多 5 个高度针对性的澄清问题来识别当前功能规格中未充分说明的区域,并将答案编码回规格中。
创建或更新项目宪章以定义项目的核心原则和不可协商规则。
Basé sur la classification professionnelle SOC
| name | watch-merge-pr |
| description | Watch PR checks and merge when successful |
| disable-model-invocation | true |
| allowed-tools | ["Bash(gh pr checks*)","Bash(gh pr merge*)","Bash(gh run list*)","Bash(gh run view*)"] |
gh pr view --json headRefName,state --jq '{branch: .headRefName, state: .state}' 2>/dev/null || echo '{}'Watch the current PR checks and merge it with rebase once they pass.
gh pr checks --watch | tail -5 (if no checks configured, exits immediately)gh run list --status failure -L 1 --json databaseId --jq '.[0].databaseId'
b. Download the failed log to a temp file (single network request, reusable for analysis):
gh run view <run-id> --log-failed > /tmp/gh-failed-log.txt 2>&1
c. Use the Grep tool to search /tmp/gh-failed-log.txt for failure indicators (pattern: FAIL|Error|failed|ELIFECYCLE|exit code, case-insensitive)
d. If more context is needed, use the Grep tool with context lines (-C 5) on the same file
e. Fix the issue in the codebase
f. Commit and push: git add -A && git commit && git push (use interactive commit for a meaningful message)
g. Go back to step 1 to re-watchgh pr merge --rebase (do NOT add --delete-branch, it fails in worktrees)IMPORTANT: Sequential bash commands that depend on each other (e.g., gh pr checks --watch → gh pr merge --rebase) MUST NOT be called as separate parallel tool calls in one response. Instead, chain them with && in a single Bash tool call.
Execute the commands. For log analysis (step 2c-d), use the Grep and Read tools on the downloaded log file. Do not send any other text or messages besides these tool calls.