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 從公開儲存庫中收錄這些內容。

檢舉或申請下架