repository-manifest

repository-manifest is a skill for Claude Code, Codex from babarot/gh-infra. It costs 45 tokens per session (1,231 once invoked), scanned A, original, MIT.

A reference for YAML files that describe GitHub repository settings. YAML is a human-readable configuration format, and the guide covers individual repositories and groups of repositories.

In plain words
What is it for?
Use it to write or edit manifests for repository defaults, labels, GitHub Actions settings, branch protection, rulesets, secrets, variables, and security options.
Why use it?
It helps you change only the settings you intend to manage and avoid common mistakes with protections, labels, actions, secrets, and variables.

Skill for Claude CodeCodex

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

Good fit Use it to write or edit manifests for repository defaults, labels, GitHub Actions settings, branch protection, rulesets, secrets, variables, and security options.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/babarot/gh-infra/repository-manifest
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 repository-manifest
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 repository-manifest

README.md
[![agentmods](https://agentmods.dev/badge/skills/babarot/gh-infra/repository-manifest/github.svg)](https://agentmods.dev/skills/babarot/gh-infra/repository-manifest)
Your own site
<a href="https://agentmods.dev/skills/babarot/gh-infra/repository-manifest"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/repository-manifest/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 repository-manifest

Your own site · 80×15
<a href="https://agentmods.dev/skills/babarot/gh-infra/repository-manifest"><img src="https://agentmods.dev/badge/skills/babarot/gh-infra/repository-manifest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,231 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.00045 $0.01231
Opus 5.5 $0.00018 $0.00492
Sonnet 5.5 $0.00009 $0.00246
Haiku 4.5 $0.00005 $0.00123

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

Security

Grade A, and why

repository-manifest 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 9d 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/repository-manifest/SKILL.md · 130 lines

How it starts

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

Repository Manifest Reference

Use this skill when editing repository-side manifests. Keep the body small and load references only as needed.

Core Rules

  • All spec fields are optional. Omitted fields are left unchanged on GitHub.
  • Repository manages one repository.
  • RepositorySet manages many repositories with shared defaults.
  • For new setups, prefer rulesets over classic branch_protection.
  • Secret values must use ${ENV_*} indirection, never literal secrets.

Repository

apiVersion: gh-infra/v1
kind: Repository
metadata:
  owner: my-org
  name: my-repo
reconcile:           # optional; controls collection reconciliation
  rulesets: additive # additive (default) | authoritative
  labels: additive
spec:
  # declare only managed fields

Read these references as needed:

RepositorySet

Use RepositorySet when many repositories share defaults.

apiVersion: gh-infra/v1
kind: RepositorySet
metadata:
  owner: my-org

defaults:
  reconcile:
    rulesets: authoritative
    labels: additive
  spec:
    visibility: public
    features:
      wiki: false
    merge_strategy:
      allow_squash_merge: true
      allow_rebase_merge: false
      auto_delete_head_branches: true
    rulesets:
      - name: protect-main
        target: branch
        enforcement: active
        conditions:
          ref_name:
            include: ["refs/heads/main"]
        rules:
          pull_request:
            required_approving_review_count: 1
          non_fast_forward: true

repositories:
  - name: repo-a
    spec:
      description: "Service A"
      topics: [go, api]

  - name: repo-b
    spec:
      description: "Service B"
      topics: [python, cli]
      features:
        wiki: true

Read the full file on GitHub · 130 lines

Files

What ships with it

10 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. 9d ago Changed · +1 lines c1b1d0e8d222
  2. 11d ago Changed · +5 lines · +2 tokens per session b6abda7fc3ef
  3. 1mo ago Changed · +4 lines d79800ec9028
  4. 2mo ago First seen · 120 lines · 43 tokens per session scan A fe3b2b6329fa

Subscribe to this mod's changes

repository-manifest is a skill published in the GitHub repository babarot/gh-infra (152 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 1,231 once invoked, about $0.0002 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

repository-manifest compared with skills from other repositories

repository-manifest next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repository-manifestbabarot/gh-infraSkill1523d agoMITA45Claude Code, Codex
gh-attachsudosubin/gh-attachSkill45todayMITA94Claude Code, Codex
gh-stackgithub/gh-stackSkill1.8k6d agoMITA80Claude Code, Codex
pkup-enchantpPrecel/pkup-genSkill123mo agoMITA59Claude Code, Codex
vhs-e2e-gifdimetron/pi-goSkill224yesterdayMITA106Claude Code, Codex
check-linters-before-commitdimetron/pi-goSkill224yesterdayMITA30Claude Code, Codex
ghtknsuzuki-shunsuke/ghtknSkill462yesterdayMITA146Claude Code, Codex