定期对最近的会议进行自我反思。分析哪些进展顺利,哪些出了问题,并将简洁、可操作的见解写入适当的工作空间...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install agent-self-reflection或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install agent-self-reflection⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/agent-self-reflection/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: self-reflection slug: agent-self-reflection version: 1.0.0 description: Periodic self-reflection on recent sessions. Analyzes what went well, what went wrong, and writes concise, actionable insights to the appropriate workspace files. Designed to run as a cron job. ---
Reflect on recent sessions and extract actionable insights. Runs hourly via cron.
# List sessions active in the last 2 hours
openclaw sessions --active 120 --json
Parse the output to get session keys and IDs. Skip subagent sessions (they're task workers, not interesting for reflection). Focus on:
For each interesting session from Step 1, read the JSONL transcript:
# Read the last ~50 lines of each session file (keep it bounded!)
tail -50 ~/.openclaw/agents/main/sessions/<sessionId>.jsonl
⚠️ CRITICAL: Never load full session files. Use tail -50 or Read with offset/limit. Sessions can be 100k+ tokens.
Parse the JSONL to understand what happened. Look for:
type: "user" or type: "human" — what was askedtype: "assistant" — what you respondedtype: "tool_use" / type: "tool_result" — what tools were called and resultsFor each session, ask yourself:
Quality bar: Each insight must be:
Each insight belongs somewhere specific. Route them:
AGENTS.mdTOOLS.mdmemory/YYYY-MM-DD.md (today's date)memory/about-user.mdskills//SKILL.md MEMORY.mdFor each insight, append or edit the appropriate file. Use the Edit tool for surgical changes to existing content. Use append (write to end) for daily memory files.
Format for daily memory files:
## Self-Reflection — HH:MM ET
### Insights
- [source: session-key] Lesson learned here
- [source: session-key] Another insight
### Tool Notes
- Discovered: tool X needs Y configuration
### User Context
- Brenner mentioned interest in Z
After writing all insights, produce a brief summary of what you reflected on and what you wrote. This is your output — keep it to 2-4 sentences max.
If there's nothing interesting to reflect on (quiet period, only heartbeats), just say so. Don't manufacture insights.
Before writing any insight:
安装 自我反思 后,可以对 AI 说这些话来触发它
Help me get started with Self Reflection
Explains what Self Reflection does, walks through the setup, and runs a quick demo based on your current project
Use Self Reflection to periodic self-reflection on recent sessions
Invokes Self Reflection with the right parameters and returns the result directly in the conversation
What can I do with Self Reflection in my data & analytics workflow?
Lists the top use cases for Self Reflection, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/agent-self-reflection/ 目录(个人级,所有项目可用),或 .claude/skills/agent-self-reflection/(项目级)。重启 AI 客户端后,用 /agent-self-reflection 主动调用,或让 AI 根据上下文自动发现并使用。
自我反思 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
自我反思 可免费安装使用。请查阅仓库了解许可证信息。
定期对最近的会议进行自我反思。分析哪些进展顺利,哪些出了问题,并将简洁、可操作的见解写入适当的工作空间...
自我反思 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Self Reflection
Identifies repetitive steps in your workflow and sets up Self Reflection to handle them automatically