Agent skill

CI CD

by babarot in babarot/gh-infra

CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows.

MITAuto-check passedDevOps & Cloud

Install CI CD

skills CLI
$ npx skills add babarot/gh-infra --skill ci-cd -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install babarot/gh-infra ci-cd --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/babarot/gh-infra.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ci-cd .claude/skills/ci-cd && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ci-cd
GitHub stars
136
Token cost
~482 tokens
SKILL.md length
200 words
Files
3 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows.

  • Tasks that involve CI/CD
  • SKILL.md covers Choose A Pattern, Common Building Blocks, Authentication and Important Constraints, plus 1 more section
  • Calls gh; needs GITHUB_TOKEN and GH_INFRA_TOKEN
  • Tasks that involve GitOps

What it does

CI CD is an agent skill from babarot/gh-infra. CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows.

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/central.md` and `references/self-managed.md`).

It sits in DevOps & Cloud, covering CI/CD, GitOps and Third-party API integration. It works with GitHub Actions and GitHub. The repository describes itself as: Declarative GitHub infrastructure management via YAML. The licence is MIT.

When your agent uses it

  • Tasks that involve CI/CD
  • Tasks that involve GitOps
  • Tasks that involve Third-party API integration

Example prompts

  • “/ci-cd”

Requirements

  • A credential in GITHUB_TOKEN
  • A credential in GH_INFRA_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit 7e6443a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITHUB_TOKEN
    • GH_INFRA_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CI CD loads about 482 tokens when it runs, and up to ~908 if it reads all its reference files. Until then it costs about 48 tokens; SKILL.md has 200 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~482
With references · SKILL.md plus every file in references/, read only if the agent opens them
~908

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from babarot/gh-infra at commit 7e6443a, republished under its MIT licence (© babarot). 200 words, ~482 tokens.

Download SKILL.mdSave it as .claude/skills/ci-cd/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
ci-cd
description
CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows.

CI/CD Integration

Use this skill when the user wants GitHub Actions workflows around gh-infra.

Choose A Pattern

  • Self-managed: each repository owns its own .github/infra.yaml
  • Central management: one config repo manages many target repos

Read:

Common Building Blocks

  • gh infra apply ... --auto-approve on merge to main
  • gh infra plan ... --ci on a schedule for drift detection
  • use GITHUB_TOKEN only for self-managed single-repo workflows
  • use a fine-grained PAT or GitHub App token for cross-repo central management

Authentication

Self-managed

Use the default workflow token:

yaml
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Central management

The default workflow token cannot manage other repositories. Use:

  • a fine-grained PAT with the required per-repo permissions
  • or a GitHub App installation token

Pass it as:

yaml
env:
  GITHUB_TOKEN: ${{ secrets.GH_INFRA_TOKEN }}

Never use a broad classic PAT.

Important Constraints

  • gh-infra reads only top-level *.yaml / *.yml in the target directory
  • if manifests are split across repos/ and files/, run once per directory
  • --auto-approve is required in CI
  • --ci makes plan exit 1 when drift exists

Typical Flows

  • PR review flow: run plan on pull requests touching manifests
  • Auto-apply flow: run apply --auto-approve on merge
  • Drift detection flow: run plan --ci on a schedule

Use both auto-apply and drift detection unless the user explicitly wants review-only behavior.

© babarot, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/ci-cd of babarot/gh-infra.

  • SKILL.md
  • references/central.md
  • references/self-managed.md

Open the folder on GitHubat commit 7e6443a

Compare with similar skills

CI CD next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CI CD compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CI CD this skillbabarot/gh-infra136—~482Automated safety check: PassMIT
Nushellccusage/ccusage19k—~938Automated safety check: PassCustom licence
Clawsweeperopenclaw/openclaw392k—~3kAutomated safety check: PassMIT
AI News RadarLearnPrompt/ai-news-radar1.8k—~2.5kAutomated safety check: NotesMIT
Make GitHub Actions Workflowdotnet/efcore15k—~1.7kAutomated safety check: PassMIT
ONNX Runtime CI Managementmicrosoft/onnxruntime22k—~4.1kAutomated safety check: PassMIT

Similar skills

  • Nushell

    ccusage/ccusage

    Guides ccusage Nushell scripts. An agent skill from ccusage/ccusage.

    19k GitHub stars~938 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Clawsweeper

    openclaw/openclaw

    A skill your agent uses for all ClawSweeper work: OpenClaw issue/PR sweep reports, repair jobs, cloud fix PRs, @clawsweeper maintainer mention commands, trusted ClawSweeper-reviewed…

    392k GitHub stars~3k tokensUpdated today
    DevOps & CloudAuto-check passed
  • AI News Radar

    LearnPrompt/ai-news-radar

    A skill your agent uses when working on AI News Radar, 24 小时 AI 更新雷达, AI 更新雷达, 伯乐Skill, or Scout Skill: finding high-signal AI/tech sources, adding RSS/OPML/GitHub feeds, checking source health…

    1.8k GitHub stars~2.5k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Create GitHub Actions workflows for CI, automation, or PR management.

    15k GitHub stars~1.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • ONNX Runtime CI Management

    microsoft/onnxruntime

    Official

    Triggers, re-runs and unblocks the CI checks on an ONNX Runtime pull request, after diagnosing whether a failure is transient or needs a code change.

    22k GitHub stars~4.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • CI Watchdog

    latitude-dev/latitude-llm

    Continuously monitor GitHub PR CI checks and automatically fix failures until all checks pass.

    4.7k GitHub stars~1.6k tokensUpdated today
    DevOps & CloudAuto-check passed

More from babarot/gh-infra

  • File Manifest

    babarot/gh-infra

    Complete YAML schema reference for File and FileSet resources.

    136 GitHub stars~768 tokensUpdated 8 days ago
    Auto-check passed
  • Gh Infra

    babarot/gh-infra

    Overview of gh-infra and command workflow (import, validate, plan, apply).

    136 GitHub stars~1.1k tokensUpdated 8 days ago
    Auto-check passed
  • Import Into

    babarot/gh-infra

    A skill your agent uses when pulling live GitHub state back into existing gh-infra manifests with gh infra import --into, especially for write/patch/skip decisions, shared file sources…

    136 GitHub stars~746 tokensUpdated 8 days ago
    Auto-check passed
  • Repository Manifest

    babarot/gh-infra

    Complete YAML schema reference for Repository and RepositorySet resources.

    136 GitHub stars~914 tokensUpdated 8 days ago
    Auto-check passed
  • Vhs Demo

    babarot/gh-infra

    A skill your agent uses when running demo recordings, diagnosing recording failures, or regenerating GIFs from existing MP4s.

    136 GitHub stars~1.2k tokensUpdated 8 days ago
    Auto-check passed
  • Vhs Tape Authoring

    babarot/gh-infra

    A skill your agent uses when creating new VHS demo tapes or editing existing ones.

    136 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed

Categories

Questions about CI CD

What does CI CD do?

CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows. CI CD is an agent skill from babarot/gh-infra. CI/CD integration patterns for gh-infra: auto-apply on merge, scheduled drift detection, self-managed vs central-management layouts, and authentication setup for GitHub Actions workflows.

When should I use CI CD?

CI CD fits situations like: tasks that involve CI/CD; tasks that involve GitOps; tasks that involve Third-party API integration.

How do I install CI CD in Claude Code?

Run `npx skills add babarot/gh-infra --skill ci-cd -a claude-code`. Or copy the skill folder (skills/ci-cd in babarot/gh-infra) into .claude/skills/ci-cd in your project. Claude Code loads it when a task matches its description.

How do I install CI CD in Codex?

Run `npx skills add babarot/gh-infra --skill ci-cd -a codex`. Or copy the skill folder (skills/ci-cd in babarot/gh-infra) into .agents/skills/ci-cd in your project. Codex loads it when a task matches its description.

Can I use CI CD in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add babarot/gh-infra --skill ci-cd -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ci-cd, .gemini/skills/ci-cd, .github/skills/ci-cd and .opencode/skills/ci-cd in your project.

What does CI CD need to run?

Going by SKILL.md and its folder, CI CD needs the command-line tools its instructions call (gh) and credentials named GITHUB_TOKEN and GH_INFRA_TOKEN. Our summary lists: A credential in GITHUB_TOKEN; A credential in GH_INFRA_TOKEN.

Does CI CD access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is CI CD safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CI CD use?

CI CD is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CI CD use?

About 482 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 426 tokens, read only when the agent opens those files.

What are the alternatives to CI CD?

Skills that share tags, products or a category with CI CD: Nushell (ccusage/ccusage, 19k stars), Clawsweeper (openclaw/openclaw, 392k stars), AI News Radar (LearnPrompt/ai-news-radar, 1.8k stars) and Make GitHub Actions Workflow (dotnet/efcore, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CI CD?

babarot (a GitHub user) maintains it in babarot/gh-infra, which has 136 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 29, 2026.

Source: babarot/gh-infra on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.