# Repo scan

> Repo scan is an open-source agent skill for security. Has the agent flag security-sensitive files and repo facts for Hedwig to track. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tanjalshukla/HedwigCLI/tree/main/plugin/skills/repo-scan
- **Repository:** https://github.com/tanjalshukla/hedwigcli
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** repo-scan
- **Collection:** https://github.com/tanjalshukla/HedwigCLI
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill tells a coding agent to review a repository's file layout when it first starts work in that repo during a session. The agent looks for security-relevant files that simple keyword matching would miss, such as signing modules, secret-handling helpers or session stores, and notes a few durable facts about how the codebase works.

The findings are recorded by running a bundled Python script, hedwig-scan.py, which receives a JSON payload with the repository path, a list of flagged paths with reasons, and optional facts. The skill states that flagging only adds review caution and never removes existing protection. The scan is meant to run once per session, early in the work.

It is written for use with the Hedwig governance tool and expects the Hedwig Claude Code plugin to be installed so the script path resolves. The command needs no credentials and makes no network calls, and if it fails the agent continues with Hedwig's default keyword detection.

## When your agent uses it

> When you are new to a repository this session (the first substantive turn, or when Hedwig's SessionStart context asks for a scan), reason over the file tree to identify security-sensitive files that keyword matching would miss and durable repo facts worth remembering, and record them to Hedwig. This sharpens which edits Hedwig surfaces for review and what it recalls in future sessions. Run once per repo per session, early.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tanjalshukla/HedwigCLI/tree/HEAD/plugin/skills/repo-scan)
- [License: MIT](https://github.com/tanjalshukla/HedwigCLI/tree/HEAD/plugin/skills/repo-scan)

## Features

- **Security file review:** Guides the agent to pick out authentication, signing, secrets and payment files that keyword rules may overlook.
- **Session-once scanning:** Asks the agent to run the scan a single time per repository per session, early in its work.
- **Repo fact capture:** Records short, repository-specific facts such as where the auth flow lives or how config is loaded.
- **Recorded via script:** Sends the flagged paths and facts to a bundled Python script in one JSON call.
- **Additive caution only:** Flagging a file can only add review steps and cannot lower an existing sensitivity level.

## Good for

- Flag signing and token-handling modules before editing a new codebase
- Record where authentication and config loading happen for future sessions
- Identify payment or billing files that should get extra review

## Install

### Claude Code

This skill ships in the `hedwig` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tanjalshukla/HedwigCLI
/plugin install hedwig@hedwig-marketplace
```

Or copy only this skill to `~/.claude/skills/repo-scan`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tanjalshukla/HedwigCLI.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/repo-scan &&
cp -R "$tmp/plugin/skills/repo-scan" ~/.claude/skills/repo-scan &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/repo-scan` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/repo-scan` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tanjalshukla/HedwigCLI.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/repo-scan &&
cp -R "$tmp/plugin/skills/repo-scan" ~/.agents/skills/repo-scan &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/repo-scan` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/repo-scan` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tanjalshukla/HedwigCLI.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/repo-scan &&
cp -R "$tmp/plugin/skills/repo-scan" ~/.cursor/skills/repo-scan &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/repo-scan` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/tanjalshukla/HedwigCLI.git --path plugin/skills/repo-scan
```

Or copy the folder to `~/.gemini/skills/repo-scan` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/repo-scan`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tanjalshukla/HedwigCLI.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/repo-scan &&
cp -R "$tmp/plugin/skills/repo-scan" ~/.copilot/skills/repo-scan &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/repo-scan` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tanjalshukla/HedwigCLI.git
```

Then copy `HedwigCLI/plugin/skills/repo-scan` into your agent's skills folder as `repo-scan`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill run?

Once per repository per session, early on, after the agent has read enough of the layout, or when Hedwig's session-start context asks for a scan.

### What does Repo scan need to function?

Python 3 to run the bundled hedwig-scan.py script and the Hedwig Claude Code plugin so the plugin root path resolves. It needs no credentials and makes no network calls.

### What happens if the scan command fails?

The agent continues, and Hedwig falls back to keyword-based detection of sensitive files.

### Can Repo scan make a file less protected?

No. The skill states that flagging a file only adds caution and cannot clear a file Hedwig already treats as sensitive.

### How do I install Repo scan in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/repo-scan to use it in all your projects, or to .claude/skills/repo-scan in one project. Or install the hedwig plugin, which includes it: /plugin marketplace add tanjalshukla/HedwigCLI, then /plugin install hedwig@hedwig-marketplace.

### Does Repo scan run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Repo scan?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Repo scan?

The closest alternatives to Repo scan are Repo hypotheses, Security review, Security review, Skill scanner and Gha security review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Repo hypotheses](https://ai-powered.com/skills/repo-hypotheses): Repo hypotheses is an open-source agent skill for developer tools.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-ramboz): Security review is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-xiaolai): Security is an open-source agent skill for security.
- [Security model](https://ai-powered.com/skills/security-model): Security model is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/repo-scan
