cmd-fix-pr-chechers
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/fix-pr-chechers
/fix-pr-chechers
Agent skill wrapper for the Claude command .
/fix-pr-chechersWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Claude命令的Agent技能封装。
/fix-pr-chechers当原始命令文本引用、或命名参数时,从用户当前请求中映射这些参数。
{{INPUT}}$1Command Instructions
命令说明
Determine the current PR number and failing action name. Create a git worktree at for the PR branch (e.g. ).
.trees/pr-<number>-<action>.trees/pr-42-buildInspect failing GitHub Actions logs using and .
gh run listgh run view --log-failedFor each failure:
- Analyze error context and stack traces
- Fix the underlying issue in the worktree
- Commit with message referencing the failure
- Push to remote branch
- Poll status with (timeout 5 minutes)
gh run watch
If actions still fail, retrieve new logs and repeat (max 5 iterations total).
After 5 failed attempts, summarize remaining issues and exit.
Clean up the worktree on exit.
Run autonomously without approval checkpoints.
确定当前PR编号和失败的Action名称。为PR分支创建一个git worktree,路径为(例如)。
.trees/pr-<number>-<action>.trees/pr-42-build使用和检查失败的GitHub Actions日志。
gh run listgh run view --log-failed针对每个失败:
- 分析错误上下文和堆栈跟踪
- 在worktree中修复根本问题
- 提交并附上引用该失败的提交信息
- 推送到远程分支
- 使用轮询状态(超时5分钟)
gh run watch
如果Action仍然失败,获取新日志并重复操作(最多总共5次迭代)。
经过5次失败尝试后,总结剩余问题并退出。
退出时清理worktree。
无需审批检查点,自主运行。