smithery.ai

find-repo

Find clones of a repository across all machines

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,978 B
  • docs SUMMARY.md 64 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Find Repository

This skill finds all clones of a repository across all machines and environments.

Instructions for Agent

1. Identify Target Repository

  • If repo_name parameter not provided:

- Use current repository: git rev-parse --show-toplevel - Extract repo name from path

  • If repo_name provided:

- Normalize to repo slug (basename)

2. Call Python Script

Execute the query_memory.py script:

cd "${CLAUDE_PLUGIN_ROOT}"

# Detect Python command (python3 on Linux, python on Windows)
PYTHON_CMD=$(command -v python3 || command -v python)

# Try to use venv if available, create if needed, skip if venv creation fails
if [ -d "venv" ]; then
  # Activate venv (cross-platform)
  if [ -f "venv/bin/activate" ]; then
    source venv/bin/activate
  elif [ -f "venv/Scripts/activate" ]; then
    source venv/Scripts/activate
  fi
elif $PYTHON_CMD -m venv venv 2>/dev/null; then
  echo "Setting up Python environment (first time)..."
  if [ -f "venv/bin/activate" ]; then
    source venv/bin/activate
  elif [ -f "venv/Scripts/activate" ]; then
    source venv/Scripts/activate
  fi
  pip install -r requirements.txt
else
  echo "Note: Using system Python (venv creation not available)"
fi
# Use python3 on Linux/WSL, python on Windows
$PYTHON_CMD scripts/query_memory.py find-repo \
  --config-repo "$YW_CONFIG_REPO_PATH" \
  --repo-name {repo_name}

3. Parse Results

Expected JSON output:

{
  "repository": "dynamics-solutions",
  "description": "Dynamics solution packages...",
  "clones": [
    {
      "machine": "work-main",
      "os": "windows",
      "path": "C:\\Users\\twatana\\repos\\dynamics-solutions",
      "last_accessed": "2026-01-31T14:30:00Z"
    },
    {
      "machine": "work-devbox",
      "os": "wsl",
      "path": "/home/twatana/repos/dynamics-solutions",
      "last_accessed": "2026-01-15T10:00:00Z"
    }
  ],
  "tags": ["azure-devops", "dynamics"],
  "found": true
}

4. Format and Display

Present results in a user-friendly format:

Repository: dynamics-solutions
Description: Dynamics solution packages...

Found 2 clones:

1. work-main (Windows)
   Path: C:\Users\twatana\repos\dynamics-solutions
   Last accessed: Jan 31, 2026

2. work-devbox (WSL)
   Path: /home/twatana/repos/dynamics-solutions
   Last accessed: Jan 15, 2026

Tags: azure-devops, dynamics

If found: false:

Repository '{repo_name}' not found in memory system.

This repository has not been tracked yet. Use /describe-repo to add it.

Example Usage

User: "Hey where else do I have clones of this repository?"

Agent:

  1. Identifies current repository
  2. Calls query_memory.py find-repo
  3. Formats and displays clone locations across machines