ci-cd

ci-cd is a skill for Claude Code, Codex from babarot/gh-infra. It costs 39 tokens per session (459 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.

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.

agentmods
npx agentmods add skills/babarot/gh-infra/ci-cd
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00039 $0.00459
Opus 5 $0.00019 $0.00230
Sonnet 5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured 6d ago against content hash 3be692ad773b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 71 lines

What it actually says

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:

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:

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.

Files

What ships with it

2 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. 6d 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 (134 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 459 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

gh-attach

Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after screenshots", "attach this file", or "download…

sudosubin/gh-attach · 94 tokens

clickup-cli

ClickUp CLI for managing tasks, sprints, comments, statuses, Docs, and archiving. Use when the user needs to interact with ClickUp — creating/editing/archiving tasks, checking sprint status, adding comments, linking PRs, managing Docs and pages, or searching tasks. Includes a generic clickup api passthrough covering…

triptechtravel/clickup-cli · 90 tokens

pkup-enchant

Enrich an existing PKUP report directory — group commits into tasks, filter out non-creative groups, and write Polish descriptions. Use when the user has already generated a PKUP report and wants to clean it up or add "Zaprojektowałem..." descriptions.

pPrecel/pkup-gen · 59 tokens

pkup-gen

Generate a PKUP report for given GitHub users. Use when the user asks to generate a PKUP report.

pPrecel/pkup-gen · 27 tokens

watch-commit

Watch a GitHub commit for CI status changes using the gh-watch extension. Use when the user wants to monitor a commit's CI checks, wait for a build to finish, or track CI progress on a specific SHA.

justincampbell/gh-watch · 48 tokens

gh-stack

Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is…

github/gh-stack · 80 tokens