Agent skill

Repository Manifest

by babarot in babarot/gh-infra

Complete YAML schema reference for Repository and RepositorySet resources.

MITAuto-check passedDevOps & Cloud

Install Repository Manifest

skills CLI
$ npx skills add babarot/gh-infra --skill repository-manifest -a claude-code

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

GitHub CLI
$ gh skill install babarot/gh-infra repository-manifest --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/repository-manifest .claude/skills/repository-manifest && 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
repository-manifest
GitHub stars
136
Token cost
~1.1k tokens
SKILL.md length
316 words
Files
9 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Complete YAML schema reference for Repository and RepositorySet resources.

  • Editing manifests for repo settings
  • SKILL.md covers Core Rules, Repository, RepositorySet and High-Value Gotchas, plus 1 more section
  • Calls gh
  • Branch protection

What it does

Repository Manifest is an agent skill from babarot/gh-infra. Complete YAML schema reference for Repository and RepositorySet resources. Use when writing or editing manifests for repo settings, labels, actions, branch protection, rulesets, secrets, variables, or repository defaults.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/actions.md`, `references/general.md` and `references/labels.md`).

It sits in DevOps & Cloud. It works with GitHub. The repository describes itself as: Declarative GitHub infrastructure management via YAML. The licence is MIT.

When your agent uses it

  • Editing manifests for repo settings
  • Branch protection
  • Repository defaults

Example prompts

  • “/repository-manifest”

What it can do on your machine

Read from SKILL.md and the folder at commit 7ef15b2. 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 no API keys, tokens, secrets or passwords.

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

Context cost

Repository Manifest loads about 1.1k tokens when it runs, and up to ~4.4k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 316 words of instructions outside code blocks.

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

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 7ef15b2, republished under its MIT licence (© babarot). 316 words, ~1,076 tokens.

Download SKILL.mdSave it as .claude/skills/repository-manifest/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
repository-manifest
description
Complete YAML schema reference for Repository and RepositorySet resources. Use when writing or editing manifests for repo settings, labels, actions, branch protection, rulesets, secrets, variables, or repository defaults.

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

yaml
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.

yaml
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

Override behavior matters:

  • Scalars are replaced
  • Simple lists are replaced entirely
  • Keyed collections are merged by key
  • Maps are merged by key

This means topics replace the default list, while labels and reconcile.labels are merged by key/collection.

Read references/repository-set.md for the exact merge rules.

High-Value Gotchas

  • actions.enabled is required when setting any other actions.* field
  • actions.selected_actions is valid only with allowed_actions: selected
  • reconcile.labels: authoritative, reconcile.rulesets: authoritative, and reconcile.branch_protection: authoritative delete undeclared remote entries; review plan carefully
  • reconcile without a corresponding spec collection is no-op; a collection is managed only when it appears in spec
  • label_sync: mirror is deprecated; use reconcile.labels: authoritative
  • fields left out of the manifest are left as they are on GitHub (rulesets, branch protection, milestones, label descriptions, selected actions): to manage part of a ruleset, write only that part
  • in a RepositorySet entry, labels: [] (or rulesets, branch_protection, secrets, variables, topics, milestones) means none: the defaults are not inherited; under reconcile.<collection>: authoritative it deletes every item on that repo. An entry cannot drop a single default item; change the defaults or use a standalone Repository (#215)
  • label names are matched ignoring case, as on GitHub; changing only the case renames the label
  • for gh infra import --into, use the dedicated import-into skill
  • Repository deletion is not supported

Verification

bash
gh infra validate <path>
gh infra plan <path>

© 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 8 other files (references) in skills/repository-manifest of babarot/gh-infra.

  • SKILL.md
  • references/actions.md
  • references/general.md
  • references/labels.md
  • references/milestones.md
  • references/protection.md
  • references/repository-set.md
  • references/secrets-variables.md
  • references/security.md

Open the folder on GitHubat commit 7ef15b2

Compare with similar skills

Repository Manifest 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.

Repository Manifest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Repository Manifest this skillbabarot/gh-infra136—~1.1kAutomated safety check: PassMIT
Azure Pipelines Log Downloaderansible/ansible71k—~825Automated safety check: PassGPL-3.0
Nushellccusage/ccusage19k—~938Automated safety check: PassCustom licence
Make GitHub Actions Workflowdotnet/efcore15k—~2.1kAutomated safety check: PassMIT
Backport PRrundeck/rundeck6.3k—~3kAutomated safety check: PassApache-2.0
AI News RadarLearnPrompt/ai-news-radar1.8k—~2.5kAutomated safety check: NotesMIT

Similar skills

  • Downloads Azure Pipelines CI logs for an Ansible pull request or build so the agent can analyze test failures, after asking you first.

    71k GitHub stars~825 tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Nushell

    ccusage/ccusage

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

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

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

    15k GitHub stars~2.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Backport PR

    rundeck/rundeck

    Backport commits from an existing GitHub Pull Request to a target branch and open a new backport PR.

    6.3k GitHub stars~3k tokensUpdated yesterday
    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
  • Megatron-LM CI/CD Guide

    NVIDIA/Megatron-LM

    Official

    Explains Megatron-LM's CI pipeline, PR scope labels, triggering the internal GitLab CI with a dry run first, and investigating CI failures.

    18k GitHub stars~1.8k 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~864 tokensUpdated today
    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 today
    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~904 tokensUpdated today
    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 today
    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 today
    Auto-check passed
  • CI CD

    babarot/gh-infra

    CI/CD integration for gh-infra in GitHub Actions: plan each pull request and post the plan as a comment, apply on merge, scheduled drift detection with notification, --changed-since and…

    136 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Repository Manifest

What does Repository Manifest do?

Complete YAML schema reference for Repository and RepositorySet resources. Repository Manifest is an agent skill from babarot/gh-infra. Complete YAML schema reference for Repository and RepositorySet resources.

When should I use Repository Manifest?

Repository Manifest fits situations like: editing manifests for repo settings; branch protection; repository defaults.

How do I install Repository Manifest in Claude Code?

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

How do I install Repository Manifest in Codex?

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

Can I use Repository Manifest 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 repository-manifest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repository-manifest, .gemini/skills/repository-manifest, .github/skills/repository-manifest and .opencode/skills/repository-manifest in your project.

What does Repository Manifest need to run?

Going by SKILL.md and its folder, Repository Manifest needs the command-line tools its instructions call (gh).

Does Repository Manifest 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 Repository Manifest 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 Repository Manifest use?

Repository Manifest 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 Repository Manifest use?

About 1.1k tokens (SKILL.md is roughly 4.3k 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 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Repository Manifest?

Skills that share tags, products or a category with Repository Manifest: Azure Pipelines Log Downloader (ansible/ansible, 71k stars), Nushell (ccusage/ccusage, 19k stars), Make GitHub Actions Workflow (dotnet/efcore, 15k stars) and Backport PR (rundeck/rundeck, 6.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Repository Manifest?

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 October 11, 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.