home / skills / a5c-ai / babysitter / git-lfs

This skill helps you manage large game assets with Git LFS by configuring tracking, storage, and migrations.

npx playbooks add skill a5c-ai/babysitter --skill git-lfs

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
260 B
---
name: git-lfs
description: Git LFS skill for large game assets.
allowed-tools: Read, Grep, Write, Bash, Edit, Glob, WebFetch
---

# Git LFS Skill

Large file storage for games.

## Capabilities

- LFS setup
- File tracking
- Storage management
- Migration

Overview

This skill integrates Git LFS workflows into agent-driven game development pipelines to manage large binary assets reliably. I built it to handle setup, tracking, storage operations, and migration tasks so agents can treat big files like first-class repo objects. It works alongside babysitter orchestration to enable deterministic, resumable operations for asset-heavy projects.

How this skill works

The skill automates LFS repository initialization, configures tracked patterns, and creates or updates .gitattributes entries so agents can commit large files without bloating Git history. It exposes commands for querying LFS storage usage, pruning objects, and performing migrations from legacy storage to LFS. All operations are designed to be idempotent and resumable so orchestration can recover from interruptions.

When to use it

  • Your repo contains large binary game assets (textures, audio, models) that exceed normal Git limits.
  • You need agents to commit, track, and manage large files deterministically within automated pipelines.
  • You want to migrate an existing repository’s large objects into Git LFS without losing history.
  • You must monitor and control LFS storage quotas and prune unused objects safely.

Best practices

  • Define clear .gitattributes patterns early (by file extension or folder) to avoid accidentally committing binaries to Git.
  • Run LFS migrations in a staging environment and validate artifacts before rewriting main branches.
  • Use resumable, idempotent commands so automation can retry without causing duplicate work.
  • Schedule periodic pruning and storage audits to keep repository sizes manageable.
  • Keep credentials and remote LFS endpoints secured and rotated as part of CI secrets management.

Example use cases

  • Automatically add and track new art asset types committed by content pipelines during build runs.
  • Migrate a legacy game repository’s historical large files into LFS while preserving commit history.
  • Enforce storage limits by detecting heavy LFS usage and triggering cleanup or alerts.
  • Resume interrupted LFS upload sequences in a multi-step agent orchestration without data loss.

FAQ

Will this rewrite Git history during migration?

Migrations that move existing objects into LFS typically rewrite history; the skill supports staging runs and validation so you can test before applying to main branches.

Can agents recover from interrupted large file uploads?

Yes. Operations are designed to be resumable and idempotent so the orchestration can retry safely after failures.