跳到正文
TakoAPI
返回技能列表

agent-self-reflection

由 brennerspear 提供

Web & Frontend Development
654下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Periodic self-reflection on recent sessions.

描述

该技能的功能

Runs hourly as a cron job to analyze recent agent sessions, identifying what succeeded and what failed. Extracts specific, actionable lessons and routes each insight to the appropriate workspace file based on type. Skips vague summaries and only writes insights that are new, specific, and directly applicable.

It routes each insight to a specific file by type rather than appending everything to one log, so future sessions find the right context without sifting through noise.

何时使用

  • Catching repeated tool failures across multiple sessions
  • Logging user preferences discovered during 1:1 conversations
  • Updating daily memory files with project context from today's work
  • Fixing skill instructions after a workflow breaks in practice
  • Reviewing how automated cron tasks performed overnight

示例工作流

输入

User asks: Run self-reflection on the last 2 hours

智能体
  1. 1

    Lists sessions active in the last 120 minutes, filtering out subagent sessions

  2. 2

    Reads the last 50 lines of each session JSONL to stay within token budget

  3. 3

    Analyzes each session for successes, errors, retries, and misunderstandings

  4. 4

    Routes each insight to the correct file: AGENTS.md, TOOLS.md, memory/YYYY-MM-DD.md, or a skill file

  5. 5

    Writes a 2-4 sentence summary of what was reviewed and what was recorded

输出

Brief summary confirming which sessions were reflected on and which files were updated with new insights

安装

clawhub install brennerspear/agent-self-reflection

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接