Skip to content
Back to skills

Use Reference Repos

ASecurity

Pull and inspect open-source reference code under .repos. Use when the user asks to examine code from an upstream project, when debugging or implementing an integration would benefit from reading dependency source, or when comparing Codevisor behavior with another open-source project.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
developmentdebugginggit

Works with

  • cli

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add 851-labs/codevisor --skill use-reference-repos --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Use Reference Repos?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Use Reference Repos
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/851-labs-use-reference-repos/badge)](https://www.skillsdirectory.com/skills/851-labs-use-reference-repos)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: use-reference-repos
description: Pull and inspect open-source reference code under .repos. Use when the user asks to examine code from an upstream project, when debugging or implementing an integration would benefit from reading dependency source, or when comparing Codevisor behavior with another open-source project.
---

# Use reference repositories

Use `.repos` for open-source source-code references. Do not use the old refs CLI or a `references` directory.

Feel free to fetch reference code whenever it would improve the work. This is pre-authorized: do not ask the user before initializing an existing reference submodule or adding a useful open-source repository as a new submodule.

## Use an existing reference

Check `.gitmodules`, then initialize only the repository needed:

```sh
git submodule update --init .repos/<repository>
```

The pinned commit is usually the right starting point. If current upstream code matters, fetch it normally and inspect the remote branch:

```sh
git -C .repos/<repository> fetch origin
```

## Add a reference

When a useful project is not listed, add its official upstream repository directly:

```sh
git submodule add https://github.com/<owner>/<repository>.git .repos/<repository>
```

Adding the submodule and `.gitmodules` entry is an intended repository change. Keep reference names short and match the upstream repository name unless that would be ambiguous.

## Rules

- Pull the references relevant to the task; do not initialize every submodule by default.
- Treat reference repositories as upstream source to inspect. Do not edit their contents unless the user explicitly asks to modify or contribute to that project.
- Prefer source inspection over guessing when behavior depends on an upstream implementation.
- Report the upstream repository and commit used when the answer or implementation materially depends on it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.