analyze_repo
Run a CI health check on a GitHub repo. It lints workflows, analyzes run history for flaky jobs and wasted spend, checks caches/artifacts, and gives a 0-100 score with ranked dollar-quantified fixes.
Instructions
Full CI health report for a GitHub repository: static workflow lint, run-history analysis (success/failure rates, flaky jobs, retry waste, superseded PR runs, queue times, duration trends, zombie crons, PR feedback time), cache and artifact checkups, a 0-100 health score, and a ranked, dollar-quantified top-wins list. Makes ~100+ GitHub API calls and typically takes 10-30 seconds. Optionally set flaky_logs to also read N flaky-failure job logs and name the flaky tests (needs a token), or cache_logs to measure the real cache hit rate from N job logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository as owner/name, e.g. cli/cli | |
| runs | No | Number of recent runs to sample (default 100) | |
| workflow | No | Scope the history analysis to one workflow (file name like ci.yml, or display name); no health score in scoped mode | |
| cache_logs | No | Sample N job logs to measure the real cache hit/miss rate (1 API request per log; needs a token) | |
| flaky_logs | No | Read N flaky-failure job logs to name the flaky tests (1 API request per log; needs a token) |