save_correction
Record mistakes and their correct solutions to automatically recall them in similar future situations, preventing repeated errors.
Instructions
Save a correction pattern — what went wrong and what the right approach is. These are surfaced automatically when similar situations arise in future sessions, helping avoid repeated mistakes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wrong_approach | Yes | What was done incorrectly (e.g., "Used npm install instead of bun add") | |
| right_approach | Yes | The correct approach (e.g., "Always use bun add for this project") | |
| context | No | When/where this applies (e.g., "package management in monorepo") | |
| scope | No | global = applies everywhere, project = specific to this codebase | project |
| project_id | No | Project identifier override (auto-detected from CLAUDE_PROJECT_DIR or git remote if omitted) |