Agent skill

File Manifest

by babarot in babarot/gh-infra

Complete YAML schema reference for File and FileSet resources.

MITAuto-check passedDevelopment

Install File Manifest

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

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

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

At a glance

Complete YAML schema reference for File and FileSet resources.

  • Writing manifests to manage files (CODEOWNERS
  • SKILL.md covers Core Rules, File, FileSet and High-Value Gotchas, plus 1 more section
  • Calls gh
  • More repositories

What it does

File Manifest is an agent skill from babarot/gh-infra. Complete YAML schema reference for File and FileSet resources. Use when writing manifests to manage files (CODEOWNERS, LICENSE, CI workflows, etc.) in one or more repositories, including templating, patches, reconcile modes, delivery method, and import-into behavior.

Its SKILL.md is about 860 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/fileset.md`, `references/patches.md` and `references/reconcile-and-delivery.md`).

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

When your agent uses it

  • Writing manifests to manage files (CODEOWNERS
  • More repositories
  • Including templating
  • Reconcile modes

Example prompts

  • “/file-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

File Manifest loads about 864 tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 249 words of instructions outside code blocks.

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

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). 249 words, ~864 tokens.

Download SKILL.mdSave it as .claude/skills/file-manifest/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
file-manifest
description
Complete YAML schema reference for File and FileSet resources. Use when writing manifests to manage files (CODEOWNERS, LICENSE, CI workflows, etc.) in one or more repositories, including templating, patches, reconcile modes, delivery method, and import-into behavior.

File Manifest Reference

Use this skill for file-distribution manifests. Keep the main body small and open references only when the request needs them.

Core Rules

  • File is parsed as a one-repo FileSet internally, but you still author the simpler shape
  • Each file entry requires path and exactly one of content or source
  • via defaults to push
  • reconcile defaults to additive
  • patches are applied after template expansion

File

yaml
apiVersion: gh-infra/v1
kind: File
metadata:
  owner: my-org
  name: my-repo
spec:
  files:
    - path: .github/CODEOWNERS
      content: |
        * @username
    - path: LICENSE
      source: ./templates/LICENSE
  via: push
  commit_message: "ci: sync managed files"

Key fields:

  • files: required
  • via: push or pull_request
  • commit_message, branch, pr_title, pr_body: delivery controls. commit_message, pr_title, pr_body accept <% .Repo.Name %>, <% .Repo.FullName %>, <% .Source.URL %> (env GH_INFRA_SOURCE_URL, set in CI); see references/reconcile-and-delivery.md
  • files[].vars: template variables
  • files[].patches: unified diff patches
  • files[].reconcile: additive, authoritative, create_only
  • files[].executable: true for mode 100755, false for 100644, omitted keeps the current mode

Read these references as needed:

FileSet

Use FileSet to distribute shared files to many repositories.

yaml
apiVersion: gh-infra/v1
kind: FileSet
metadata:
  owner: my-org
  name: shared-ci          # optional; names the FileSet, does not select repos

spec:
  repositories:
    - gomi                # simple string
    - enhancd
    - name: gh-infra      # struct with overrides
      overrides:
        - path: .github/CODEOWNERS
          content: |
            * @username @co-maintainer

  files:
    - path: .github/CODEOWNERS
      content: |
        * @username

    - path: LICENSE
      source: ./templates/LICENSE

  via: push

Each repository entry is either:

  • a simple repo name string
  • an object with name and optional overrides

Overrides replace the matching base entry by path for that repository only.

High-Value Gotchas

  • Prefer patch files over inline patch blocks for files with tabs
  • Patch context must match template-expanded content, not raw template source
  • github:// sources are import hard-skips because there is no local write target
  • Shared local source files in FileSet often default to the patch write action in import --into
  • create_only affects apply behavior, but import can still update the local master template

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

  • SKILL.md
  • references/fileset.md
  • references/patches.md
  • references/reconcile-and-delivery.md
  • references/sources-and-templating.md

Open the folder on GitHubat commit 7ef15b2

Compare with similar skills

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

File Manifest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
File Manifest this skillbabarot/gh-infra136—~864Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Greplooponyx-dot-app/onyx32k4 repos~3.3kAutomated safety check: PassMIT
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Setup Matt Pocock Skillsbestofjs/bestofjs3.1k20 repos~1.7kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Setup Matt Pocock Skills

    bestofjs/bestofjs

    Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout.

    3.1k GitHub starsUsed in 20 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed

More from babarot/gh-infra

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

    babarot/gh-infra

    Complete YAML schema reference for Repository and RepositorySet resources.

    136 GitHub stars~1.1k 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 File Manifest

What does File Manifest do?

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

When should I use File Manifest?

File Manifest fits situations like: writing manifests to manage files (CODEOWNERS; more repositories; including templating; reconcile modes.

How do I install File Manifest in Claude Code?

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

How do I install File Manifest in Codex?

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

Can I use File 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 file-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/file-manifest, .gemini/skills/file-manifest, .github/skills/file-manifest and .opencode/skills/file-manifest in your project.

What does File Manifest need to run?

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

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

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

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

What are the alternatives to File Manifest?

Skills that share tags, products or a category with File Manifest: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Greploop (onyx-dot-app/onyx, 32k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Setup Matt Pocock Skills (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains File 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.