Update CLAUDE.md After Every Session From Your Corrections
A SKILL.md that reviews the session you just finished, finds where you had to correct the agent, and proposes small diffs to AGENTS.md, CLAUDE.md, a skill or a hook so it does not happen again.
Skill prompt for Claude Code and Codex
Prompt
Installs to .agents/skills/update-claude-md-after-every-session-from-your-corrections/
mkdir -p .agents/skills/update-claude-md-after-every-session-from-your-corrections && curl -sL "https://prompts-gpt.com/prompts/update-claude-md-after-every-session-from-your-corrections/raw" -o .agents/skills/update-claude-md-after-every-session-from-your-corrections/SKILL.mdExample output
Tips and common edits
Why this works
- Every proposed rule cites a quote or error from the session, so nothing is added on a hunch.
- Choosing between instruction file, skill and hook keeps always-loaded files short and moves must-hold rules into code.
- Diffs need approval by number, so the agent cannot quietly rewrite its own instructions.
Save as .claude/skills/session-retro/SKILL.md, or .agents/skills/ for Codex, Cursor and Gemini CLI. Run it before you close a long session: "run a retro". To hand unfinished work to a new session instead, use the Session Handoff skill.
Common edits
- Lower the cap to 3 changes for short sessions, or raise it for a first retro on a new repository.
- Have it append the evidence table to a docs/agent-retros.md log so you can spot lessons that keep coming back.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Agent Run Post-Mortem: Trace Root Cause and Prompt or Tool Fixes
Analyzes a pasted agent trace to find the first real failure and proposes exact prompt rewrites or tool changes, each with a test.
DAG Scheduler with Fan-Out/Fan-In Barriers and Resumable Run Ledger for Agent Pipelines
Guides Claude Code to build or refactor a dependency-aware DAG scheduler for agent phases, with cycle validation, bounded parallelism, join policies, retries, and an append-only run ledger so interrupted runs resume without redoing finished nodes.
Create Error Handling Contracts for AI Agents
This prompt transforms raw stack traces into structured error envelopes that provide agents with specific remediation steps and valid parameter constraints for self-correction.
Map AI Agent State Payloads and Handover Contracts
Generate a strict Pydantic state schema for agent pipelines that defines delta updates, discard rules, and structured rejection envelopes for handoffs.
Subagent Fan-Out Plan for a Large Codebase Migration
Plans a big migration so an orchestrating agent can split it into independent chunks for parallel subagents, each with a clear brief, a verification command and merge rules.
Parallel Git Worktree Task Split with Interface Contracts and Merge Order
Turns a pasted feature spec into independent coding-agent tasks with file ownership, interface contracts, a merge order and a done command for each task.
- Checkpoint and Rollback Manager with Compensation Steps and Failure Injection Tests
- Typed Phase Handoff Contracts and Validator for Multi-Agent Pipelines
- Create Role-Based Tool Gating Matrix for AI Agents
- Define Context Compression Rules for Long-Running AI Agents
- Design Human-in-the-Loop Escalation Gates for AI Agents
- Design Idempotent API Tool Schemas and Retry Policies