From johnlindquist-claude
Manage GitHub Actions workflows using gh CLI. Use to check CI status, view run logs, analyze failures, and rerun workflows.
npx claudepluginhub joshuarweaver/cascade-ai-ml-engineering --plugin johnlindquist-claudeThis skill uses the workspace's default tool permissions.
Monitor and manage CI/CD workflows using the GitHub CLI.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Monitor and manage CI/CD workflows using the GitHub CLI.
Install GitHub CLI:
brew install gh
# or
curl -sS https://webi.sh/gh | sh
Authenticate:
gh auth login
# Current branch CI status
gh run list --branch $(git branch --show-current) --limit 5
# All recent runs
gh run list --limit 10
# Filter by workflow
gh run list --workflow "CI" --limit 5
# Get run details
gh run view <run-id>
# View with logs
gh run view <run-id> --log
# Failed jobs only
gh run view <run-id> --log-failed
# Exit codes for CI scripts
gh run view <run-id> --exit-status
# By branch
gh run list --branch main --limit 10
# By workflow name
gh run list --workflow "Build and Test" --limit 10
# By status
gh run list --status failure --limit 10
gh run list --status success --limit 10
gh run list --status in_progress --limit 10
# Combined filters
gh run list --branch main --workflow "CI" --status failure --limit 5
# Rerun entire workflow
gh run rerun <run-id>
# Rerun only failed jobs
gh run rerun <run-id> --failed
# Rerun specific job
gh run rerun <run-id> --job <job-id>
# Watch a run in progress
gh run watch <run-id>
# Watch and exit with run's exit code
gh run watch <run-id> --exit-status
# List artifacts from a run
gh run view <run-id> --json artifacts
# Download all artifacts
gh run download <run-id>
# Download specific artifact
gh run download <run-id> --name "artifact-name"
# Download to specific directory
gh run download <run-id> --dir ./artifacts
gh run cancel <run-id>
# List workflow files
gh workflow list
# View specific workflow
gh workflow view "CI"
# Enable/disable workflow
gh workflow enable "CI"
gh workflow disable "CI"
# Trigger workflow_dispatch
gh workflow run "CI"
# With inputs
gh workflow run "Deploy" -f environment=staging -f version=1.2.3
# On specific branch
gh workflow run "CI" --ref feature-branch
# JSON output for parsing
gh run list --json status,conclusion,name,headBranch,url
# Specific fields
gh run view <run-id> --json jobs,status,conclusion
# Is my branch passing?
gh run list --branch $(git branch --show-current) --limit 1 --json status,conclusion
# 1. Find the failing run
gh run list --branch main --status failure --limit 1
# 2. View failed logs
gh run view <run-id> --log-failed
# 3. After fixing, rerun
gh run rerun <run-id> --failed
# Watch deployment in progress
gh run watch <run-id>
# Get notified when done (macOS)
gh run watch <run-id> && osascript -e 'display notification "Deployment complete"'
# Rerun just the failed jobs
gh run rerun <run-id> --failed
# Ensure all checks pass before merging
gh run list --branch $(git branch --show-current) --json conclusion --jq '.[0].conclusion'
| Status | Meaning |
|---|---|
queued | Waiting to start |
in_progress | Currently running |
completed | Finished |
| Conclusion | Meaning |
|---|---|
success | All jobs passed |
failure | One or more jobs failed |
cancelled | Run was cancelled |
skipped | Run was skipped |
timed_out | Run exceeded time limit |
--log-failed - Only see relevant failure logs--failed first - Faster than full rerun