Localref

Clone a GitHub repo or download a reference source locally to /tmp/ for searching and reading. Use when you need to reference external code, docs, or examples to complete the current task.

samgalanakis Updated

File contents

Localref

Clone or download external references to /tmp/ for local searching and reading.

Workflow

  1. Clone — shallow clone to /tmp/ref-<name>:

    git clone --depth 1 https://github.com/owner/repo.git /tmp/ref-<name>
    

    For a specific branch/tag: add --branch <ref>. If /tmp/ref-<name> already exists, reuse it.

  2. Search and read — grep, glob, read files to find what you need.

  3. Apply — use findings to complete the task in the working repo.

For non-git sources (tarballs, zips): curl -L <url> into /tmp/ref-<name> and extract.

samgalanakis/skills commit 9efa4c69f5

Frequently asked questions

npx get-skill add samgalanakis/localref