self-reflection by hopyky/self-reflection
npx skills add https://github.com/hopyky/self-reflection --skill self-reflection一个用于持续自我提升的技能。该代理通过定期心跳触发的反思,追踪错误、经验教训和随时间推移的改进。
# 检查是否需要反思
self-reflection check
# 记录新的反思
self-reflection log "error-handling" "Forgot timeout on API call" "Always add timeout=30"
# 阅读近期经验教训
self-reflection read
# 查看统计信息
self-reflection stats
Heartbeat (60m) → Agent reads HEARTBEAT.md → Runs self-reflection check
│
┌─────────┴─────────┐
▼ ▼
OK ALERT
│ │
Continue Reflect
│
┌─────────┴─────────┐
▼ ▼
read log
(past lessons) (new insights)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 命令 | 描述 |
|---|---|
check [--quiet] | 检查是否到了反思时间 (OK 或 ALERT) |
log <tag> <miss> <fix> | 记录一次新的反思 |
read [n] | 阅读最近 n 条反思 (默认: 5) |
stats | 显示反思统计信息 |
reset | 重置计时器 |
在 ~/.openclaw/openclaw.json 中启用心跳:
{
"agents": {
"defaults": {
"heartbeat": {
"every": "60m",
"activeHours": { "start": "08:00", "end": "22:00" }
}
}
}
}
添加到您工作区的 HEARTBEAT.md:
## Self-Reflection Check (required)
Run `self-reflection check` at each heartbeat.
If ALERT: read past lessons, reflect, then log insights.
创建 ~/.openclaw/self-reflection.json:
{
"threshold_minutes": 60,
"memory_file": "~/workspace/memory/self-review.md",
"state_file": "~/.openclaw/self-review-state.json",
"max_entries_context": 5
}
由 hopyky 创建
MIT
每周安装量
129
代码仓库
GitHub 星标数
1
首次出现
2026年1月30日
安全审计
安装于
openclaw111
opencode104
gemini-cli97
codex97
cursor94
github-copilot91
A skill for continuous self-improvement. The agent tracks mistakes, lessons learned, and improvements over time through regular heartbeat-triggered reflections.
# Check if reflection is needed
self-reflection check
# Log a new reflection
self-reflection log "error-handling" "Forgot timeout on API call" "Always add timeout=30"
# Read recent lessons
self-reflection read
# View statistics
self-reflection stats
Heartbeat (60m) → Agent reads HEARTBEAT.md → Runs self-reflection check
│
┌─────────┴─────────┐
▼ ▼
OK ALERT
│ │
Continue Reflect
│
┌─────────┴─────────┐
▼ ▼
read log
(past lessons) (new insights)
| Command | Description |
|---|---|
check [--quiet] | Check if reflection is due (OK or ALERT) |
log <tag> <miss> <fix> | Log a new reflection |
read [n] | Read last n reflections (default: 5) |
stats | Show reflection statistics |
reset | Reset the timer |
Enable heartbeat in ~/.openclaw/openclaw.json:
{
"agents": {
"defaults": {
"heartbeat": {
"every": "60m",
"activeHours": { "start": "08:00", "end": "22:00" }
}
}
}
}
Add to your workspace HEARTBEAT.md:
## Self-Reflection Check (required)
Run `self-reflection check` at each heartbeat.
If ALERT: read past lessons, reflect, then log insights.
Create ~/.openclaw/self-reflection.json:
{
"threshold_minutes": 60,
"memory_file": "~/workspace/memory/self-review.md",
"state_file": "~/.openclaw/self-review-state.json",
"max_entries_context": 5
}
Created by hopyky
MIT
Weekly Installs
129
Repository
GitHub Stars
1
First Seen
Jan 30, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
openclaw111
opencode104
gemini-cli97
codex97
cursor94
github-copilot91
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
127,200 周安装