Reflection

davidkiss/smart-ai-skills/skills/reflection

作者 davidkiss0d421cd30cbd83805cb5e72a1a257284df413670无许可证4 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5个月前更新

MUST use this skill when user provides feedback / ask to do things in certain way, or when a tool call fails - for self-improvement - to learn user preferences and store them in AGENT.md / CLAUDE.md, and to propose improvements to skills.

仅含说明AI & Agents
AI 生成的概览

从会话中学习用户偏好与工具失败教训,提出经确认后写入 AGENT.md、CLAUDE.md 或技能文件的改进。

功能
分析对话历史、工具调用、失败和用户纠正,识别反复出现的偏好或现有技能定义中的缺口。每次只提出一项简洁修改,展示技能差异或对 AGENT.md/CLAUDE.md 的拟新增内容。它先向用户展示提案并请求明确确认,确认后才应用更改。
适用场景
适用于用户给出反馈、要求以特定方式做事,或工具调用失败时。用于沉淀长期偏好并持续改进技能定义。
运行要求
无需脚本或特殊工具;依赖智能体的对话上下文,并需要写入 AGENT.md、CLAUDE.md 或技能文件的权限以应用已确认的更改。

Reflection Skill

Overview

This skill is used to learn from interaction with the user and failures in tool calls. It analyzes what worked, what didn't (tool failures), and identifies recurring patterns or explicit user preferences that should be formalized.

Objectives

  • Improve Skills: Identify gaps or inefficiencies in existing skill definitions and propose concise updates.
  • Store Preferences: Capture user preferences, project-specific rules, or recurring instructions in a AGENT.md or CLAUDE.md (when used in Claude Code) file.

Process

  1. Analyze: Review the conversation history, tool calls, and any failures or corrections from the user.
  2. Identify: Determine if a specific behavior should be codified in a skill or if a user preference has emerged.
  3. Propose: Formulate a single, concise change.
    • If updating a skill, show a diff of the proposed change.
    • If adding a preference, show the proposed addition to CLAUDE.md.
  4. Confirm: Present the proposal to the user and ask for explicit confirmation without making any changes first.
  5. Apply Changes: Once user confirmed the changes, only then apply them

Guidelines

  • One at a time: Only propose one change per invocation to maintain focus and allow for careful review.
  • Conciseness: Keep changes as brief as possible. Often a few words are enough to clarify a requirement or fix a common mistake.
  • Accuracy: Ensure the proposal directly addresses a real issue or preference observed in the session.
  • Specificity: Think how you could make the learnings more generic to apply to other use cases, but don't make the changes too generic so that it would not address the original learnings
  • Failure Analysis: Pay special attention to tool failures or when the user has to correct your approach. These are primary candidates for reflection.
  • Conflict Resolution: If a proposed change conflicts with details of an existing skill or user preference, propose a resolution that best serves the user's current intent.

来源与署名

来源:davidkiss/smart-ai-skills位于skills/reflection提交0d421cd

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架