Mistake notebook

From archibate/dotfiles-opencode · View interactive version

Mistake notebook is an AI agent skill from the GitHub repository archibate/dotfiles-opencode. Skill to query and update a mistake notebook to memorize mistake. Use this skill when: 1. Encountered a severe problem, needs to recall for historical problem solving experience 2. After fixed a severe mistake with a clear solution valuable to be recorded 3. User requested 'Do not make this mistake

How to use this skill

Skill file

Mistake Notebook

Location

Mistake Notebook appear in two locations:

Mistake Notebook is used to record common mistakes made in previous conversation, memorizing problem solving experience for future use. Agents can:

  1. Read Mistake Notebook for quick problem -> solution look up.
  2. Append to Mistake Notebook when new problem being solved.

This prevents agents from making the same mistake again.

Project-local vs Universal

Project-local Mistake Notebook MISTAKE.md:

Universal Mistake Notebook ~/MISTAKE.md:

Triggers

Trigger 1: Severe Problem Encountered

When encounter a severe problem:

Trigger 2: Severe Problem Fixed

After you fixed a severe mistake:

Trigger 3: User Ask for Memorizing Mistake

When user requested 'Do not make this mistake again':

Memorizing Problem Solutions

Mistake Solution Format

Mistake Notebook maintains a quick problem -> solution look up reference in the following format:

# Mistake Notebook

This is the Mistake Notebook, use the mistake-notebook skill to retrive more details.

Below is a list of mistakes I previously made and solved:

## Mistake - [A short title]

- Creation Date: YYYY-MM-DD
- Last Update Date: YYYY-MM-DD
- Project: [project folder path when this mistake was found]
- Branch: [branch when this mistake was happening]
- Commit: [commit SHA when this mistake was happening]

### Problem:

[list situations when the problem occurred:]
- XXX fails.
- YYY reports ZZZ.
- ...

### Insights:

[list your insights and discoveries when solving this problem:]
- This is because XXX lacks AAA.
- I found that YYY depends on BBB for CCC.
- ...

### Solution:

[A brief explaination (<10 words) on how this problem was solved.]

[list steps how this problem was solved:]
- Try turn on AAA.
- Try add BBB for CCC.
- ...
- And XXX fixed.

Edge Cases

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.