ワンクリックで
add-repository
Clone a git repo or register a local folder into repos/ and update repos.md with its description
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Clone a git repo or register a local folder into repos/ and update repos.md with its description
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create an implementation plan in _plans/ with embedded repo context and step-by-step task lists
Execute a plan from _plans/, implementing steps, checking off tasks, running tests, and documenting fixes
Clone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
Find and remove stale entries from repos.yaml whose directories no longer exist on disk
Iterate through all sub-repos in repos/ and stage/commit/push each one, then do the same for the master repo
Stage, commit, and push changes for the master repo only (excludes sub-repos in repos/)
| name | add-repository |
| description | Clone a git repo or register a local folder into repos/ and update repos.md with its description |
| user-invocable | true |
| origin | template |
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 git@github.com: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--local flag, treat as a local source foldergit@, https://, .git, or points to a directory with .git/), treat as a git repoClone the repo into repos/ using git clone <url> repos/<repo-name>. Infer the repo name from the URL (e.g., my-app from git@github.com:org/my-app.git). If a directory with that name already exists in repos/, inform the user and stop.
Analyze the newly cloned repo (see Analysis section below).
Update repos/repos.yaml by adding an entry:
- name: <repo-name>
url: <git remote URL>
branch: <current branch>
prefix: <short prefix>
description: <1-line summary>
Update .gitignore — add repos/<repo-name>/ to .gitignore if not already present.
Update repos/repos.md (see repos.md section below).
Create or verify the directory:
repos/<name>/ doesn't exist, create it with mkdir -p repos/<name>.git/ directory (otherwise suggest adding as a git repo)repos/repos.yaml, inform the user and stopAnalyze the folder if it has contents (see Analysis section below).
Update repos/repos.yaml by 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?"
repos/<folder-name>/ is NOT in .gitignore (remove if present). Set gitignore: false in the yaml entry.repos/<folder-name>/ to .gitignore. Set gitignore: true in the yaml entry.type: git) are always gitignored — this choice only applies to local folders.Update repos/repos.md (see repos.md section below).
For both git repos and local folders:
package.json, Cargo.toml, go.mod, pyproject.toml, or equivalent to understand the tech stackgit -C repos/<name> remote get-url origin)CLAUDE.md, AGENTS.md, .github/copilot-instructions.mdAppend 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.