Skip to content
Back to skills

Clone Init

ASecurity

Sets up a self-clone home — a local git folder holding the knowledge tree of how you work (tree/, tools/, sources/, exams/, RULES.md), so that /grow, /exam and /survey can start growing a clone of you as a user. Use for "/clone-init", "set up self-clone", "start a clone of me", "make a work tree of my job".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 16, 2026
ai-agentspythonnodegit

Works with

  • claude code
  • mcp

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned October 16, 2026

npx -y skills add LazyerIJ/self-clone --skill clone-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clone Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clone Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lazyerij-clone-init/badge)](https://www.skillsdirectory.com/skills/lazyerij-clone-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clone-init
description: Sets up a self-clone home — a local git folder holding the knowledge tree of how you work (tree/, tools/, sources/, exams/, RULES.md), so that /grow, /exam and /survey can start growing a clone of you as a user. Use for "/clone-init", "set up self-clone", "start a clone of me", "make a work tree of my job".
---

# clone-init — make the clone home

The clone home is a folder of its own (default `~/self-clone-home`). It is never inside a work repo, and it has no git remote.
This skill's base directory holds `template/` — copy from there.

## 1. Ask (one question block, only what cannot be guessed)
- Where to put the home (default `~/self-clone-home`). Stop if it exists and is not empty.
- The owner's name (how the tree should call them) and their git author string (for "my commits"; suggest `git config user.name`).
- Work roots — folders that hold their repos (suggest the ones that exist among `~/code`, `~/src`, `~/projects`, `~/dev`, `~/work`).
- Notes folders (Obsidian vaults etc.) and folders that must never be read (customer data, personal).

## 2. Copy and fill
```
cp -R <base>/template/ <home>/
mv <home>/gitignore <home>/.gitignore
```
- Write the answers into `<home>/clone.json` (`owner`, `git_author`, `work_roots`, `notes_dirs`, `never_read`). Keep `session_match` as the last path segment of each work root (Claude project folder names contain it).
- Replace `checked: 2000-01-01` with today in every `tree/**/_branch.md`.
- `printf '@RULES.md\n' > <home>/CLAUDE.md`
- `mkdir -p <home>/.claude && python3 -I <home>/tools/settings.py > <home>/.claude/settings.json` — if your permission settings block the write to `.claude/`, print the command and ask the owner to run it.

## 3. First commit
```
cd <home> && git init -q && python3 -I tools/tree.py lint && git add -A && git commit -q -m "init: self-clone home"
```

## 4. Report
Tell the owner, in a few lines:
- the home path, and that every later command runs **from a Claude Code session opened in that folder** (`cd <home> && claude`)
- next steps: `/survey` (map of sources and access) → `/grow` (one node) → `/loop /grow` (keep growing) → `/exam` comes up by itself
- `tools/shape.json` holds every limit (depth, children, sections); `RULES.md` is the constitution and can be edited
- after /survey, add the write tools of their connected MCP servers to `deny` in `tools/settings.py` and regenerate settings

Files in this skill

  • SKILL.md2.4 KB
  • template/RULES.md7.6 KB
  • template/clone.json289 B
  • template/exams/bank.md712 B
  • template/gitignore42 B
  • template/sources/access.md47 B
  • template/sources/external.md42 B
  • template/tools/inventory.py7.6 KB
  • template/tools/settings.py2.2 KB
  • template/tools/shape.json1.4 KB
  • template/tools/tree.py19.2 KB
  • template/tree/_branch.md783 B
  • template/tree/env/_branch.md241 B
  • template/tree/org/_branch.md256 B
  • template/tree/practice/_branch.md219 B
  • template/tree/systems/_branch.md271 B
  • template/tree/work/_branch.md231 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.