Skip to content
Development
Command

/analyze

Analyze user corrections and log them into the error notebook

From plugin
13219 skills19 commands9 hooks
shell
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-code

Ships with claude-memory-engine. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/analyze

Context preview

What this command does when you run it.

Analyze user corrections and log them into the error notebook

Command definition

analyze.md
description: "Analyze user corrections and log them into the error notebook"

/analyze — Record Corrections

Compare the user's edits against your output. Find what you got wrong and why.

Steps

1. **Find the diff** — Identify what the user changed in your output (text, code, structure, tone) 2. **Check against rules** — Compare each correction against existing rules in CLAUDE.md, memory files, and learned skills 3. **Log missed rules** — If a rule exists but you didn't follow it, log it with a count (e.g., "2nd time missing this") 4. **Distill new patterns** — If the correction doesn't match any existing rule, distill it into a new one 5. **Save to error notebook** — Append to `~/.claude/skills/learned/writing-review-list.md` (or project-specific file) 6. **Report** — Tell the user: "Logged N corrections. M were known rules I missed, K are new patterns."

Error notebook format

### Rule name
- **Rule:** What to do
- **Missed:** N times
- **Status:** active / cleared
- **Example:** What went wrong → what was correct

When to run

Run this right after the user corrects your work. The fresher the context, the better the analysis.

Read it on GitHub ↗
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin, auto-invoked
Stats
132
Stars
0
Views
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
2mo ago
Last commit
4mo ago
Created

Repo: HelloRuru/claude-memory-engine