git-ci

CI/CD status queries for GitHub Actions (gh) and GitLab CI (glab). Check pipeline status, failing jobs, workflow runs, and merge readiness

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-ci" with this command: npx skills add dmythro/agent-skills/dmythro-agent-skills-git-ci

CI/CD Status Queries

Query CI/CD pipelines and check merge readiness across GitHub Actions and GitLab CI. All recipes use minimal field sets for token efficiency. Covers pipeline status, failing jobs, run logs, workflow management, and merge readiness assessment.

When to Use

  • Checking CI status -- "are checks passing?", "what's failing?", pipeline status
  • Watching CI runs -- wait for completion, fail-fast on errors
  • Debugging failures -- view logs for failing jobs, identify flaky tests
  • Assessing merge readiness -- all checks green, reviews approved, no conflicts
  • Listing workflow runs -- recent pipelines, specific workflow history
  • Configuring CI allowlists -- auto-approval patterns for read-only CI commands

Critical Rules

  1. Use gh pr checks (not gh run) for current-branch CI status. The pr checks subcommand maps directly to the PR's required status checks.
  2. Use glab ci status for current-branch CI in GitLab. It shows the pipeline for the current branch without needing a pipeline ID.
  3. Always use --json with gh to filter output fields. Full JSON output wastes tokens.

Provider Detection

git remote get-url origin
Remote URL containsProviderCLICI system
github.comGitHubghGitHub Actions
gitlab.com or self-hosted GitLabGitLabglabGitLab CI

If ambiguous or both present, ask the user.


CI Status (Current Branch)

GitHub:

gh pr checks --json name,state,conclusion,bucket

GitLab:

glab ci status

CI Status as JSON

GitHub:

gh pr checks --json name,state,conclusion,bucket

GitLab:

glab ci get

Watch Until Complete

GitHub:

gh pr checks --watch --fail-fast

GitLab:

glab ci status --live

Recent Pipeline/Workflow Runs

GitHub:

gh run list --json databaseId,displayTitle,status,conclusion,headBranch,event --limit 10

GitLab:

glab ci list

Specific Run Details

GitHub:

gh run view {run_id} --json jobs,status,conclusion,displayTitle

GitLab:

glab ci view {pipeline_id}

Run Logs

GitHub:

gh run view {run_id} --log-failed

GitLab:

glab ci trace {job_id}

Merge Readiness (Current Branch)

GitHub:

gh pr view --json mergeable,reviewDecision,statusCheckRollup,isDraft,mergeStateStatus

Fields:

  • mergeable -- MERGEABLE, CONFLICTING, or UNKNOWN
  • reviewDecision -- APPROVED, CHANGES_REQUESTED, REVIEW_REQUIRED, or empty
  • isDraft -- boolean
  • mergeStateStatus -- CLEAN, BLOCKED, BEHIND, DIRTY, UNSTABLE

GitLab:

glab mr view -F json | jq '{merge_status:.merge_status,conflicts:.has_conflicts,blocking:.blocking_discussions_resolved,draft:.draft}'

Variables and Secrets

GitHub:

gh variable list
gh secret list

GitLab:

glab variable list

CI Queries Reference

Reference: See references/ci-queries.md for advanced patterns: failing check extraction, required checks, workflow listing, cache management, rulesets.


Allowlist

Reference: See references/allowlist.md for tiered Bash(command:*) patterns covering all read-only CI operations -- safe to auto-approve in Claude Code settings.json or OpenCode config.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

bun-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

gh-cli-flow

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

bun-api

No summary provided by upstream source.

Repository SourceNeeds Review