Add repository

From raffertyuy/repo-of-repos · View interactive version

Add repository is an AI agent skill from the GitHub repository raffertyuy/repo-of-repos. Clone a git repo or register a local folder into repos/ and update repos.md with its description

How to use this skill

Skill file

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:

Detecting Type

Git Repo Flow

  1. Clone 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.
  1. Analyze the newly cloned repo (see Analysis section below).
  1. Update repos/repos.yaml by adding an entry:

```yaml

url: <git remote URL>

branch: <current branch>

prefix: <short prefix>

description: <1-line summary>

```

  1. Update .gitignore — add repos/<repo-name>/ to .gitignore if not already present.
  1. Update repos/repos.md (see repos.md section below).

Local Folder Flow

  1. Create or verify the directory:
  1. Analyze the folder if it has contents (see Analysis section below).
  1. Update repos/repos.yaml by adding an entry:

```yaml

type: local

prefix: <short prefix>

description: <1-line summary>

```

  1. 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?"
  1. Update repos/repos.md (see repos.md section below).

Analysis

For both git repos and local folders:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.