ci-cd

ci-cd is a skill for Claude Code, Codex from babarot/gh-infra. It costs 63 tokens per session (1,283 once invoked), scanned A, original, MIT.

Guidance for connecting gh-infra configuration to GitHub Actions, GitHub's system for running automated workflows. It covers automatic updates, scheduled checks, repository layouts, and authentication.

In plain words
What is it for?
Use it to run apply after changes are merged or plan on a schedule. It covers both one-repository management and a central repository managing several repositories.
Why use it?
It explains how to keep repositories updated automatically and how to detect configuration drift without running commands manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run apply after changes are merged or plan on a schedule. It covers both one-repository management and a central repository managing several repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/babarot/gh-infra/ci-cd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add babarot/gh-infra --skill ci-cd
Clone the repo
git clone --depth 1 https://github.com/babarot/gh-infra

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ci-cd

README.md
[![agentmods](https://agentmods.dev/badge/skills/babarot/gh-infra/ci-cd/github.svg)](https://agentmods.dev/skills/babarot/gh-infra/ci-cd)
Your own site
<a href="https://agentmods.dev/skills/babarot/gh-infra/ci-cd"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/ci-cd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ci-cd

Your own site · 80×15
<a href="https://agentmods.dev/skills/babarot/gh-infra/ci-cd"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/ci-cd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01283
Opus 5.5 $0.00025 $0.00513
Sonnet 5.5 $0.00013 $0.00257
Haiku 4.5 $0.00006 $0.00128

Measured 26d ago against content hash 3aa6b7dbc649, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-cd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ci-cd/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CI/CD Integration

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

Three workflows; full YAML in references/workflows.md. Copy them and change only the paths and the secret name.

Workflow Trigger Command
Plan on pull request pull_request gh infra plan <paths> --changed-since origin/${{ github.base_ref }} --detailed-exitcode -o markdown > plan.md, then gh pr comment --body-file plan.md --edit-last --create-if-none
Apply on merge push to main, workflow_dispatch gh infra apply <paths> --changed-since "$BEFORE" --auto-approve; without --changed-since when github.event.before is empty or all zeros
Drift detection schedule, workflow_dispatch gh infra plan <paths> --detailed-exitcode -o markdown > plan.md (no --changed-since), notify on exit 2

Optional fourth: pull changes made on GitHub into the manifests on a schedule with gh infra import --into=<path> --auto-approve and open a pull request (also in workflows.md).

Use the three unless the user wants less. Drift detection is also the safety net for apply runs that failed: a failed apply --changed-since is not retried by the next push.

Rules For Every Workflow

  • install the extension: - run: gh extension install babarot/gh-infra after actions/checkout, with GH_TOKEN set at job level
  • pass every manifest directory to one command: gh infra plan ./repos/ ./files/. One exit status, and cross-manifest validation (shared PR branch) covers all of them. Do not run one command per directory: with --detailed-exitcode the first exits 2 and the second never runs
  • --changed-since needs the ref in the checkout: actions/checkout with fetch-depth: 0
  • --auto-approve on apply (and import --into) in CI; the prompt needs a TTY
  • capture exit codes instead of letting the step fail: ... --detailed-exitcode ... || echo "code=$?" >> "$GITHUB_OUTPUT", then if: steps.plan.outputs.code == '1' -> exit 1. Exit 0 no changes (also when --changed-since selected nothing), 1 error (wins over changes; also bad ref, no manifests), 2 changes
  • --ci is deprecated (exits 1 for changes and errors alike); use --detailed-exitcode, and NO_COLOR=1 for plain output
  • pull request workflow: permissions: pull-requests: write; skip PRs from forks (if: github.event.pull_request.head.repo.full_name == github.repository) since they get no secrets and a read-only token; never suggest pull_request_target for this (it runs the fork's manifests with your token); guard the comment with [ -s plan.md ] (empty when the plan failed early)
  • paths: filters must include directories read through source: / patches: (e.g. templates/**), or a template-only change does not trigger the workflow. Without paths:, --changed-since already makes unrelated runs free. A paths:-filtered workflow cannot be a required check
  • FileSet commit messages can link the trigger: env: GH_INFRA_SOURCE_URL: ${{ github.event.head_commit.url }} on the apply job, used as <% if .Source.URL %>Source: <% .Source.URL %><% end %>

Read the full file on GitHub · 58 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · -13 lines · +24 tokens per session 3aa6b7dbc649
  2. 27d ago Changed 4beecbf4e2ed
  3. 2mo ago First seen · 71 lines · 39 tokens per session scan A 3be692ad773b

Subscribe to this mod's changes

ci-cd is a skill published in the GitHub repository babarot/gh-infra (140 stars, last pushed 3d ago), licensed MIT. It adds 63 tokens to every session and 1,283 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ci-cd compared with skills from other repositories

ci-cd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ci-cdbabarot/gh-infraSkill1403d agoMITA63Claude Code, Codex
gh-attachsudosubin/gh-attachSkill4510d agoMITA94Claude Code, Codex
watch-commitjustincampbell/gh-watchSkill47d agoMITA48Claude Code
gh-stackgithub/gh-stackSkill1.7k3d agoMITA80Claude Code, Codex
pkup-enchantpPrecel/pkup-genSkill122mo agoMITA59Claude Code, Codex
pkup-genpPrecel/pkup-genSkill122mo agoMITA27Claude Code, Codex
github-pr-workflowfurkangonel/cowranglerSkill11mo agoMITB25Claude Code, Codex