# Repo hypotheses

> Repo hypotheses is an open-source agent skill for developer tools. Proposes standing coding rules for Hedwig from a session's governed edit history. 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-hypotheses
- **Repository:** https://github.com/tanjalshukla/hedwigcli
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** repo-hypotheses
- **Collection:** https://github.com/tanjalshukla/HedwigCLI
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## 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-hypotheses)
- [License: MIT](https://github.com/tanjalshukla/HedwigCLI/tree/HEAD/plugin/skills/repo-hypotheses)

## Features

- **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

## 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-hypotheses`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/repo-hypotheses` 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-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.

### Cursor

Copy the skill folder to `~/.cursor/skills/repo-hypotheses` 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-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.

### 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-hypotheses
```

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Repo scan](https://ai-powered.com/skills/repo-scan): Repo scan is an open-source agent skill for security.
- [Confidence checkin](https://ai-powered.com/skills/confidence-checkin): Confidence checkin is an open-source agent skill for developer tools.
- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.
- [Japanese writing drafter](https://ai-powered.com/skills/japanese-writing-drafter-chachamaru127): Japanese writing drafter is an open-source agent skill for developer tools.
- [Repository governance lifecycle](https://ai-powered.com/skills/repository-governance-lifecycle): Repository governance lifecycle is an open-source agent skill for developer tools.
- [Hunt regressions](https://ai-powered.com/skills/hunt-regressions): Hunt regressions is an open-source agent skill for developer tools.
- [Why](https://ai-powered.com/skills/why-michael-denyer): Why is an open-source agent skill for developer tools.
- [Reflect](https://ai-powered.com/skills/reflect-michael-denyer): Reflect is an open-source agent skill for developer tools.

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