reflect

reflect is a skill for Claude Code, Codex from t0ddharris/claude-code-skills. It costs 63 tokens per session (1,622 once invoked), scanned A, original, MIT.

A self-review procedure for analyzing a conversation and proposing updates to the skill instructions that were used.

In plain words
What is it for?
Use it after feedback, at the end of a brief, or when asked to reflect and improve a skill.
Why use it?
It captures corrections and successful patterns so the same mistakes need not be repeated in later sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/t0ddharris/claude-code-skills/reflect
Any agent
npx skills add t0ddharris/claude-code-skills --skill reflect
Clone the repo
git clone --depth 1 https://github.com/t0ddharris/claude-code-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reflect

README.md
[![agentmods](https://agentmods.dev/badge/skills/t0ddharris/claude-code-skills/reflect.svg)](https://agentmods.dev/skills/t0ddharris/claude-code-skills/reflect)
Your own site
<a href="https://agentmods.dev/skills/t0ddharris/claude-code-skills/reflect"><img src="https://agentmods.dev/badge/skills/t0ddharris/claude-code-skills/reflect.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01622
Opus 5 $0.00032 $0.00811
Sonnet 5 $0.00013 $0.00324
Haiku 4.5 $0.00006 $0.00162

Measured 6d ago against content hash 187b03333664, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

reflect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/reflect/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reflect: Self-Improving Skills

Scan the current conversation for signals (corrections, approvals, patterns) and propose updates to the skill files that were invoked during the session. Every correction should only need to happen once.

Step 1: Identify Skills Used

Scan the conversation for skill invocations. Look for:

  • Explicit /skill-name calls
  • Skill tool invocations (the Skill tool being called)
  • Agent delegations that loaded a skill

If no skills were used this session, check whether the corrections apply to:

  • General behavior → suggest a CLAUDE.md or memory update instead
  • A specific skill that should have been used → note the routing gap
  • Neither → report "no learnings to extract" and stop

Step 2: Extract Signals

Scan the full conversation for three signal types:

HIGH confidence (explicit corrections):

  • User said "no," "don't," "never," "stop," "wrong," "not that"
  • User rejected output and asked for a different approach
  • User provided a specific rule ("always do X," "use Y not Z")
  • User flagged an error, bad pattern, or bad output

MEDIUM confidence (validated patterns):

  • User approved output without pushback ("yes," "perfect," "looks good," accepted without changes)
  • A non-obvious approach worked and the user confirmed it
  • User's positive reaction to a specific technique or format

LOW confidence (observations):

  • Patterns that seemed to work but weren't explicitly validated
  • Ambiguous signals worth reviewing later

Not a signal, skip these:

  • One-time contextual decisions (e.g., "make this one shorter" doesn't mean all future outputs should be shorter)
  • Task-specific details that don't generalize beyond this session
  • Things already documented in the skill file, CLAUDE.md, or memory
  • Corrections to factual or biographical content (those belong in a dedicated facts/context file, not skills)
  • Preferences already captured in the session brief's carried-forward sections

Step 3: Read the Target Skill Files

For each skill identified in Step 1, read its SKILL.md. Check:

  • Does a ## Learnings section exist at the bottom? If not, it will be created.
  • Is this learning already captured? Don't duplicate.
  • Does this learning contradict an existing learning or rule? Flag the conflict for the user to resolve.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 162 lines · 63 tokens per session scan A 187b03333664

Subscribe to this mod's changes

reflect is a skill published in the GitHub repository t0ddharris/claude-code-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 1,622 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

baoyu-comic

Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic".

JimLiu/baoyu-skills · 61 tokens

baoyu-diagram

Create professional, dark-themed SVG diagrams of any type — architecture diagrams, flowcharts, sequence diagrams, structural diagrams, mind maps, timelines, illustrative/conceptual diagrams, and more. Use this skill whenever the user asks for any kind of technical or conceptual diagram, visualization of a system…

JimLiu/baoyu-skills · 146 tokens

baoyu-danger-gemini-web

Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations. Use when other skills need image generation backend, or when user requests "generate image with Gemini", "Gemini text generation"…

JimLiu/baoyu-skills · 74 tokens

understand-figma

Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design tokens) with a kind:"design" dashboard.

Egonex-AI/Understand-Anything · 47 tokens

task-management

Simple task management using a shared TASKS.md file. Reference this when the user asks about their tasks, wants to add/complete tasks, or needs help tracking commitments.

sandbaseai/sandbase-skills · 37 tokens