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.
Install
npx skills add https://github.com/davidkiss/smart-ai-skills --skill reflectionSKILL.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.mdorCLAUDE.md(when used in Claude Code) file.
Process
- Analyze: Review the conversation history, tool calls, and any failures or corrections from the user.
- Identify: Determine if a specific behavior should be codified in a skill or if a user preference has emerged.
- 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.
- Confirm: Present the proposal to the user and ask for explicit confirmation without making any changes first.
- 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.
Related skills
find-skillsvercel-labs3.6MHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.handoffmattpocock883KCompact the current conversation into a handoff document for another agent to pick up.microsoft-foundrymicrosoft618KBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, create agent, update agent, add tool to agent, invoke agent, agent.yaml, agent insights, pull agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, prompt optimizer, optimize agcavemanjuliusbrussee544KUltra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".