Skip to content
Skills Library
DevOps & cloud · Analysis

analyze-github-action-logs

/analyze-github-action-logs

Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements. Use when asked to "analyze workflow logs", "review action runs", or "analyze GitHub Actions".

Repository
astro ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements. Use when asked to "analyze workflow logs", "review action runs", or "analyze GitHub Actions".

Triggers from the description

analyze workflow logsreview action runsanalyze GitHub Actions
Original author description

Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements. Use when asked to "analyze workflow logs", "review action runs", or "analyze GitHub Actions".

How it works

  1. Input
  2. Step 1: List Recent Runs
  3. Step 2: Fetch Logs
  4. Step 3: Identify Step/Skill Boundaries
  5. Step 4: Analyze Each Step (Use Subagents)
  6. Step 5: Consolidate Report
  7. Output
Original SKILL.md headings · 111 lines, 746 words
SKILL.md preview
---
name: analyze-github-action-logs
description: Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements. Use when asked to "analyze workflow logs", "review action runs", or "analyze GitHub Actions".
compatibility: Requires gh CLI and access to the GitHub repository.
---

# Analyze GitHub Action Logs

Fetch and analyze recent GitHub Actions runs for a given workflow. Review agent/step performance, identify wasted effort and mistakes, and produce a report with actionable improvements.

## Input

You need:

- **`workflow`** (required) — The workflow file name or ID (e.g., `issue-triage.yml`, `deploy.yml`).
- **`repo`** (optional) — The GitHub repository in `OWNER/REPO` format. Defaults to `withastro/astro`.
- **`count`** (optional) — Number of recent completed runs to analyze. Defaults to `5`.

## Step 1: List Recent Runs

Fetch the most recent completed runs for the workflow. Filter by `--status=completed`:

```bash
gh run list --workflow=<workflow> -R <repo> --status=completed -L <count>
```

Present the list to orient yourself: run IDs, titles, status (success/failure), and duration. Pick the runs to analyze — prefer a mix of successes and failures if available, and prefer runs that exercised more steps (longer runs tend to go through more stages, while shorter runs may exit early).

## Step 2: Fetch Logs

For each run you want to analyze, save the full log to a temp file:

```bash
gh run view <run_id> -R <repo> --log > /tmp/actions-run-<run_id>.log
```

## Step 3: Identify Step/Skill Boundaries

Search each log file for markers that indicate where each step or skill starts and ends. The markers depend on the workflow — look for patterns like:

- **Flue skill markers**: `[flue] skill("..."): starting` / `completed`
- **GitHub Actions step markers**: Step name headers in the log output
- **Custom markers**: Any `START`/`END` or similar delimiters the workflow uses

```bash
grep -n "skill(\|step\|START\|END\|starting\|completed" /tmp/actions-run-<run_id>.log | head -50
```

From this, determine which line ranges correspond to each step/skill. Also find any result markers:

```bash
grep -n "RESULT_START\|RESULT_END\|extractResult" /tmp/actions-run-<run_id>.log
```

Note: Some log files may contain binary/null bytes. Use `grep -a` if needed.

## Step 4: Analyze Each Step (Use Subagents)

For each step/skill that ran, **launch a subagent** to analyze that section's log. This is critical to avoid polluting your context with thousands of log lines.

For each subagent, provide:

1. The log file path and the line range for that step
2. If skill instruction files exist for the workflow, tell the subagent to read them first for context
3. The run title/context so the subagent understands what was being done
4. The analysis criteria below

### Analysis Criteria

Tell each subagent to evaluate:

1. **Correctness** — Was the step's final result/verdict correct?
2. **Efficiency** — How long did it take? What's a reasonable baseline? Where was time wasted?
3. **Mistakes** — Wrong tool calls, failed commands retried without changes, unnecessary rebuilds, etc.
4. **Instruction compliance** — If skill instructions exist, did the agent follow them? Where did it deviate?
5. **Scope creep** — Did the agent do work that belongs in a different step?
6. **Suggestions** — Specific, actionable changes that would prevent the issues found.

Tell each subagent to return a structured response with: Summary, Time Analysis, Issues Found (with estimated time wasted for each), and Suggestions for Improvement.

## Step 5: Consolidate Report

After all subagents return, synthesize their findings into a single report. Structure it as:

### Per-Run Summary Table

For each run analyzed, include a table:

| Step/Skill | Time | Result | Time Wasted | Top Issue |
| ---------- | ---- | ------ | ----------- | --------- |

### Cross-Cutting Patterns

Identify issues that appeared across multiple runs or multiple steps. These are the highest-value improvements. Common patterns to look for:

- **TodoWrite abuse** — Agent wasting time on task list management during automated runs
- **Server management failures** — Port conflicts, failed process kills, stale log files
- **Tool misuse** — Using `curl` instead of `gh`, `jq` not found, etc.
- **Scope creep** — One step doing work that belongs in another
- **Unnecessary rebuilds** — Building packages multiple times without changes
- **Test timeouts** — Running slow E2E/Playwright tests that time out
- **Instruction violations** — Agent doing something the instructions explicitly forbid
- **Redundant work** — Re-reading files, re-running searches, re-installing dependencies

### Prioritized Recommendations

Rank your improvement suggestions by estimated time savings across all runs. For each recommendation:

1. **What to change** — Which file(s) to edit and what to add/modify
2. **Why** — What pattern it addresses, with evidence from the runs
3. **Estimated impact** — How much time it would save per run

## Output

Present the full consolidated report. Do NOT edit any workflow or skill files — only report findings and recommendations. The user will decide which changes to apply.
Files in this package (2)
  • SKILL.md 5 KB
  • evals/evals.json 7 KB

Versions

The database has no other skills named analyze-github-action-logs.

Database snapshot: 13.11.2026 · package version c312529c37c1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100investigate-ci
    Investigates GitHub Actions workflow failures for any repo. Fetches recent runs, identifies failures, extracts error logs, diagnoses root causes, and suggests fixes. Use when a deploy or CI workflow fails and you need to understand why.
  • 90github:actions-monitor
    Monitor GitHub Actions runs and extract failure diagnostics. Use when watching PR CI, branch builds, or specific workflow runs.
  • 100github-actions-style
    GitHub Actions workflow and composite action conventions for MLflow. Use when writing, modifying, or reviewing workflows in .github/workflows/ or actions in .github/actions/ in this repository.
  • 100github-workflows
    Work with GitHub Actions CI/CD workflows - read live syntax, monitor runs, and debug failures. Use when writing, running, or debugging GitHub Actions workflows.
  • 100github-workflows
    Work with GitHub Actions CI/CD workflows - read live syntax, monitor runs, and debug failures. Use when writing, running, or debugging GitHub Actions workflows.
  • 100gh-debug
    Debug GitHub Actions build failures by fetching and analyzing workflow logs. Use when CI/CD pipelines fail and you need to identify the root cause.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.