# Scheduled Workflow Triage for GitHub Actions

> Find out why a GitHub Actions cron job ran late, skipped a slot, went green without doing its work, or did it twice. Includes two read-only scripts and tested fixes.

Scheduled Workflow Triage for GitHub Actions is a paid AI agent skill on Agensi by Bradley Cadd, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Bradley Cadd](https://www.agensi.io/creators/bradley-cadd)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scheduled-workflow-triage-for-github-actions
- Tags: devops, github-actions, ci-cd, python, automation

## About this skill

Scheduled workflows fail in ways ordinary CI does not. A run can start hours after its cron time, never start, or finish green having done none of its real work. The run list looks healthy the whole time.

This skill gives your agent a fixed order of checks for those cases, and the tools to do the counting properly.

### What it does

1. Pins down the complaint: late, missing, did nothing, did too much, or failing.
2. Compares the cron schedule with the runs GitHub actually started. You get, per cron line, the slots expected, the slots that got a run, how late each run was and which slots were missed.
3. Counts the work that was really done, per run and per day, from the job's own output lines. A plain log search also matches the echoed source of your script, which makes a job that did nothing look as if it worked. The script leaves those lines out and tells you how many there were.
4. Isolates a failing step, with a list of causes that only appear on the schedule trigger.
5. Proposes the smallest fix, says what it will not fix, and verifies against a real scheduled run.

### What is in the package

- `SKILL.md`: the six-step procedure.
- `scripts/schedule_report.py`: schedule against actual runs, with delays and missed slots.
- `scripts/log_count.py`: output-only marker counts per run and per UTC day.
- `references/failure-patterns.md`: 23 patterns with symptom, cause, check and fix. Each is marked as documented by GitHub or observed in production.
- `references/hardening.md`: nine workflow designs that stay correct when runs are late, dropped or repeated, with YAML to copy and a checklist.

### Requirements

- GitHub CLI (`gh`), signed in with read access to the repository.
- Python 3.8 or later. Standard library only, nothing to install.
- Tested on Windows. The scripts use nothing specific to it, so macOS and Linux should work.

### Safety

- Both scripts are read-only. They run `gh workflow view`, `gh run list` and `gh run view --log`, which contact GitHub. They make no other network calls, write no files and read no environment variables.
- The skill tells the agent to ask before anything that changes state (re-running, dispatching, editing workflows, pushing).

### Limits

- GitHub Actions only, GitHub-hosted schedules. It does not diagnose self-hosted runner outages.
- It cannot make GitHub's scheduler punctual. It shows you the delay and how to make it harmless.
- Exact delays need the run title to name its cron line (one line of YAML, included). Without it, delays are minimum estimates.

## Requires

- Python 3.8+
- GitHub CLI (gh), signed in

## Known limitations

Requires GitHub CLI (gh) authenticated. Only parses logs from the last 90 days. YAML anchors or complex reusable workflow schedules may require manual input.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Scheduled Workflow Triage for GitHub Actions skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What problems does it find that the GitHub run list does not show?

Runs that finished green without doing their work, and scheduled runs that GitHub started late or never started. It reports both with run ids and UTC times.

### What is in the package?

SKILL.md with the six-step procedure, two Python scripts (schedule_report.py and log_count.py), and two reference files: failure-patterns.md with 23 patterns and hardening.md with nine workflow designs.

### What do I need to run it?

Python 3.8 or later and the GitHub CLI (gh), signed in with read access to the repository. The scripts use the standard library only, so there is nothing to install. Tested on Windows.

### Why not just ask my agent to read the logs?

A plain search of a run log also matches the source of each step, which GitHub echoes before running it. That makes a run that did nothing look as if it worked. log_count.py counts output lines only and reports how many echoed lines it left out.

### Does it work with self-hosted runners?

It reads run history and logs the same way for any runner, but it does not diagnose runner outages or connectivity problems.

### My cron job has stopped running completely. Will it help?

Yes. The skill checks whether the workflow was disabled (GitHub switches schedules off in public repositories after 60 days without activity), whether the cron line is on the default branch, and whether runs were dropped under load.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
