clone-software-repo
Skill3 starsChanged 3 months agoMITView on GitHub
Clone a GitHub repo into 02_Programs/3-Software/ ready for terminal-agent work — SSH-rewritten (HTTPS auth is broken in this env), with Google-Drive-safe defaults (core.fileMode false + post-clone fsck). Use when the user pastes a GitHub URL and wants it cloned locally, or says "clona este repo", "trae este repo a local", "clónalo a 3-software", "clone this repo", "setup this repo locally", "bájate este proyecto", or hands over a github.com link to work on from the terminal.
- Reads credentials
In this repository25 other files it gives its agents.
- govern-agentic-osSkill
- hallazgoSkill
- loop-corpSkill
- no-devSkill
- orca-handoffSkill
- reporte-gmSkill
- game-designer-ueSkill
- obsidian-plugin-releaseSkill
- readme-commitSkill
- repo-syncSkill
- ship-ossSkill
- start-cc+lvSkill
- to-cmsSkill
- wavespeedSkill
- wayfinder-sequentialSkill
- hackathon-promoSkill
- promo-webinarSkill
- sundai-campana-hackSkill
- autocommitSkill
- obsidianizerSkill
- repo-auditSkill
- daily-review-workflowSkill
- data-source-dashboardSkill
- research-pipelineSkill
- youtube-searchSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Add --dry-run to print the parsed owner/repo/target without cloning (use it if the URL looks unusual before committing).
- Distinctive: line 58
No commits, installs, or dev servers are run by this skill — it clones + configures + reports.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Clone Software Repo → 3-Software
Single-shot skill: take a GitHub link, clone it into 02_Programs/3-Software/<repo> with the defenses this vault needs (it lives inside Google Drive, and HTTPS git auth is broken here). Output is a tight "what landed + how to run it" summary.
When to use
User pastes a GitHub URL (or owner/repo) and wants it on local disk to work with terminal agents. NOT for: re-cloning the GPT Chain _initiatives-software repos (that's [[gpt-chain-refresh]]), or creating a brand-new project from scratch (that's a Lovable/scaffold flow).
Environment facts (must honor)
- HTTPS auth is broken → always clone over SSH. The script rewrites
https://github.com/OWNER/REPO→git@github.com:OWNER/REPO.gitautomatically. See[[reference-github-https-broken-use-ssh]]. - Vault is inside Google Drive → Drive flips permission bits and can corrupt
.gitover time. The script setsgit config core.fileMode falseand runsgit fsckright after clone. See[[project-code-repos-under-gdrive-corrupt]]. - Target is always
02_Programs/3-Software/<name>. Existing repos there (e.g.distilledbrew,preview-canvas-studio) are cloned as plain subfolders — no companion vault page is required.
Workflow
Step 1 — Run the clone script
bash .claude/skills/clone-software-repo/scripts/clone-to-software.sh <url|owner/repo> [target-name]- Accepts
https://github.com/OWNER/REPO[.git],git@github.com:OWNER/REPO.git, bareOWNER/REPO, or a…/tree/BRANCHlink (branch is honored). [target-name]is optional — defaults to the repo name. Use it to avoid a name clash or rename on disk.- Add
--dry-runto print the parsed owner/repo/target without cloning (use it if the URL looks unusual before committing). - The script refuses to overwrite an existing folder (exit 3) — never clobber.
The script prints a final block: path, branch, latest commit, stack/install, whether .env and agent docs (AGENTS.md/CLAUDE.md) are present.
Step 2 — Report to the user
Relay a tight summary:
| Field | Value |
| Repo | owner/repo |
| Landed at | 02_Programs/3-Software/<name> |
| Branch · latest | main · sha "msg" |
| Install | e.g. bun install |
Has .env / agent docs | yes/no |
Then the obvious next step: cd "02_Programs/3-Software/<name>" && <install>, and (if no .env but an .env.example exists) note they'll need to fill secrets. If the repo has no AGENTS.md/CLAUDE.md, offer to scaffold one so terminal agents have context (don't auto-create).
Failure modes
- Bad/unparseable URL (exit 2): show what was passed; ask for a clean
owner/repoor full github.com link. - Target exists (exit 3): don't overwrite. Offer a different
[target-name], or confirm before removing the old one. - Clone failed (exit 4): almost always SSH key / access (private repo, wrong org). Confirm
ssh -T git@github.comworks and the user has access; HTTPS is NOT a fallback here. - fsck corrupt right after clone (exit 5): Drive interfered mid-clone. Remove the partial dir and retry; if it recurs, clone OUTSIDE Drive and symlink, or mark the folder available-offline first.
Notes
- No commits, installs, or dev servers are run by this skill — it clones + configures + reports. The user runs install/dev themselves (or asks next).
- Multiple repos: invoke once per URL (keeps each clone's output clean). For a batch, loop the script over the list in one Bash call.
Related
[[reference-github-https-broken-use-ssh]]·[[project-code-repos-under-gdrive-corrupt]]02_Programs/3-Software/SETUP_MAPPING.md— optional richer per-project vault structure if a repo graduates to a tracked project- Sibling:
[[gpt-chain-refresh]](refresh existing cloned repos)
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.

