# Record bug fix memory

> Record bug fix memory is an open-source agent skill for knowledge and memory. Captures a fixed bug's root cause, fix and verification as reusable repo memory. 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/ruan-cat/monorepo/tree/main/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** record-bug-fix-memory
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-04

## About

This skill turns a bug that has already been located and fixed into durable notes for future agents. It is meant for recording what happened, why it happened, how it was resolved and what to remember, not for performing the fix itself. The written record is split in two: a compact summary index kept in the skill's SKILL.md and a separate dated case file per incident that holds the full write-up.

The workflow asks the agent to confirm the root cause is actually understood before writing anything, compress the findings into a handful of high-signal facts, and fill a fixed case-file template covering symptoms, root cause, misleading signals, the effective change, verification and follow-up constraints. It also advises placing repo-wide lessons in the root AGENTS.md file, syncing to a local Memorix memory when that tool is available in the session, and re-reading the text to strip noise.

The skill is written in Chinese and expects the agent to have the repository's file access and, optionally, a Memorix MCP server. It includes guidance on which verification evidence is worth recording and warns against writing speculative conclusions or pasting full incident logs into SKILL.md.

## When your agent uses it

> 当用户要求在 bug 已经定位并修复后，记录排错经验、事故结论、AI 记忆更新、 复盘摘要或本地 MCP 记忆时使用。这个技能只负责沉淀 "发生了什么、为什么会发生、如何修好、以后要记住什么"， 不要把它用于实际修复 bug。

## What it can access

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

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory)

## Features

- **Two-layer memory storage:** Keeps a short summary index in SKILL.md and full incident details in separate dated markdown files.
- **Fixed case file template:** Provides a six-section structure covering symptoms, root cause, misleading signals, fix, verification and constraints.
- **Verification evidence guidance:** Favors repeatable checks such as type-check output or fresh logs over vague claims that something works.
- **Memorix memory sync:** Describes how to mirror conclusions into a local Memorix memory using gotcha, decision or problem-solution types.
- **Repo-level rule placement:** Decides when a lesson belongs in the root AGENTS.md rather than the skill folder.

## Good for

- Record the root cause and fix of a build configuration bug for future agents
- Write a post-incident summary after a dependency upgrade broke the app
- Add a lesson learned from a misleading console error to the project memory
- Sync a resolved debugging conclusion into a local Memorix memory

## Install

### Claude Code

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

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/record-bug-fix-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/record-bug-fix-memory &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory" ~/.claude/skills/record-bug-fix-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/record-bug-fix-memory` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/record-bug-fix-memory` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/record-bug-fix-memory &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory" ~/.agents/skills/record-bug-fix-memory &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/record-bug-fix-memory` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/record-bug-fix-memory` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/record-bug-fix-memory &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory" ~/.cursor/skills/record-bug-fix-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/record-bug-fix-memory` 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/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory
```

Or copy the folder to `~/.gemini/skills/record-bug-fix-memory` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/record-bug-fix-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/record-bug-fix-memory &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory" ~/.copilot/skills/record-bug-fix-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/record-bug-fix-memory` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/common-tools/skills/init-ai-md/templates/record-bug-fix-memory` into your agent's skills folder as `record-bug-fix-memory`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Record bug fix memory be used?

When a bug has been reproduced, the effective fix is clear and the lesson is specific to the repository. It should not be used while the root cause is still under investigation or when the task is to implement a fix.

### Does Record bug fix memory change my code?

No. The skill only guides writing memory notes such as case files, index entries and Memorix records; it does not perform the bug fix.

### Where are the case files stored?

Each detailed case is written as a separate YYYY-MM-DD-slug.md file in the skill's own directory, and a summary entry is added to the case index in SKILL.md.

### What if Memorix tools are not available in the session?

The skill says the agent must state clearly to the user that it cannot write to Memorix in that session, rather than assuming the tools exist.

### How do I install Record bug fix memory in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/record-bug-fix-memory to use it in all your projects, or to .claude/skills/record-bug-fix-memory in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

### Does Record bug fix memory 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 Record bug fix memory?

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 Record bug fix memory?

The closest alternatives to Record bug fix memory are Vibe reflect and compound, Upload debug memory, Remember, Memory distill and Agent debug memory.

## Where this comes from

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

## Alternatives

- [Vibe reflect and compound](https://ai-powered.com/skills/vibe-reflect-and-compound): Vibe reflect and compound is an open-source agent skill for knowledge and memory.
- [Upload debug memory](https://ai-powered.com/skills/upload-debug-memory-jinning6): Upload debug memory is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.
- [Memory distill](https://ai-powered.com/skills/memory-distill): Memory distill is an open-source agent skill for knowledge and memory.
- [Agent debug memory](https://ai-powered.com/skills/agent-debug-memory): Agent debug memory is an open-source agent skill for knowledge and memory.
- [Memory review](https://ai-powered.com/skills/memory-review): Memory review is an open-source agent skill for knowledge and memory.
- [Sh memory](https://ai-powered.com/skills/sh-memory): Sh memory is an open-source agent skill for knowledge and memory.
- [Kmg lesson capture](https://ai-powered.com/skills/kmg-lesson-capture): Kmg lesson capture is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/record-bug-fix-memory-ruan-cat
