# Recoil

> Recoil is an open-source agent skill for developer tools. Recalls past repo mistakes before edits and records lessons after surprises. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/EclipseElips/recoil/tree/main/skills/recoil
- **Repository:** https://github.com/eclipseelips/recoil
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** recoil
- **Collection:** https://github.com/EclipseElips/recoil
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives an agent a small local memory for a repository, kept as a plain-text store and managed through the recoil CLI. Before the agent changes files or runs a test, build or migration, it runs a recall against the files in play and task wording, and it must address any lesson that surfaces. After a correction, a revert, an unexpected failure or a non-zero exit, it records a short lesson with a trigger, weight and cue words so the same situation is flagged later.

Matching is deterministic keyword overlap with no embeddings and no network calls. Lessons weaken over time unless they keep being recalled, and the skill describes commands for listing, forgetting and decaying stored entries. A guard mode is available for git hooks, and the Claude Code plugin can run session-start digests, prompt recall and pre-edit warnings automatically.

It expects the recoil binary on PATH and a one-time init in the repo. Other clients have no hooks, so the recall and encode steps depend entirely on the agent following the instructions. Git hooks for pre-commit guarding and revert recording can be installed with a dedicated command, which does not overwrite existing hooks.

## When your agent uses it

> This skill should be used to keep operational memory for this repo via the `recoil` CLI — recall past mistakes before acting, encode the lesson when something goes wrong, and act on whatever surfaces. Use it whenever the task changes this repo: fixing a bug, implementing a feature, refactoring, debugging, editing code or config, or running a test suite, build, or migration. Run `recoil recall` BEFORE the first Edit/Write/MultiEdit of a task and read what fires. Run `recoil encode` AFTER a surprise: the user corrects or reverts a change (says "no", "that's wrong", "don't do that", "undo"), a test or build expected to pass fails, or a command exits non-zero unexpectedly. Triggers: correction, revert, test-fail, error. Not for read-only questions, pure exploration, or anything that changes no files.

## What it can access

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

- [Instructions only, no scripts](https://github.com/EclipseElips/recoil/tree/HEAD/skills/recoil)
- [License: MIT](https://github.com/EclipseElips/recoil/tree/HEAD/skills/recoil)

## Features

- **Pre-edit recall:** Runs keyword recall against the files and task intent before code changes or test runs.
- **Surprise encoding:** Records a one-line lesson with a trigger type, weight and matching cue words.
- **Warn-only guard:** Flags remembered failures in git hooks without blocking the commit.
- **Lesson decay:** Weakens unused lessons over time while recalled ones are renewed.
- **Store housekeeping:** Lists, forgets and decays stored lessons from the command line.
- **Git hook installer:** Wires pre-commit guarding and revert recording without overwriting existing hooks.

## Good for

- Check past lessons about a test runner before fixing a failing suite
- Record why a reverted change broke clients so it is flagged next time
- Review stored repo lessons and remove outdated ones
- Warn before committing files that previously caused trouble

## Install

### Claude Code

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

```sh
/plugin marketplace add EclipseElips/recoil
/plugin install recoil@recoil
```

Or copy only this skill to `~/.claude/skills/recoil`:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/recoil` 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/EclipseElips/recoil.git --path skills/recoil
```

Or copy the folder to `~/.gemini/skills/recoil` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/EclipseElips/recoil.git
```

Then copy `recoil/skills/recoil` into your agent's skills folder as `recoil`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

The recoil CLI must be on PATH and the repo must be initialised once with recoil init. If the binary is missing, the README install steps apply.

### When does Recoil trigger?

It is meant for tasks that change files or run tests, builds or migrations, and after corrections, reverts, failing tests or non-zero command exits. It is not for read-only questions or exploration.

### Does Recoil send data over the network?

No. Matching is keyword overlap on a local plain-text store with no embeddings and no network access.

### Does Recoil block commits?

No. The guard is warn-only, though warnings about past failures should be addressed before proceeding.

### How do I install Recoil in Claude Code?

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

### Does Recoil 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 Recoil?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Recoil?

The closest alternatives to Recoil are Recall, Elephant, Correct, Reflect and Nemo rl session memory.

## Where this comes from

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

## Alternatives

- [Recall](https://ai-powered.com/skills/recall-michael-denyer): Recall is an open-source agent skill for developer tools.
- [Elephant](https://ai-powered.com/skills/elephant): Elephant is an open-source agent skill for developer tools.
- [Correct](https://ai-powered.com/skills/correct): Correct 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.
- [Nemo rl session memory](https://ai-powered.com/skills/nemo-rl-session-memory): Nemo rl session memory is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember): Remember is an open-source agent skill for developer tools.
- [Repo story time](https://ai-powered.com/skills/repo-story-time): Repo story time is an open-source agent skill for developer tools.
- [Ecc guide](https://ai-powered.com/skills/ecc-guide): Ecc guide is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/recoil
