Actions monitor

From bendrucker/claude · View interactive version

Actions monitor is an AI agent skill from the GitHub repository bendrucker/claude. Monitor GitHub Actions runs and extract failure diagnostics. Use when watching PR CI, branch builds, or specific workflow runs.

How to use this skill

Skill file

Actions Monitor

Watch a PR, branch, or workflow run until it reaches a terminal event, and diagnose each failure. The watch script tracks state and deduplicates events. The monitor is done when the script exits or you stop it with TaskStop, with every failing event diagnosed along the way.

Target

$ARGUMENTS selects the mode:

Branch and run-id mode read the repo from git remote get-url origin. Pass --repo <owner/repo> to override it.

Start

Run the script under Monitor with persistent: true and one mode flag:

bun ${CLAUDE_SKILL_DIR}/scripts/watch.ts --pr <pr-url>
bun ${CLAUDE_SKILL_DIR}/scripts/watch.ts --branch <name> [--repo <owner/repo>]
bun ${CLAUDE_SKILL_DIR}/scripts/watch.ts --run-id <id> [--repo <owner/repo>]

Optional flags are --interval <seconds>, --max-minutes <N>, --queued-timeout <minutes>, and --api-error-threshold <N>. Without --interval, PR and branch mode derive the interval from recent run durations, and run-id mode polls every 180s.

Events

The script prints one JSON object per line:

The script exits on status:success, pr-closed, merged, and max-time-reached. Run-id mode also exits on status:failing. PR and branch mode keep watching after failing, because a new push or run can follow. A target already green at startup emits one status:success and exits.

Reactions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.