Skip to main content
skill CX Codex

reflection — Claude Code skill: what it does, how to install

Inspects failed tool calls and developer corrections to record preferences in CLAUDE.md or AGENT.md. Helps agents adapt without manual edits.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add davidkiss/smart-ai-skills --skill reflection -a claude-code
Open on GitHub

What reflection does

This skill triggers after failed tool executions or explicit corrections from the user. It scans the recent exchange and isolates recurring feedback. The output targets project instruction files like AGENT.md and CLAUDE.md, or improves neighboring skill definitions.

Discipline is built into the workflow. The assistant formulates a single concise adjustment at a time, displaying a unified diff or raw snippet. Files remain untouched until you grant explicit approval.

What it helps with

  • Save developer feedback into CLAUDE.md without manually editing the file
  • Refine existing skill instructions after broken tool invocations
  • Turn repeated workflow corrections into permanent guidelines in AGENT.md
  • Resolve contradictions between old project instructions and new requirements

Example prompts for the agent

  • Remember that we run tests via pnpm test only and update our rules
  • The previous command failed. Review the log and suggest a fix for the skill
  • Record this preference in CLAUDE.md so you do not repeat the mistake

How to install reflection

1Skills CLI (Vercel)

npx skills add davidkiss/smart-ai-skills --skill reflection -a claude-code

2Manually: put the files in place

~/.claude/skills/reflection/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/reflection/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about reflection

How to install reflection in Claude Code?

Run npx skills add davidkiss/smart-ai-skills --skill reflection -a claude-code. You can also place it directly into ~/.claude/skills/reflection/SKILL.md.

What does the reflection skill do?

It examines conversation turns and tool errors to pinpoint recurring habits or gaps. Then it presents concise updates for AGENT.md, CLAUDE.md, or existing skill files.

Does reflection update files automatically?

No, silent edits are prevented. The agent presents a single diff or proposal and waits for your confirmation before writing any changes.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor