pac-librarian

Cache remote git repositories into local checkouts with throttled updates.

2|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/ladislas/mypac --skill pac-librarian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pac-librarian
Source: https://github.com/ladislas/mypac/tree/main/skills/pac-librarian
Command: npx skills add https://github.com/ladislas/mypac --skill pac-librarian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Caches and refreshes remote git repositories into a deterministic local cache at ~/.cache/checkouts/<host>/<org>/<repo>, enabling fast reuse of previously referenced checkouts and reducing repeated network fetches.

Core Features & Use Cases

  • Stable local caches under ~/.cache/checkouts/<host>/<org>/<repo> for quick references.
  • Throttled updates with optional force refresh to keep checkouts up to date while avoiding excessive network usage.
  • Supports standard host inputs (GitHub/GitLab/Bitbucket), shallow clones, and path resolution for reuse in CI or local development.

Quick Start

Ask the agent to cache the given remote repository checkout so future references use the local copy.

Frequently Asked Questions about pac-librarian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache remote Git repos locally for fast reuse?

To cache remote Git repos locally, this Skill clones repositories into a deterministic path under ~/.cache/checkouts/<host>/<org>/<repo> using shallow clones. It enables fast reuse of previously referenced checkouts and reduces repeated network fetches.

How do I prevent excessive network fetches when reusing Git checkouts in CI?

Prevent excessive network fetches by using a throttled update interval with a default of 300 seconds. This keeps cached Git checkouts up to date while avoiding excessive network usage during CI or local development reuse.

Does this local Git checkout cache support GitHub, GitLab, and Bitbucket repositories?

Yes, this local Git checkout cache supports standard host inputs including GitHub, GitLab, and Bitbucket. It applies when users reference Git hosting services or owner/repo shorthand to resolve the repository path.

Can I force a refresh of a cached Git repository before the update interval expires?

Yes, you can force a refresh of a cached Git repository before the update interval expires. The Skill provides optional force-update support to bypass the default throttled updates and perform safe fast-forward updates.

What is the best way to manage shallow clones for automated repo management?

The best way to manage shallow clones for automated repo management is storing them in a stable local cache. This Skill applies shallow clones with safe fast-forward updates and path-based reuse to minimize data transfer.

Why does my local Git checkout cache use path-based resolution under ~/.cache?

Your local Git checkout cache uses path-based resolution under ~/.cache to provide deterministic storage. Organizing checkouts by host, org, and repo enables quick references and reliable path-based reuse across different projects.