agentic-reflection
Skill4 starsChanged 5 months agoMITView on GitHub
A feedback loop where the agent evaluates its own output against criteria and revises it — self-correction. Often implemented as a Producer-Critic split, where a separate agent or prompted role critiques the first agent's work for objectivity. Use when output quality must be high, correctness is checkable, or a first pass tends to be incomplete or inaccurate.
In this repository21 other files it gives its agents.
- agentic-evaluation-monitoringSkill
- agentic-exception-handlingSkill
- agentic-exploration-discoverySkill
- agentic-goal-setting-monitoringSkill
- agentic-guardrails-safetySkill
- agentic-human-in-the-loopSkill
- agentic-inter-agent-communicationSkill
- agentic-knowledge-retrievalSkill
- agentic-learning-adaptationSkill
- agentic-mcpSkill
- agentic-memory-managementSkill
- agentic-multi-agentSkill
- agentic-parallelizationSkill
- agentic-pattern-selectorSkill
- agentic-planningSkill
- agentic-prioritizationSkill
- agentic-prompt-chainingSkill
- agentic-reasoning-techniquesSkill
- agentic-resource-aware-optimizationSkill
- agentic-routingSkill
- agentic-tool-useSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
What it is: Run a loop of execution -> evaluation/critique -> refinement.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reflection
Agentic Design Pattern 4 of 21 — distilled from Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems (Ch. 4).
What it is. Run a loop of execution -> evaluation/critique -> refinement. The agent (or a dedicated critic) checks the output against explicit criteria and produces an improved version, iterating up to a cap.
Reach for this when
- First-pass quality is inconsistent and the result is high-stakes
- Correctness is checkable (tests pass, constraints satisfied, facts verifiable)
- The task needs nuanced or precise output worth an extra pass
- You can express concrete evaluation criteria
Don't reach for this when
- There's no way to judge better vs. worse
- Latency/cost-sensitive and the first pass is good enough
- You can't define a stopping condition (loops risk runaway cost and context overflow)
Shape of the solution
Generate, then critique against explicit criteria, then revise. Prefer a Producer-Critic separation (a distinct critic agent/role) for objectivity, and ground the critique in an external signal — test results, tool output, rules — rather than the model grading itself. Cap iterations.
Common failure modes
- Unbounded loops with no stopping rule
- Self-congratulatory critique with no real signal
- Increased latency, compute, and context-window/throttling risk
Composes with
agentic-tool-use— tests/tools as the critic signalagentic-exception-handling— reflect-then-recover on failuresagentic-planning— reflect to replanagentic-evaluation-monitoring— supplies the criteria
Selection signals live in this skill's description (used for auto-triggering). To choose among all 21 patterns, see agentic-pattern-selector. Conceptual source: Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems, Ch. 4 — original distillation from the text, not reproduced prose, code, or figures.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

