Skip to content
Skill

Repo hypotheses

Proposes standing coding rules for Hedwig from a session's governed edit history

Repo hypotheses is an open-source agent skill for developer tools. It is available on Claude Code.

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

Similar skills

About Repo hypotheses

This skill lets an agent review a stretch of governed edits in a repository and look for higher-level patterns in how the developer steers the work. The agent reads the session's decision traces through a bundled Python helper, then proposes candidates in three forms: observed facts about the codebase, coding-style guidelines, and when-to-pause preferences.

Each proposal must cite at least one real trace identifier from the digest, which keeps suggestions tied to recorded decisions. Proposals are stored as pending hypotheses and do not change Hedwig's behavior until the developer confirms them with a separate learn command. Preferences can be flagged as high-stakes, which raises the evidence required before they surface.

The skill is meant to run occasionally, after several governed decisions in a session, rather than on every turn. It needs Python 3 and the Hedwig plugin's bin directory, and it uses no network access or credentials.

When your agent uses it

After a stretch of governed work in a repo (several edits Hedwig has auto-applied or surfaced this session), study the decision traces and propose standing rules Hedwig should consider — coding-style guidelines, repo facts, or when-to-pause preferences. This is the plugin's semantic noticer: you reason over the patterns; Hedwig stores your proposals as PENDING candidates the developer confirms later. Run occasionally, not every turn.

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 (4 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-hypotheses:

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

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/repo-hypotheses 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-hypotheses &&
cp -R "$tmp/plugin/skills/repo-hypotheses" ~/.agents/skills/repo-hypotheses &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/repo-hypotheses 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-hypotheses &&
cp -R "$tmp/plugin/skills/repo-hypotheses" ~/.cursor/skills/repo-hypotheses &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/repo-hypotheses 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-hypotheses

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/repo-hypotheses 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-hypotheses into your agent's skills folder as repo-hypotheses. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Trace digest reading
Reads the session's decision traces with a bundled helper so each decision has a citable identifier.
Grounded rule proposals
Proposes repo facts, style guidelines or pause preferences that must cite real trace identifiers.
Pending review workflow
Stores proposals as pending candidates that the developer confirms or ignores later.
High-stakes flagging
Marks preferences touching security-sensitive paths so they need stronger evidence before surfacing.
Occasional execution guidance
Advises running once per session after a meaningful stretch of edits rather than every turn.

Good for

  • Suggest where tests should live based on recent test edits
  • Propose a rule to pause before changing migration files
  • Capture a preference to keep service-layer and route changes separate
  • Record repo facts that always change together

Repo hypotheses FAQ

What does Repo hypotheses need to run?

It calls a Python 3 helper script bundled with the Hedwig plugin and reads the session's decision traces. It uses no network access or credentials.

Does Repo hypotheses change how the agent behaves immediately?

No. Proposals are stored as pending hypotheses, and nothing changes until the developer confirms them with /hedwig-learn.

How often should Repo hypotheses run?

Occasionally, after roughly five or more governed decisions in a session. Once per session is suggested and running on every turn is discouraged.

What kinds of proposals can Repo hypotheses make?

Three types: logic notes about the codebase, behavioral guidelines for coding style, and preferences for when to pause.

How do I install Repo hypotheses in Claude Code?

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

Does Repo hypotheses 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 hypotheses?

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 hypotheses?

The closest alternatives to Repo hypotheses are Repo scan, Confidence checkin, Retro, Japanese writing drafter and Repository governance lifecycle.

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. Has the agent flag security-sensitive files and repo facts for Hedwig to track

    • Open source
    • 5 GitHub stars
    • Security