agentleFS
theishandubeytheishandubey/dotclaude/skills/setup-home-repo/SKILL.md

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.

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
  1. Distinctive:

    Run the scripts and copy the template by their paths in this skill's folder.

    line 13
  2. Distinctive:

    No child repos: stop and say so.

    line 25
  3. Distinctive:

    Ask for the workspace's name if the folder name is not it.

    line 31
  4. Distinctive:

    If a CLAUDE.md already exists there, keep its content and add the "Other repos" section with its two marker comments instead.

    line 36
  5. Distinctive:

    Check that the staged list holds only those paths and no file from a child repo, then make one commit.

    line 54
  6. Distinctive:

    Do not add a remote or push.

    line 55
  7. Distinctive:

    Write notes for the new rows as in step 2, tell the user which rows were dropped, and commit the change.

    line 64

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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_repo is set: stop. A home repo cannot live inside another repo; tell the user which repo encloses the folder.
  • is_home_repo is 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

  1. Copy template/CLAUDE.md to <workspace>/CLAUDE.md and set the title. If a CLAUDE.md already exists there, keep its content and add the "Other repos" section with its two marker comments instead.
  2. Copy template/gitignore to <workspace>/.gitignore. It ignores everything at the root except CLAUDE.md, .gitignore and .claude/, so child repos and stray files never get staged.
  3. Copy template/claude/ to <workspace>/.claude/, without overwriting an existing settings.json; add "plansDirectory": ".claude/plans" to an existing one.
  4. Fill the table:
    python3 scan.py <workspace folder> --update <workspace folder>/CLAUDE.md
    Then put each approved note in its row's Notes column.

4. Create the repo

git -C <workspace folder> init
git -C <workspace folder> add CLAUDE.md .gitignore .claude
git -C <workspace folder> status --short

Check 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.md

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.