mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
20 lines
680 B
Bash
20 lines
680 B
Bash
#!/bin/bash
|
|
# Self-Improvement Activator Hook
|
|
# Triggers on UserPromptSubmit to remind Claude about learning capture
|
|
# Keep output minimal (~50-100 tokens) to minimize overhead
|
|
|
|
set -e
|
|
|
|
# Output reminder as system context
|
|
cat << 'EOF'
|
|
<self-improvement-reminder>
|
|
After completing this task, evaluate if extractable knowledge emerged:
|
|
- Non-obvious solution discovered through investigation?
|
|
- Workaround for unexpected behavior?
|
|
- Project-specific pattern learned?
|
|
- Error required debugging to resolve?
|
|
|
|
If yes: Log to .learnings/ using the self-improvement skill format.
|
|
If high-value (recurring, broadly applicable): Consider skill extraction.
|
|
</self-improvement-reminder>
|
|
EOF
|