maxritter/pilot-shell/blog
Claude Code and agent skill by maxritter/pilot-shell
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Build a central library to manage .claude folders across projects. One repo for skills, agents, commands, hooks, and configs.
Install
npx vskill@latest install maxritter/pilot-shell/blogSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as maxritter/pilot-shell/blog.
Build a central library to manage .claude folders across projects. One repo for skills, agents, commands, hooks, and configs.
<!-- truncate -->
You have 10 codebases. Each one has a .claude folder with skills, agents, commands, hooks, and a CLAUDE.md file. Some folders are current. Most drifted weeks ago. You improved your code review agent in one project and forgot to copy it to the other nine. Your teammate built a planning command you never knew existed because it lives in their repo, not yours.
This is the .claude folder distribution problem. It gets worse with every project you add.
Quick Win: Build a private Git repo that holds all your .claude content centrally, with a map.json that controls which project gets which items:
Run one sync command and the project's .claude folder matches the map. Modify a skill or agent locally, push it back to the library, and every project that uses it picks up the change on next sync.
Why .claude Folder Management Matters
If you work in a single codebase, your skills, agents, and commands live right next to your code. Everything is findable, everything is current.
Once you pass five or six projects, things break down:
- Duplication everywhere. The same git-commits skill exists in 8 repos, each slightly different.
- Version drift. You improved your planning command last week, but only in one project. The other repos still run the old version.
- No coordination. Your teammate built a database migration agent. You built your own because you didn't know theirs existed.
- Configuration sprawl. It's not just skills. It's hooks, settings.json, CLAUDE.md files, agent definitions, and slash commands. Each project needs a different combination.
The instinct is to copy files. It's fast, it works in the moment, and it falls apart within a month. Every engineer running multi-repo agent setups has been there.
IndyDevDan identified this problem early and built a pure-agentic solution using a YAML catalog of references. His approach proved the pattern works. But after adopting it across 10+ projects with 30+ skills and 19 agents, I needed something with more structure: actual file management, variant support, full .claude folder coverage, and a real sync engine.
The Library Architecture
The library is a private Git repo that stores your complete .claude configuration. Not references or pointers to other repos. The actual files. One canonical copy of every skill folder, every agent definition, every slash command, every hook, every CLAUDE.md, and every settings.json.
A map.json at the root defines which project gets which items. A sync script copies the right files to the right places. A manifest in each project tracks what the library owns so local files are never touched.
Eight content categories (skills, agents, commands, hooks, rules, claude-mds, settings, and arbitrary files), all managed through one repo. When you sync a project, the engine reads map.json, finds the project's configuration, and copies exactly the items listed. Nothing more, nothing less.
The Map: Controlling What Goes Where
The map.json is the brain of the system. Each project entry lists exactly which items it receives:
A different project might use a completely different selection. A SaaS project gets backend-engineer, supabase-specialist, and security-auditor agents with postgres-best-practices and auth skills. A marketing-focused repo gets growth-kit, seo-specialist, and content-writer instead. A product repo gets a stripped-down set with a different CLAUDE.md and different hooks. The library holds everything; each project picks what it needs.
You can also define profiles for common configurations that multiple projects share:
Initialize a new project with --profile web-default and it gets the full web stack in one command.
Variants: When One Version Isn't Enough
Here's the problem profiles don't solve: your git-commits skill works great across most projects, but your blog project needs a modified version with extra commit patterns for MDX content. You don't want to fork the skill into a separate entity. You want the same skill, just a project-specific version.
Variants use a name--variant naming convention. The double dash separates the base name from the variant tag:
In map.json, you reference the full name:
When synced, git-commits--blog deploys as .claude/skills/git-commits/. The --blog suffix is a library concept only. The project never sees it. The variant is a complete, independent folder. It can have different files, different structure, different content. It just shares a deploy name with its base.
The power of this shows up during push. You modify .claude/skills/git-commits/ in your blog project. The sync engine reads the manifest, sees that git-commits maps to git-commits--blog in the library, and pushes changes to the right place. Your other projects still pull the base version.
Operations
The sync engine is a Node.js script with zero external dependencies. Eight operations cover the full lifecycle:
| Operation | What It Does | |
|---|---|---|
| sync | Copy items from library to project based on map.json | |
| push | Copy local changes back to library (respects variant mapping) | |
| diff | Hash-compare each managed item, show what's changed | |
| list | Show all library contents and which projects use what | |
| add | Add an item to a project's map, then sync it | |
| remove | Remove an item from map and delete from project | |
| init | Register a new project in map.json | |
| seed | Import an existing project's .claude/ into the library |
The seed operation is how you bootstrap. Point it at a project that already has a well-configured .claude folder and it imports everything into the library, creates the map.json entry, and writes the manifest. From that point on, the library is the source of truth.
The diff operation uses content hashing to compare library and project versions. It reports in-sync, local-changes, or library-ahead for each item, so you always know what's drifted before you sync or push.
The Manifest: Tracking What the Library Owns
Every synced project gets a .claude/.library-manifest.json:
The manifest maps deploy names to library names. This is how push knows that your local git-commits/ folder should go back to git-commits--blog/ in the library, not the base version.
Anything in .claude/ that's not in the manifest is invisible to the library. Local tasks, backups, project-specific experiments all survive syncs untouched. The library only manages what it placed there.
Natural Language Interface
Beyond the CLI, the system includes a /library slash command that deploys to every synced project. Instead of remembering flags, you speak naturally:
Claude reads the manifest, locates the library, interprets the intent, and calls the sync engine. For destructive operations (removing items, overwriting), it confirms before proceeding.
This is the interaction model that makes the system practical for daily use. You don't leave your Claude Code session to manage your library. You just tell it what you need.
Getting Started
Building your own library takes about 30 minutes:
- Create a private repo with the folder structure:
skills/,agents/,commands/,hooks/,claude-mds/,settings/ - Seed from your best project. Take the project with the most complete
.claudefolder and import it. This becomes your initial library content. - Write your map.json. Start with one project entry. List every skill, agent, command, hook, and configuration file it should have.
- Build the sync script. The core is straightforward: read map.json, parse item names (splitting on
--for variants), copy files to the right places, write a manifest. Git pull before sync, git commit and push after push. - Add the `/library` command to the library itself. It syncs to every project automatically, giving you the natural language interface from day one.
- Add a second project with a different selection. This is where the system proves its value. Two projects, same library, different configurations, always in sync.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/docusaurus/blog/2026-03-24-library-meta-skill.md
Popularity
- Repository stars
- 2,080
- Repository forks
- 179
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maxritter/pilot-shell/blog)