其他

lesson

rohitg00/agentmemory

Save a correction or hard-won rule as a confidence-weighted lesson that resurfaces before similar work. Use when the user corrects your approach, says "learn this", "always" or "never do X", or you notice yourself repeating a past mistake.

  • 4087 次安装
  • 3万 星标
  • 收录于

安装命令

npx skills add https://github.com/rohitg00/agentmemory --skill lesson

SKILL.md

The user wants a lesson recorded from the text they passed with the command.

Quick start

memory_lesson_save {
  "content": "Run vitest with --run in CI contexts; bare vitest enters watch mode and hangs the pipeline.",
  "context": "any script or CI step that invokes vitest",
  "confidence": 0.7,
  "project": "myrepo"
}

Expected output:

Lesson saved (confidence 0.7). Duplicate content will strengthen it.