Loading...
Loading...
Compare original and translation side by side
/learn/learnerror -> solutionerror -> solutionpython3 ~/.claude/scripts/learning-db.py query --category error~/.claude/learning/learning.dbpython3 ~/.claude/scripts/learning-db.py query --category error~/.claude/learning/learning.db/learn "error pattern" -> "solution"/learn "error pattern" => "solution"error_patternsolution/learn "错误模式" -> "解决方案"/learn "错误模式" => "解决方案"error_patternsolutionerror_patternsolutionfix_type=autofix_action=install_dependencyreplace_allfix_type=autofix_action=use_replace_allfix_type=skillfix_action=<skill-name>fix_type=agentfix_action=<agent-name>fix_type=manualfix_action=apply_suggestionfix_type=autofix_action=install_dependencyreplace_allfix_type=autofix_action=use_replace_allfix_type=skillfix_action=<skill-name>fix_type=agentfix_action=<agent-name>fix_type=manualfix_action=apply_suggestionlearning-db.pypython3 ~/.claude/scripts/learning-db.py record \
"<error_type>" \
"<error_signature>" \
"<error_pattern> → <solution>" \
--category error \
--confidence 0.9<error_type><error_signature>python3 ~/.claude/scripts/learning-db.py record \
"multiple_matches" \
"edit-tool-multiple-matches" \
"Edit tool fails with 'found N matches' → Use replace_all=True parameter" \
--category error \
--confidence 0.9learning-db.pypython3 ~/.claude/scripts/learning-db.py record \
"<error_type>" \
"<error_signature>" \
"<error_pattern> → <solution>" \
--category error \
--confidence 0.9<error_type><error_signature>python3 ~/.claude/scripts/learning-db.py record \
"multiple_matches" \
"edit-tool-multiple-matches" \
"Edit tool fails with 'found N matches' → Use replace_all=True parameter" \
--category error \
--confidence 0.9Learned pattern:
Error: "<error_pattern>"
Solution: "<solution>"
Type: <fix_type> (<fix_action>)
Confidence: 0.9已学习模式:
错误:"<error_pattern>"
解决方案:"<solution>"
类型:<fix_type> (<fix_action>)
置信度:0.9~/.claude/scripts/learning-db.py~/.claude/scripts/learning-db.pylsof ~/.claude/learning/learning.dblsof ~/.claude/learning/learning.db/learn "it broke" -> "fix it"/learn "it broke" -> "fix it"hooks/lib/learning_db_v2.pyscripts/learning-db.pyhooks/error-learner.pyhooks/lib/learning_db_v2.pyscripts/learning-db.pyhooks/error-learner.py