Agent skill
error-memory
Use when: making a mistake, breaking build/tests, realizing wrong approach, misunderstanding requirements, using wrong patterns, forgetting conventions, receiving correction from user, unexpected behavior, or any error situation
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/error-memory
SKILL.md
Error Memory
Document errors to avoid repeating them.
Trigger
Invoke when:
- Build/tests fail after your action
- User corrects you
- You realize a wrong approach
- You forget a project convention
- Unexpected behavior occurs
Process
-
Identify error type
tech: build, tests, syntax, runtimectx: conventions, patterns, project stackcomp: misunderstood requirements
-
Analyze root cause (not symptom)
-
Formulate fix as reusable rule
-
Append line to
.claude/errors.md:markdown| MM-DD | type | Short error | Root cause | Rule to follow | -
Create file if missing with this template:
markdown# Project Errors > Past Claude mistakes on this project. Check before acting. | Date | Type | Error | Cause | Fix | |------|------|-------|-------|-----| ## Legend - **tech** : Technical (build, tests, syntax) - **ctx** : Context (conventions, patterns) - **comp** : Comprehension (misunderstood request)
Rules
- One line = one error (no paragraphs)
- Fix = actionable rule, not excuse
- Cause = why, not what
- Keep < 100 lines (archive if needed)
- Check errors.md before acting on any project
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?