跳到正文
cccskills
免费在 GitHub 公开

mistake-notebook

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 again'

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Mistake Notebook

Location

Mistake Notebook appear in two locations:

  • Project-local Mistake Notebook: MISTAKE.md in project root folder.
  • Universal Mistake Notebook: ~/MISTAKE.md in user home directory.

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:

  • Record project related mistakes not applies universally.
  • Tracked by git if in a git repository.

Universal Mistake Notebook ~/MISTAKE.md:

  • Record generic, programmatic mistakes that has no project-local context.
  • Appears in user home directory.

Triggers

Trigger 1: Severe Problem Encountered

When encounter a severe problem:

  • Look for solution in both MISTAKE.md and ~/MISTAKE.md.
  • If found:
    • Try fix the problem using the solution found in Mistake Notebook.
    • If problem fixed:
      • Done.
    • If problem persists:
      • Figure out why the existing solution in Mistake Notebook didn't work.
      • If the problem solved:
        • Goto 'Trigger 2: Severe Problem Fixed'
  • If not found:
    • Work out the problem on ourselves.
    • If the problem solved:
      • Goto 'Trigger 2: Severe Problem Fixed'

Trigger 2: Severe Problem Fixed

After you fixed a severe mistake:

  • If the problem is solved with a clear solution that is valuable to be recorded:
    • Goto 'Memorizing Problem Solutions'.

Trigger 3: User Ask for Memorizing Mistake

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

  • If the problem not solved yet according to conversation context:
    • Work on solve the problem first.
    • If the problem is solved:
      • Report user for your discovery.
      • Goto 'Memorizing Problem Solutions'.
  • If the problem is solved as user intented:
    • Goto 'Memorizing Problem Solutions'.

Memorizing Problem Solutions

  • If a problem is solved with a clear solution:
    • Check if this problem is already recorded in MISTAKE.md and ~/MISTAKE.md:
      • Already recorded:
        • If the recorded solution is not working or out-of-date:
          • Update the recorded solution according to 'Mistake Solution Format'.
      • Not recorded yet:
        • If the problem is related to this project:
          • Choose MISTAKE.md.
        • If the problem is generic and universal:
          • Choose ~/MISTAKE.md.
        • Append soltuion to the choosen Mistake Notebook according to 'Mistake Solution Format'.
        • Make a brief report in response for:
          • The mistake you made.
          • What you learnt from this mistake.
          • What is the solution to the problem.
          • Report that you have updated the Mistake Notebook.

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

  • If Mistake Notebook not exist, create one.
  • If Mistake Notebook exist, append to it.
  • If writting into Mistake Notebook failed due to permission issues, report by outputing response in the 'Mistake' format.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Browser automation CLI for AI agents. Use when needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. TRIGGER when user requests to "open a website", "fill out a form", "click a button", "take a screenshot", "debug this in browser", "scrape data from a page", "test this web app", "login to a site", "frontend UI/UX aesthetics", "automate browser actions", or any task requiring programmatic web interaction.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

Review common AI slops of defensive programming patterns, avoid silent errors. TRIGGER when reviewing code for defensive anti-patterns, writing fail-fast code, or auditing error handling quality.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

ast-grep

免费

Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search, or when a simple grep/glob search is insufficient for structural code pattern matching.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

Best practices for AI-driven English-to-Chinese translation. This skill should be used when the user asks to "translate to Chinese", "update the Chinese translation", "improve Chinese translation", "fix translation quality", "review Chinese translation", or when translating any English text into Chinese. Also applies when polishing an existing Chinese translation of English content.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to bilibili", "monitor bilibili live room", "search bilibili", "get bilibili comments", or needs guidance on the bilibili_api Python library usage, authentication, API endpoints, or workflow patterns.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

This skill should be used when sending images, files, or notifications back to the user via messaging platforms (Discord, Feishu, Telegram, etc.) through cc-connect. TRIGGER when agent generates a plot/chart/screenshot and wants to show the user; agent creates a report/PDF/file the user should receive; agent needs to proactively notify the user (e.g. task completed, alert, reminder); user asks to "send image", "show me the chart", "notify me", "send the file", "send to Telegram", "show plot in Discord".

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

查看 archibate 的全部技能

报告此技能的问题