setup-home-repo
Skill2 starsChanged 17 days agoMITView on GitHub
Turn a folder that holds several git repos into a home repo that versions their shared notes, plans and architecture docs, or refresh its list of repos.
In this repository10 other files it gives its agents.
- claude/CLAUDE.mdCLAUDE.md
- skills/setup-home-repo/template/CLAUDE.mdCLAUDE.md
- apple-containerSkill
- benchmarkSkill
- codebase-designSkill
- diagnoseSkill
- map-architectureSkill
- prototypeSkill
- specSkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Run the scripts and copy the template by their paths in this skill's folder.
- Distinctive: line 25
No child repos: stop and say so.
- Distinctive: line 31
Ask for the workspace's name if the folder name is not it.
- Distinctive: line 36
If a CLAUDE.md already exists there, keep its content and add the "Other repos" section with its two marker comments instead.
- Distinctive: line 54
Check that the staged list holds only those paths and no file from a child repo, then make one commit.
- Distinctive: line 55
Do not add a remote or push.
- Distinctive: line 64
Write notes for the new rows as in step 2, tell the user which rows were dropped, and commit the change.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up a home repo
A home repo is a small private git repo at the root of a workspace folder.
It commits a CLAUDE.md that lists the repos cloned inside it and a .claude/ folder for plans, specs, architecture docs and decisions.
The child repos stay ignored and keep their own history.
Run the scripts and copy the template by their paths in this skill's folder.
1. Scan
python3 scan.py <workspace folder>It prints JSON: is_home_repo, inside_another_repo, and one entry per child repo with its remote, default branch, manifests and whether it has a CLAUDE.md.
inside_another_repois set: stop. A home repo cannot live inside another repo; tell the user which repo encloses the folder.is_home_repois true: this is a refresh; go to step 5.- No child repos: stop and say so. There is nothing to be a home for.
2. Draft the notes
For each child repo, read its README and manifests and write one line: what it is and what it is for. Show the lines to the user and take their corrections before writing anything. Ask for the workspace's name if the folder name is not it.
3. Write the files
- Copy
template/CLAUDE.mdto<workspace>/CLAUDE.mdand set the title. If aCLAUDE.mdalready exists there, keep its content and add the "Other repos" section with its two marker comments instead. - Copy
template/gitignoreto<workspace>/.gitignore. It ignores everything at the root exceptCLAUDE.md,.gitignoreand.claude/, so child repos and stray files never get staged. - Copy
template/claude/to<workspace>/.claude/, without overwriting an existingsettings.json; add"plansDirectory": ".claude/plans"to an existing one. - Fill the table:
Then put each approved note in its row's Notes column.python3 scan.py <workspace folder> --update <workspace folder>/CLAUDE.md
4. Create the repo
git -C <workspace folder> init
git -C <workspace folder> add CLAUDE.md .gitignore .claude
git -C <workspace folder> status --shortCheck that the staged list holds only those paths and no file from a child repo, then make one commit. Do not add a remote or push; the home repo names private repos, so where it is hosted is the user's call.
5. Refresh
python3 scan.py <workspace folder> --update <workspace folder>/CLAUDE.mdIt rewrites only the table between the markers, keeps every existing Notes cell, adds rows for new repos and reports dropped_rows for repos that are gone.
Write notes for the new rows as in step 2, tell the user which rows were dropped, and commit the change.
Report
The path, the repos listed, anything skipped and why, and the commit made.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

