Skip to content
Skill

Record bug fix memory

Captures a fixed bug's root cause, fix and verification as reusable repo memory

Record bug fix memory is an open-source agent skill for knowledge and memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

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

Similar skills

About Record bug fix memory

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。

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 (8 KB) on GitHub on 4 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 common-tools plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/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:

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools