More screenshots

    Works with the AI Agents you already use

    Scheduled Workflow Triage for GitHub Actions

    by Bradley Cadd

    1

    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.

    $10

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Scheduled Workflow Triage for GitHub Actions

    Scheduled Workflow Triage for GitHub Actions

    Example session with this skill installed

    My scheduled publish workflow (publish.yml in acme/storefront) seems to run at odd times, and I'm not sure the recent runs actually published anything. Can you check?

    • Read your context and instructions
    • Compiled the scheduled workflow triage

    Summary

    Your three cron lines started hours late every day this week (median delays of 4h49m to 8h19m), and none was missed. The last 12 runs were all green, but only 4 of them published anything. Times are UTC.

    Schedule against actual runs

    From schedule_report.py --repo acme/storefront --workflow publish.yml --days 7:

    Cron lineSlotsWith a runMissedMedian delayWorst
    47 10 * * *7708h19m9h53m
    47 16 * * *8706h22m7h43m
    7 23 * * *7704h49m5h54m
    • Slot 10:47 on the 16th started at 20:40 (run 43952288926), 9h53m late.
    • Slot 16:47 on the 16th started at 00:30 on the 17th (run 43988141925).
    • The newest 16:47 slot is too recent to judge.
    • 8 runs started on a later UTC day than their slot.

    The run titles name their cron line, so these delays are exact.

    Work really done in the last 12 runs

    From log_count.py --repo acme/storefront --workflow publish.yml --limit 12 --pattern "published \[\w+\]: ":

    TriggerRunsRuns that did work
    workflow_dispatch84
    schedule40
    • 4 output lines matched: 1 on the 19th and 3 on the 20th, in runs 44605950883, 44708487470, 44755744563 and 44808959110.
    • 0 matching lines were echoed step source, so a plain search of these logs would have given the same count.

    Cause

    Late starts: GitHub delays scheduled runs under load. This is documented behaviour, confirmed here by the delay column.

    Green with no work: expected for most runs. The log of scheduled run 44796675451 has a line starting DAILY CAP: 2 went live today UTC and ending cap 3, paced target by now 2 -> this run may put 0 live. Nothing was owed when it ran.

    Proposed fix

    No change is needed for correctness. The workflow works out what is still owed on each run, so late runs are harmless.

    One risk: the 16:47 and 23:07 slots regularly start after midnight UTC, so anything in those runs keyed to "today" sees the next day. The cap line shows the job counts what went live from the system it publishes to, which is the right design. Keep any new per-day logic on that count and not on the run date.

    What this does not fix

    No workflow change makes GitHub start cron runs on time. If the job must run to the hour, use an outside timer that calls the workflow_dispatch API and keep the cron lines as backup (see references/hardening.md, note 2).

    Next steps

    • Nothing needs changing now.
    • After the next scheduled slot, I re-run the report to confirm the too-recent slot got a run.

    Connects securely to your tools. The creator never sees your data.

    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 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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 14 days ago

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

    Permissions

    Terminal / Shell
    Network Access
    Read Files

    The two scripts run the GitHub CLI (gh workflow view, gh run list, gh run view --log) to read workflow files, run history and logs from GitHub. That is the only network use. They are read-only: they write no files, change nothing on GitHub and read no environment variables.

    Listed14 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

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

    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.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.