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-chechers
.
When the original command text references
{{INPUT}}
,
$1
, or named arguments, map them from the user's current request.
Claude命令
/fix-pr-chechers
的Agent技能封装。
当原始命令文本引用
{{INPUT}}
$1
或命名参数时,从用户当前请求中映射这些参数。

Command Instructions

命令说明

Determine the current PR number and failing action name. Create a git worktree at
.trees/pr-<number>-<action>
for the PR branch (e.g.
.trees/pr-42-build
).
Inspect failing GitHub Actions logs using
gh run list
and
gh run view --log-failed
.
For each failure:
  1. Analyze error context and stack traces
  2. Fix the underlying issue in the worktree
  3. Commit with message referencing the failure
  4. Push to remote branch
  5. Poll status with
    gh run watch
    (timeout 5 minutes)
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
)。
使用
gh run list
gh run view --log-failed
检查失败的GitHub Actions日志。
针对每个失败:
  1. 分析错误上下文和堆栈跟踪
  2. 在worktree中修复根本问题
  3. 提交并附上引用该失败的提交信息
  4. 推送到远程分支
  5. 使用
    gh run watch
    轮询状态(超时5分钟)
如果Action仍然失败,获取新日志并重复操作(最多总共5次迭代)。
经过5次失败尝试后,总结剩余问题并退出。
退出时清理worktree。
无需审批检查点,自主运行。