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.
npx agentmods add skills/babarot/gh-infra/ci-cdnpx skills add babarot/gh-infra --skill ci-cdgit clone --depth 1 https://github.com/babarot/gh-infraWrote 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.
[](https://agentmods.dev/skills/babarot/gh-infra/ci-cd)<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>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.
| Model | Per session | Once 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 |
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.
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:
- Self-managed workflow: references/self-managed.md
- Central management workflow: references/central.md
Common Building Blocks
gh infra apply ... --auto-approveon merge tomaingh infra plan ... --cion a schedule for drift detection- use
GITHUB_TOKENonly 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/*.ymlin the target directory - if manifests are split across
repos/andfiles/, run once per directory --auto-approveis required in CI--cimakesplanexit 1 when drift exists
Typical Flows
- PR review flow: run
planon pull requests touching manifests - Auto-apply flow: run
apply --auto-approveon merge - Drift detection flow: run
plan --cion a schedule
Use both auto-apply and drift detection unless the user explicitly wants review-only behavior.
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.
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.
- 6d ago First seen · 71 lines · 39 tokens per session scan A 3be692ad773b
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.
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…
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…
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.
pkup-gen
Generate a PKUP report for given GitHub users. Use when the user asks to generate a PKUP report.
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.
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…