Skip to content
Skill

Repo scan

Has the agent flag security-sensitive files and repo facts for Hedwig to track

Repo scan is an open-source agent skill for security. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Repo scan

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Repo scan 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.

More from tanjalshukla/HedwigCLI

  1. Lets an agent flag its own uncertain code edits to Hedwig for human review

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Proposes standing coding rules for Hedwig from a session's governed edit history

    • Open source
    • 5 GitHub stars
    • Developer tools