org-ci-health
CI Health Check
Scan CI status across repos in an org.
Run from ~/code/{org}/ or pass the org name as an argument.
Helper script
A pre-built script at ~/.claude/scripts/org-ci-health.sh collects all CI data in one pass.
Run it first to avoid spending tokens on individual gh calls.
~/.claude/scripts/org-ci-health.sh <org-name> > /tmp/org-ci-health.json
If the script is missing or not executable, flag this to the user and stop.
The script outputs a JSON array with per-repo entries containing:
repo,gh_org,has_workflowsrecent_runs(last 5 CI runs on main with status/conclusion)actions_used(list ofuses:action references from workflows)
Phase 1: Analyse script output
Parse the JSON and flag:
- Failing: latest main CI conclusion is not "success"
- Stale: no CI run in 30+ days
- No CI:
has_workflowsis false
Phase 2: Check workflow versions
From actions_used, flag:
- Actions using deprecated versions (e.g.
actions/checkout@v3whenv4exists) - Actions pinned to branches instead of tags
- Outdated
actions/setup-rorjulia-actions/setup-julia
Phase 3: Check for common issues
- Workflows using deprecated
set-outputorsave-statecommands - Missing
permissions:blocks - Workflows that run on
pushto all branches (should be limited) - R packages missing
R-CMD-checkworkflow - Julia packages missing CI workflow
Phase 4: Report
Present a dashboard:
| Repo | Main CI | Last run | Actions up to date | Issues |
|---|
Then list specific issues grouped by repo.
Phase 5: Fix (with confirmation)
For fixable issues (action version bumps, workflow updates):
- Create a worktree branch
- Apply the fix
- Create a PR
Use a team if more than 3 repos need fixes.
Auto-Exit When Standalone
IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.
More from seabbs/skills
academic-writing-standards
Expert knowledge of academic writing standards for peer-reviewed papers, including citation integrity, style compliance, clarity, and scientific writing best practices. Use when reviewing or editing academic manuscripts, papers, or research documentation.
55paper-summary
Summarise an academic paper from URL, DOI, or file path
7commit
Create a well-structured commit with conventional format and proper git identity
6preprint-search
Search for new preprints in infectious disease modelling from arXiv, medRxiv, and bioRxiv
6issue-summary
Summarise a GitHub issue conversation with focus on the last message
6repo-activity
Analyse GitHub repository activity including issues, PRs, contributors, and engagement
5