Skip to main content
skill CX Codex

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

self-reflection stores mistakes and operational lessons in local markdown memory so the agent avoids repeated failures.

no license 162 installs ★ 675 updated 2026-03-07

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sundial-org/awesome-openclaw-skills --skill self-reflection -a claude-code
Open on GitHub

What self-reflection does

This tool schedules periodic reviews for coding agents. Triggered during recurring heartbeats or manual inspection via self-reflection check, the agent inspects recent steps, reviews saved notes, and logs new solutions with self-reflection log.

Lessons live in a markdown log file, while interval states stay inside a JSON config file. You can read previous entries, view metrics, or restart the counter directly from the shell. Your local environment must have both jq and date installed for the execution scripts to parse files.

What it helps with

  • log agent errors together with verified fixes
  • run scheduled checks to see if review time arrived
  • load previous operational lessons into context
  • track review statistics and reset timers

Example prompts for the agent

  • Run self-reflection check to see if an update is needed
  • Store a fix using self-reflection log "network" "no retry flag" "pass --retry 3"
  • Print the last entries with self-reflection read 5

How to install self-reflection

1Skills CLI (Vercel)

npx skills add sundial-org/awesome-openclaw-skills --skill self-reflection -a claude-code

2Manually: put the files in place

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

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

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

Questions about self-reflection

How to install self-reflection in Claude Code?

Run npx skills add sundial-org/awesome-openclaw-skills --skill self-reflection -a claude-code. The file will be placed in ~/.claude/skills/self-reflection/SKILL.md.

What does self-reflection do?

It gives the agent a memory log for mistakes and solutions, checking on an interval whether it is time to record insights.

What dependencies are required?

The skill requires jq and date present in your shell path to manipulate json state and calculate intervals.

Similar skills

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

From the same set37

The whole set →
todo-tracker todo-tracker — a skill to track tasks and carry them forward between work sessions. Stores TODOs in a file, lets you add, mark complete, filter by priority, and get reminders about items left sitting for days. CX Codex +1 176installs opencode-controller opencode-controller — a skill to manage Opencode through slash commands. Selects AI models, switches between planning and development agents, handles project sessions. CX Codex +1 167installs docker-essentials docker-essentials is a Claude Code skill with Docker commands for container lifecycle, logs, exec, image builds, Compose, networks, and volumes, for quick command lookup. CX Codex +1 166installs stock-analysis stock-analysis is a Claude Code skill for analyzing stocks and crypto via Yahoo Finance, with portfolio tracking and periodic reports. CX Codex +1 163installs openclaw-feeds openclaw-feeds collects current RSS headlines about news, games, and finance. Use it to get a short roundup for one category or several. CX Codex +1 160installs ai-video-gen ai-video-gen produces full AI videos from text prompts by orchestrating image generators, video synthesis engines, and FFmpeg. CX Codex +1 155installs arxiv-watcher The arxiv-watcher skill searches ArXiv for recent papers by keyword, author, or category and delivers concise summaries. Use it to track the latest research on a topic or get a daily digest of papers in your field. CX Codex +1 145installs twitter-search twitter-search searches tweets via twitterapi.io, retrieves up to 1000 posts, and compiles structured analytics. Useful for tracking trends, monitoring competitors, and audience research. CX Codex +1 136installs

Project sponsors

Companies that keep this analytics open