---
name: analyzing-github-ci-performance
description: >-
  Computes a CI/CD metrics table from raw GitHub Actions records for one repository over the last 30 days, including failure rates and developer waiting time. Use for historical CI performance questions or the first-experience repository demo. For currently failing checks, use reporting-github-ci-failures.
getting_started: Analyze & improve a repo (recommended)
demo_order: 1
metadata:
  owner: Vincent
  last_changed_by: Vincent
  last_changed_at: 2026-10-04
  usecases:
    - For repository maintainers analyzing CI reliability over the previous 30 days.
    - For engineering teams assessing estimated developer waiting time and failure patterns.
    - For new users selecting a local or example repository for a CI performance demonstration.
  requires:
    - GitHub authentication with read access to the repository's Actions history.
    - The analyze_github_ci_reliability and scan_local_git_workspace tools.
    - For local discovery, a local Git checkout; the example repository does not require one.
  version: '1.24'
title: analyzing-github-ci-performance
canonical_url: https://skilld.dev/gh/tracer-cloud/opensre/a-analyzing-github-ci-performance
last_updated: 2026-11-20T14:16:11.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/benchmarks.md](https://skilld.dev/api/skills-raw/tracer-cloud/opensre/a-analyzing-github-ci-performance/references/benchmarks.md), [references/metrics.md](https://skilld.dev/api/skills-raw/tracer-cloud/opensre/a-analyzing-github-ci-performance/references/metrics.md), [test_workflow.py](https://skilld.dev/api/skills-raw/tracer-cloud/opensre/a-analyzing-github-ci-performance/test_workflow.py).
>
> If the user asked to install this Skill, run `npx skilld install tracer-cloud/opensre/a-analyzing-github-ci-performance`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/a-analyzing-github-ci-performance`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/tracer-cloud/opensre/a-analyzing-github-ci-performance) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/a-analyzing-github-ci-performance`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/a-analyzing-github-ci-performance --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/a-analyzing-github-ci-performance --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# CI/CD analytics

Give the user a CI/CD reliability report for one repository from raw GitHub Actions records, including an estimate of CI waiting time on merged pull requests.

Use a 30-day window unless the request specifies another period.

## Plan

After reading this skill, use `update_plan` to create or revise the live
CI/CD Reliability Progress plan using the five numbered workflow headings
below as its steps. Mark a step `in_progress` or `completed` in the same response as
that step's tool call.

Keep showing the table and offering the next step as separate plan items; update statuses as each step's completion condition is met.

Mark step 4 with `deliverable: true` in every `update_plan` call: its work is
the reply itself, and without that flag the host treats a text-only reply
before the plan is settled as a premature stop and does not show it.

- [ ] Step 1. Scan local repositories with scan_local_git_workspace.
- [ ] Step 2. Select a repository using ask_user_choice.
- [ ] Step 3. Collect the 30-day metrics with analyze_github_ci_reliability and prepare the metrics table from its result.
- [ ] Step 4. Show the metrics table as a text-only reply.
- [ ] Step 5. Use ask_user_choice to offer scheduling, Slack setup, or finish.

## Workflow

### 1. Scan this machine

Call `scan_local_git_workspace()` with no arguments.

Complete when `scan_local_git_workspace` has returned in this turn, even
with an empty result; the example repository remains available in step 2.

### 2. Pick the repository

Call `ask_user_choice` with the title `Which repository should I analyze?`.
Offer up to 5 scanned repositories that have GitHub Actions workflows
as `<owner/repo>`, then `Tracer-Cloud/opensre` as an example option.
Offer the picker even when only one repository was found; a single scan
result is not a selection. When no scanned repository has GitHub Actions
workflows, offer up to 3 of the most active ones as `<name> (local insights)`
before the example option.

End the turn after calling `ask_user_choice`; the answer arrives as the
next user message.

Complete when the user's answer to `ask_user_choice` has arrived as a
message. Resume at step 3 with that repository. A `(local insights)` answer is
not a GitHub repository: call `skill_view(name="analyzing-local-repositories")`
and follow that skill for it instead of steps 3 to 5.

### 3. Collect and compute the metrics

Call `analyze_github_ci_reliability(owner="<owner>", repo="<repo>", days=30)`.
It reads the whole window of Actions history (default-branch runs, PR runs,
rerun attempts, merged PRs), computes every metric in the report, and returns
figures only: `headline`, `key_results`, `comparison_figures` (the repository's
column of the comparison table), `benchmarks` (the peer columns),
`coverage_notices`, and the raw counts. It renders nothing; the report below
is yours to write. Do not paginate the REST API or run `execute_python_code`
yourself.

If the tool reports a missing or rejected GitHub connection, tell the user to connect or reconnect GitHub in the OpenSRE app using the setup URL supplied by the host or tool. End the turn without retrying the tool or invoking GitHub setup through `slash_invoke`. Resume the same repository analysis after the app connection is refreshed.

If GitHub could not be read for any other reason, so the analysis returned no `key_results`, do not show an empty table: say its blocker in one line, then call `skill_view(name="analyzing-local-repositories")` and follow that skill for the same repository instead of steps 4 and 5.

Metric definitions live in [Metrics](https://skilld.dev/api/skills-raw/tracer-cloud/opensre/a-analyzing-github-ci-performance/references/metrics.md)
(`skill_view(name="analyzing-github-ci-performance", reference="metrics")`); read it only
when the user asks how a figure is defined.

#### Prepare the metrics table as Markdown text

Take the peer columns from the analysis result's `benchmarks`, measured on
`benchmarks_measured_on` over 30 days, and caption the table with that date
and window: they are historical context, not a ranking. Do not call
`skill_view` for them. Check each table cell against the analysis result.

If a cell has no source in the analysis result, return to
the call above: reread `coverage_notices` for the named gap, and if the analysis did
not return success, run it again once. A cell still without a source is
`n/a` with the gap stated under the table; never estimate it.

Prepare the report below for delivery in step 4.

#### Report format

Identify the repository, default branch, UTC window, and coverage. Render
this table as text, replacing every placeholder with a calculated value or a
benchmark from the reference:

```
Developer impact:
- xx developer-hours spent waiting on CI across xx developers.
- Most affected developer: up to xx h/week waiting on CI.
- xx% of PR runs failed, creating substantial retry and investigation overhead.

Compared with langchain-ai/langchain and anomalyco/opencode:

| Metric | <owner/repo> | langchain-ai/langchain | anomalyco/opencode |
|---|---:|---:|---:|
| Red time on main | <hours and % of window> | <benchmark> | <benchmark> |
| Mean time to green | <hours> | <benchmark> | <benchmark> |
| CI-caused failure rate | <% of PR workflow runs> | <benchmark> | <benchmark> |
| Slowest normal run | <minutes and workflow> | <benchmark> | <benchmark> |
| PR failure rate | <% of PR workflow runs> | <benchmark> | <benchmark> |

What insights stand out:
- CI-caused failures account for x.x% of all PR runs, roughly x.x-x.x× higher than the comparison repositories.
```

Complete when `analyze_github_ci_reliability` has returned in this turn,
either with `key_results` or with a named blocker, and every table cell has
a source in its result or is `n/a` with its gap stated.

### 4. Show the metrics table

Reply with the step 3 report as Markdown text and nothing else; call no
tool in that message. The host paints that reply and then continues the
plan with step 5 — do not repeat the report afterwards.

Complete when the assistant reply containing the table has been shown.

### 5. Offer the next step

Call `ask_user_choice` with the title `See a failing check get fixed?`, `allow_custom` false, and this note: `A private demo repository, so the one in the report stays untouched. You watch one check go from red to green.`

Options:
- Watch it fix a failing PR in a demo repo (under 5 min)
- Run the same fix in OpenSRE managed service and close your laptop
- Not now

Complete when the `ask_user_choice` call for this menu has returned in this turn. The user's answer arrives in the next turn. Each branch except `Stop at the report` is owned by a sibling skill: load it with `skill_view` and follow its plan; do not reimplement its steps here.

- **Watch it fix a failing PR in a demo repo (under 5 min):** call `skill_view(name="scheduling-github-ci-repairs")`
  and follow that skill. The repository is already chosen and analyzed in
  this session, so its plan omits the scan and repository-pick steps and
  its analyze step reuses today's saved report.
- **Run the same fix in OpenSRE managed service and close your laptop:** call `skill_view(name="delegating-github-ci-repairs")`
  and follow that skill.
- **Not now:** acknowledge in one line and conclude.