Clone Repos logo

Clone Repos

Community
jbdamask
clone-repos

Bulk-clone a set of git repositories into a single root directory using the bundled clone-repos.sh script. Use this whenever the user wants to clone several repos at once, pull down all the repos for a project or engineering estate, lay multiple repositories out side-by-side under one folder, or set up a local working tree of many repos (e.g. as the first step before reading, documenting, or doing an architecture review across a codebase). Trigger on phrases like 'clone these repos', 'clone all the repos', 'bulk clone', 'clone a bunch of repositories into a folder', or when the user hands over a list of git URLs and a destination directory.

Overview

Publisherjbdamask
Repositoryjohn-claude-skills
Skill nameclone-repos
Stars
29
Forks
3
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jbdamask on GitHub. Read the source before you install it.

Installation

Install the Clone Repos AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jbdamask/john-claude-skills/tree/main/plugins/john-skills/skills/clone-repos
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jbdamask/john-claude-skills.git /tmp/john-claude-skills
mkdir -p .claude/skills
cp -r /tmp/john-claude-skills/plugins/john-skills/skills/clone-repos .claude/skills/clone-repos
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Clone Repos in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Clone Repos on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Clone Repos is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

clone-repos

Clone many git repositories into one root directory in a single step, using the bundled assets/clone-repos.sh. Each repo lands as a subdirectory beneath the root.

When to use this

Reach for this whenever the user needs more than one repo cloned into a common location — for example, pulling down every service in a project, or staging a client's repos before an architecture/documentation pass. If the user only wants a single repo cloned, a plain git clone is simpler and you don't need this skill.

What you need from the user

Two things — ask for whatever is missing:

  1. A destination (root) directory — where the repos should land. The script creates it if it doesn't exist.
  2. The repository URLs — either as a list in the conversation, or a path to a file with one URL per line.

If the user mentions a maximum number of repos, note it — the script defaults to cloning at most 5 and that cap is raised with -n.

How to run it

The script lives at assets/clone-repos.sh relative to this skill's directory. Resolve that absolute path, ensure it's executable, then invoke it with the Bash tool. The general form:

<skill-dir>/assets/clone-repos.sh [-n NUM] [-f FILE] ROOT_DIR [REPO_URL ...]
Option / argMeaning
ROOT_DIRRequired. Root directory the repos are cloned beneath (created if missing).
REPO_URL …Zero or more git URLs to clone.
-f FILERead repo URLs from a file, one per line (# comments and blanks ignored).
-n NUMClone at most NUM repos. Default 5. Also settable via CLONE_REPO_LIMIT.
-hPrint help.

URLs passed on the command line and via -f FILE are combined; the -n limit applies to the total.

Important: the default cap is 5. If the user supplies more than 5 URLs (or asks for "all of them"), pass -n with a number at least as large as the count — otherwise the extras are silently left unclone­d (the script reports how many it skipped). When in doubt, set -n to the number of URLs you were given.

Examples

A few URLs given inline, into a fresh folder:

bash
/path/to/skill/assets/clone-repos.sh -n 3 ~/clients/acme \
  https://github.com/acme/api.git \
  https://github.com/acme/web.git \
  https://github.com/acme/common.git

A list the user keeps in a file:

bash
/path/to/skill/assets/clone-repos.sh -n 20 ~/clients/acme -f ~/acme-repos.txt

Override the cap with the environment variable instead of -n:

bash
CLONE_REPO_LIMIT=50 /path/to/skill/assets/clone-repos.sh ~/clients/acme -f repos.txt

After running

The script is safe to re-run — it skips any repo already cloned (detected by a .git directory at the destination) and prints a final cloned / skipped / failed summary. Relay that summary to the user, and if any clone failed (non-zero exit), surface which URL failed rather than reporting success. Common causes: a private repo the user isn't authenticated for, or a typo'd URL.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Clone Repos AI skill do?

Bulk-clone a set of git repositories into a single root directory using the bundled clone-repos.sh script. Use this whenever the user wants to clone several repos at once, pull down all the repos for a project or engineering estate, lay multiple repositories out side-by-side under one folder, or set up a local working tree of many repos (e.g. as the first step before reading, documenting, or doing an architecture review across a codebase). Trigger on phrases like 'clone these repos', 'clone all the repos', 'bulk clone', 'clone a bunch of repositories into a folder', or when the user hands o...

Why use Clone Repos on TypingMind?

Because you install it once and use it with any model. Clone Repos is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Clone Repos in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jbdamask/john-claude-skills/tree/main/plugins/john-skills/skills/clone-repos. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Clone Repos?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Clone Repos?

As many as you like. As long as a model supports skills, you can use Clone Repos with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Clone Repos AI skill free?

Yes. It is published on GitHub by jbdamask under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇