/error-memory:logfrom error-memory
Logs an error and its solution to the error memory database, capturing error message, cause, solution, code changes, and metadata.
Ships in error-memory. Installing the plugin adds it to Claude Code.
Log a new error and its solution to build up the error memory database.
/error-memory:log
This command is interactive - Claude will gather the required information from the current context and ask for any missing details.
Gather Error Information - Extract from the current conversation context:
Document the Analysis:
Capture Code Changes (if applicable):
Add Metadata:
Log the Error:
bash $CLAUDE_PLUGIN_ROOT/scripts/log-error.sh --json '{
"errorMessage": "<error message>",
"project": "<project name>",
"projectPath": "<path>",
"source": "<source>",
"whatHappened": "<context>",
"cause": "<why it happened>",
"solution": "<how it was fixed>",
"rationale": "<why the solution works>",
"fileChanged": "<file path>",
"codeBefore": "<code before>",
"codeAfter": "<code after>",
"tags": ["tag1", "tag2"]
}'
Use consistent, meaningful tags:
After solving a database connection error:
bash $CLAUDE_PLUGIN_ROOT/scripts/log-error.sh --json '{
"errorMessage": "SQLSTATE[HY000] [2002] Connection refused",
"project": "my-laravel-app",
"projectPath": "/home/user/projects/my-laravel-app",
"source": "bash",
"whatHappened": "Running php artisan migrate",
"cause": "Database container was not running",
"solution": "Start the database container with docker-compose up -d db",
"rationale": "Laravel needs an active database connection to run migrations",
"tags": ["laravel", "database", "docker", "connection"]
}'
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub mwguerra/claude-code-plugins --plugin error-memory7 commands in this plugin
/initError Memory InitializeInitialize the error memory database/listError Memory ListList all errors in the error memory database with optional filtering/migrateError Memory MigrationMigrate errors from the old solved-errors.md format to the new database/searchError Memory SearchSearch for similar errors in the error memory database/showError Memory ShowShow full details of a specific error by ID/statsError Memory StatisticsShow statistics about the error memory databaseOther plugins' commands for the same job