reflect-and-improve

reflect-and-improve is a skill for Claude Code, Codex from aroyburman-codes/compound-product-management. It costs 47 tokens per session (1,322 once invoked), scanned A, original, MIT.

A review routine for examining completed work, mistakes, corrections, and failed attempts, then recording useful lessons for future sessions.

In plain words
What is it for?
Use it after substantial edits, debugging, setup work, tool failures, or other natural project checkpoints.
Why use it?
It helps avoid repeating the same errors and preserves confirmed preferences or improvements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it after substantial edits, debugging, setup work, tool failures, or other natural project checkpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aroyburman-codes/compound-product-management/reflect-and-improve
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.

Any agent
npx skills add aroyburman-codes/compound-product-management --skill reflect-and-improve
Clone the repo
git clone --depth 1 https://github.com/aroyburman-codes/compound-product-management

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-and-improve

README.md
[![agentmods](https://agentmods.dev/badge/skills/aroyburman-codes/compound-product-management/reflect-and-improve/github.svg)](https://agentmods.dev/skills/aroyburman-codes/compound-product-management/reflect-and-improve)
Your own site
<a href="https://agentmods.dev/skills/aroyburman-codes/compound-product-management/reflect-and-improve"><img src="https://agentmods.dev/badge/skills/aroyburman-codes/compound-product-management/reflect-and-improve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reflect-and-improve

Your own site · 80×15
<a href="https://agentmods.dev/skills/aroyburman-codes/compound-product-management/reflect-and-improve"><img src="https://agentmods.dev/badge/skills/aroyburman-codes/compound-product-management/reflect-and-improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00047 $0.01322
Opus 5 $0.00023 $0.00661
Sonnet 5 $0.00009 $0.00264
Haiku 4.5 $0.00005 $0.00132

Measured 11d ago against content hash 8b37917784c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

reflect-and-improve 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 11d 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.

skills/reflect-and-improve/SKILL.md · 178 lines

How it starts

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

Reflect and Improve

A self-improvement loop for Claude Code. After significant work, this skill reviews what happened — errors made, corrections received, implicit preferences — and writes confirmed learnings to persistent memory files. Future sessions start smarter.

When to Invoke

  • After completing multi-file edits, project setup, or debugging sessions
  • After making an error and recovering from it
  • At natural session breakpoints (switching tasks, wrapping up)
  • After a tool call is denied and you adjusted approach
  • When explicitly requested

The Reflection Framework

Run these 6 steps in order. Skip any step with no findings.

1. Review Checkpoint

Scan recent actions for signals worth learning from.

Look for:

  • Tool calls that failed or were retried
  • User corrections ("no, I meant...", "not that file", "use X instead")
  • Permission denials
  • Approaches abandoned mid-way
  • Tasks that required multiple attempts

Output format:

## Review Checkpoint — [date]
- [RETRY] Ran tests 3 times before realizing venv wasn't activated
- [CORRECTION] User said "use pnpm, not npm" — package manager preference
- [DENIED] User denied `git push` — wants to review before pushing
- [ABANDONED] Started editing wrong file, had to switch

If 0 signals found, skip to step 6.

2. Permission Patterns

Track which operations the user approved or denied.

Write to: permissions.md in the project memory directory

Format:

# Permission Patterns
Last updated: YYYY-MM-DD

## Approved
- git commit — always approved
- npm install — approved for this project

## Denied
- git push — user wants to review first
- modifying .env — never touch without asking

## Implicit
- if user asks to "set up tests", creating test files is implicitly approved

Rules:

  • Only record permissions observed 2+ times OR explicitly stated
  • Never persist tokens, passwords, or secrets
  • Update existing entries, don't append duplicates

3. Error Catalog

Read the full file on GitHub · 178 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. 11d ago First seen · 178 lines · 47 tokens per session scan A 8b37917784c7

Subscribe to this mod's changes

reflect-and-improve is a skill published in the GitHub repository aroyburman-codes/compound-product-management (1 stars, last pushed 6mo ago), licensed MIT. It adds 47 tokens to every session and 1,322 once invoked, about $0.0002 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

decision-log

Maintain a lightweight DECISIONS.md log of durable, material decisions in persistent agent workspaces. Use when a decision has actually been made and preserving its rationale would matter to future work, especially when it changes or clarifies prior requirements, structure, workflows, conventions, strategy, or other…

warstellar/agent-skills · 109 tokens

kayba-ace

This skill ships learnfromtraces.py, a script that reads OpenClaw session transcripts, feeds them through the ACE learning pipeline, and writes an updated skillbook to disk.

kayba-ai/agentic-context-engine · 0 tokens

faf-expert

Expert in .faf (Foundational AI-context Format) files for persistent project context. Use when working with .faf files, project DNA, CLAUDE.md bi-sync, faf-cli commands, MCP server configuration, or AI-readiness scoring (0-100%). Updated for v2.8.0 Tool Visibility System.

Wolfe-Jam/grok-faf-mcp · 69 tokens

chief-of-staff

The CEO's right hand — maintains validated project context, prepares task contracts, logs cross-department decisions, and runs the weekly review. Use when the user says "what's in flight", "resume the project", "log this decision", "weekly review", "turn this idea into a brief", or when multi-department work needs…

alebgl77/claude-inc · 79 tokens

claude-mem

Persistent filesystem memory across sessions — maintains memory/ with decisions.md, context.md, glossary.md and sessions/YYYY-MM-DD.md, loads and summarizes state at session start, appends decisions and open threads at session end, compacts monthly, and refuses secrets and transient noise. Use when the user says…

alebgl77/claude-inc · 97 tokens

knowledge-base

Retrieves and updates project-specific prompt knowledge from comparison evidence and user feedback. Use only for prompt analysis or post-comparison learning within a Rashomon evaluation.

shinpr/rashomon · 34 tokens