add-repository
Clone a git repo or register a local folder into repos/ and update repos.md with its description
от raffertyuy★ 19 звёзд на GitHub
Установить add-repository в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Clone a git repository or register a local source folder into repos/ and add its entry to repos/repos.yaml and repos/repos.md.
The user will provide a git URL, local path, or directory name. For example:
/add-repository [email protected]:org/my-app.git— clone a git repo/add-repository https://github.com/org/my-app.git— clone a git repo/add-repository /path/to/local/repo— clone a local git repo/add-repository --local shared-config— create/register a local source folder/add-repository --local repos/my-scripts— register an existing local folder
Detecting Type
- If the user passes
--localflag, treat as a local source folder - If the argument is a git URL (contains
git@,https://,.git, or points to a directory with.git/), treat as a git repo - If ambiguous, ask the user
Git Repo Flow
Clone the repo into
repos/usinggit clone <url> repos/<repo-name>. Infer the repo name from the URL (e.g.,my-appfrom[email protected]:org/my-app.git). If a directory with that name already exists inrepos/, inform the user and stop.Analyze the newly cloned repo (see Analysis section below).
Update
repos/repos.yamlby adding an entry:- name: <repo-name> url: <git remote URL> branch: <current branch> prefix: <short prefix> description: <1-line summary>Update
.gitignore— addrepos/<repo-name>/to.gitignoreif not already present.Update
repos/repos.md(see repos.md section below).
Local Folder Flow
Create or verify the directory:
- If
repos/<name>/doesn't exist, create it withmkdir -p repos/<name> - If it already exists, verify it does NOT have a
.git/directory (otherwise suggest adding as a git repo) - If a matching entry already exists in
repos/repos.yaml, inform the user and stop
- If
Analyze the folder if it has contents (see Analysis section below).
Update
repos/repos.yamlby adding an entry:- name: <folder-name> type: local prefix: <short prefix> description: <1-line summary>Ask about git tracking — local folders can be either tracked by the root repo or gitignored. Ask the user: "Should
repos/<folder-name>/be tracked by git, or gitignored?"- If tracked (default): ensure
repos/<folder-name>/is NOT in.gitignore(remove if present). Setgitignore: falsein the yaml entry. - If gitignored: add
repos/<folder-name>/to.gitignore. Setgitignore: truein the yaml entry. - Note: Git repos (
type: git) are always gitignored — this choice only applies to local folders.
- If tracked (default): ensure
Update
repos/repos.md(see repos.md section below).
Analysis
For both git repos and local folders:
- Read its README.md (or README) if one exists
- Check its
package.json,Cargo.toml,go.mod,pyproject.toml, or equivalent to understand the tech stack - For git repos: read its git remote URL (
git -C repos/<name> remote get-url origin) - Briefly look at the top-level directory structure
- Check which agent instruction files exist:
CLAUDE.md,AGENTS.md,.github/copilot-instructions.md
repos.md Update
Append a new section to repos/repos.md:
## <name>
- **Type**: git | local
- **Remote**: <git remote URL> *(git repos only)*
- **Tech stack**: <languages, frameworks, key dependencies>
- **Description**: <1-2 sentence summary from README or inferred from code>
- **Key paths**: <notable top-level directories and what they contain>
- **Agent instructions**: <list which of CLAUDE.md, AGENTS.md, .github/copilot-instructions.md exist, or "None">
Omit the Remote line for local entries. If repos/repos.md still has the placeholder comment (<!-- No repositories found... -->), remove it before appending.
If repos/repos.yaml has an empty list (repos: []), replace it with the new entry. Otherwise append to the list. Infer a sensible prefix from the name (first 2-4 characters or a natural abbreviation). If unsure, ask the user.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-repository?
Clone a git repo or register a local folder into repos/ and update repos.md with its description
Как установить скилл add-repository?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-repository запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…