Skip to content
Skill

Recoil

Recalls past repo mistakes before edits and records lessons after surprises

Recoil is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Recoil

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.

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 (7 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 recoil plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/EclipseElips/recoil.git --path skills/recoil

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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