[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVW5XT94145JTATTNSZEZ1":3,"skill-same:01M7EVW5XT94145JTATTNSZEZ1":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EVW5XT94145JTATTNSZEZ1","self-reflection",null,"Build agents that critique and improve their own outputs — reflection loops, Reflexion-style memory, and verbal reinforcement.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-self-reflection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: self-reflection\ndescription: Build agents that critique and improve their own outputs — reflection loops, Reflexion-style memory, and verbal reinforcement.\ncategory: ai-research\n---\n\n## Overview\n\nSelf-reflection gives a language model a second pass over its own work: generate,\ncritique, revise. The critique can target correctness (\"does this code pass the\ntests?\"), quality (\"is this summary faithful?\"), or strategy (\"is this plan\nactually going to work?\"). Unlike gradient-based learning, reflection improves the\noutput within a single episode using only inference — the model reads its own\ndraft the way an editor reads a manuscript, spots problems, and fixes them.\n\nThe research lineage runs from simple \"review your answer\" prompts through\nReflexion — which stores reflections as episodic memory across trials, so the\nagent learns from past failures without weight updates — to verbal reinforcement\nmethods where the model maintains textual \"lessons learned.\" The pattern is most\npowerful when the critique is grounded: test results, tool outputs, or retrieved\nfacts, rather than the model grading its own vibes.\n\nReflection is inference-time self-improvement. It costs tokens instead of\ngradients, and it works on any model — including ones you can't fine-tune.\n\n## When to use\n\n- Agent tasks with verifiable feedback: code that runs, plans that execute,\n  answers checkable against sources.\n- Improving output quality when you can't or won't fine-tune (API-only models,\n  one-off tasks).\n- Multi-attempt problems where learning from failed attempts beats independent\n  retries.\n- Long-horizon tasks where early mistakes compound — reflection catches drift\n  before it cascades.\n- Building \"verbal RL\" loops: accumulating textual lessons across episodes as a\n  lightweight alternative to training.\n- Quality gates in generation pipelines: draft → critique → ship only if clean.\n\n## Core concepts\n\n- **Generator–critic split**: even with one model, separate the roles with\n  distinct prompts. The generator is optimistic and constructive; the critic is\n  skeptical and specific. Same weights, different instructions — the role\n  separation is what makes it work.\n- **Grounded critique**: a critic armed with evidence (test failures, tool\n  outputs, retrieved documents) beats a critic armed with opinions. Always feed\n  the critic the most objective signal available.\n- **Reflexion-style episodic memory**: after each trial, the model writes a short\n  reflection (\"I failed because I didn't handle empty input; next time validate\n  first\") stored in a memory buffer and prepended to future trials. The memory is\n  the learning; it persists across attempts.\n- **Reflection depth**: one critique-revise pass catches surface errors; two to\n  three passes catch deeper issues. Beyond that, returns diminish and the model\n  starts second-guessing correct answers.\n- **Critic calibration**: critics can be harsh (rejecting good outputs) or\n  sycophantic (approving everything). Calibrate on examples where you know the\n  right verdict, and prefer specific, actionable critiques over scores.\n- **Verbal reinforcement**: accumulating \"do\u002Fdon't\" lessons in text across\n  episodes. Cheaper than fine-tuning, interpretable, but bounded by context length\n  — curate the lesson list, don't just append forever.\n- **Self-consistency of critique**: run the critic multiple times on important\n  outputs; critiques that reproduce are more trustworthy than one-offs.\n- **Termination signals**: \"no substantive issues found\" is a valid and important\n  critic output. Without it, loops polish forever.\n\n## Practical workflow\n\n1. **Generate the initial output.** Normal generation, no reflection yet. This is\n   the draft.\n2. **Gather ground truth signals.** Run the tests, execute the code, retrieve the\n   source documents — whatever objective feedback exists. Feed failures verbatim\n   to the critic.\n3. **Critique with a dedicated prompt.** Ask for specific flaws: \"List concrete\n   problems with this output. For each: what's wrong, why it matters, how to fix\n   it.\" Ban vague praise\u002Fcriticism.\n4. **Revise against the critique.** The generator addresses each point. Require it\n   to explain what changed — this prevents silent ignoring of the critique.\n5. **Loop with a budget.** Typically 1–3 rounds or until the critic finds no\n   substantive issues. Stop conditions prevent infinite polish loops.\n6. **Persist lessons (for repeated tasks).** Distill recurring fixes into a lessons\n   list reused across episodes — the Reflexion pattern. Prune lessons that stop\n   applying.\n7. **Measure the delta.** Compare final quality with and without reflection on a\n   test set. If reflection adds little, simplify — the tokens aren't free.\n\nChecklist for a reflection loop:\n- Critic prompt tested on known-good and known-bad outputs (it must distinguish\n  them).\n- Objective signals (tests, tools) fed to the critic, not just the draft.\n- Max rounds capped; \"no issues found\" is a valid termination.\n- Lessons memory pruned periodically if used across episodes.\n- Quality delta measured to justify the token cost.\n\n## Common pitfalls\n\n- **Ungrounded self-grading.** \"Review your own answer\" with no external signal\n  often produces confident approval of wrong answers or random changes to right\n  ones. Ground the critic.\n- **Reflection theater.** The model writes a critique, then regenerates essentially\n  the same output. Require the revision to address each critique point explicitly.\n- **Over-reflection.** Too many rounds degrade good outputs — the model finds\n  problems that aren't there. Cap rounds and trust the first good pass.\n- **Critic–generator collusion.** With weak role separation, the critic\n  rubber-stamps. Use sharply different prompts, lower temperature for the critic,\n  or a different model.\n- **Unbounded lesson memory.** An ever-growing lessons list fills the context with\n  stale advice. Keep it short, specific, and pruned.\n- **No measurement.** Reflection costs 2–4x tokens. Measure the quality delta per\n  round; if round 2+ adds nothing, ship one round or none.\n- **Critic without standards.** A critic that doesn't know what \"good\" looks like\n  for your task invents standards. Give it rubrics and examples.\n- **Reflecting on the wrong object.** Critiquing the final answer when the flaw is\n  in the plan, or vice versa. Direct the critic at the right artifact.\n","## Overview\n\nSelf-reflection gives a language model a second pass over its own work: generate,\ncritique, revise. The critique can target correctness (\"does this code pass the\ntests?\"), quality (\"is this summary faithful?\"), or strategy (\"is this plan\nactually going to work?\"). Unlike gradient-based learning, reflection improves the\noutput within a single episode using only inference — the model reads its own\ndraft the way an editor reads a manuscript, spots problems, and fixes them.\n\nThe research lineage runs from simple \"review your answer\" prompts through\nReflexion — which stores reflections as episodic memory across trials, so the\nagent learns from past failures without weight updates — to verbal reinforcement\nmethods where the model maintains textual \"lessons learned.\" The pattern is most\npowerful when the critique is grounded: test results, tool outputs, or retrieved\nfacts, rather than the model grading its own vibes.\n\nReflection is inference-time self-improvement. It costs tokens instead of\ngradients, and it works on any model — including ones you can't fine-tune.\n\n## When to use\n\n- Agent tasks with verifiable feedback: code that runs, plans that execute,\n  answers checkable against sources.\n- Improving output quality when you can't or won't fine-tune (API-only models,\n  one-off tasks).\n- Multi-attempt problems where learning from failed attempts beats independent\n  retries.\n- Long-horizon tasks where early mistakes compound — reflection catches drift\n  before it cascades.\n- Building \"verbal RL\" loops: accumulating textual lessons across episodes as a\n  lightweight alternative to training.\n- Quality gates in generation pipelines: draft → critique → ship only if clean.\n\n## Core concepts\n\n- **Generator–critic split**: even with one model, separate the roles with\n  distinct prompts. The generator is optimistic and constructive; the critic is\n  skeptical and specific. Same weights, different instructions — the role\n  separation is what makes it work.\n- **Grounded critique**: a critic armed with evidence (test failures, tool\n  outputs, retrieved documents) beats a critic armed with opinions. Always feed\n  the critic the most objective signal available.\n- **Reflexion-style episodic memory**: after each trial, the model writes a short\n  reflection (\"I failed because I didn't handle empty input; next time validate\n  first\") stored in a memory buffer and prepended to future trials. The memory is\n  the learning; it persists across attempts.\n- **Reflection depth**: one critique-revise pass catches surface errors; two to\n  three passes catch deeper issues. Beyond that, returns diminish and the model\n  starts second-guessing correct answers.\n- **Critic calibration**: critics can be harsh (rejecting good outputs) or\n  sycophantic (approving everything). Calibrate on examples where you know the\n  right verdict, and prefer specific, actionable critiques over scores.\n- **Verbal reinforcement**: accumulating \"do\u002Fdon't\" lessons in text across\n  episodes. Cheaper than fine-tuning, interpretable, but bounded by context length\n  — curate the lesson list, don't just append forever.\n- **Self-consistency of critique**: run the critic multiple times on important\n  outputs; critiques that reproduce are more trustworthy than one-offs.\n- **Termination signals**: \"no substantive issues found\" is a valid and important\n  critic output. Without it, loops polish forever.\n\n## Practical workflow\n\n1. **Generate the initial output.** Normal generation, no reflection yet. This is\n   the draft.\n2. **Gather ground truth signals.** Run the tests, execute the code, retrieve the\n   source documents — whatever objective feedback exists. Feed failures verbatim\n   to the critic.\n3. **Critique with a dedicated prompt.** Ask for specific flaws: \"List concrete\n   problems with this output. For each: what's wrong, why it matters, how to fix\n   it.\" Ban vague praise\u002Fcriticism.\n4. **Revise against the critique.** The generator addresses each point. Require it\n   to explain what changed — this prevents silent ignoring of the critique.\n5. **Loop with a budget.** Typically 1–3 rounds or until the critic finds no\n   substantive issues. Stop conditions prevent infinite polish loops.\n6. **Persist lessons (for repeated tasks).** Distill recurring fixes into a lessons\n   list reused across episodes — the Reflexion pattern. Prune lessons that stop\n   applying.\n7. **Measure the delta.** Compare final quality with and without reflection on a\n   test set. If reflection adds little, simplify — the tokens aren't free.\n\nChecklist for a reflection loop:\n- Critic prompt tested on known-good and known-bad outputs (it must distinguish\n  them).\n- Objective signals (tests, tools) fed to the critic, not just the draft.\n- Max rounds capped; \"no issues found\" is a valid termination.\n- Lessons memory pruned periodically if used across episodes.\n- Quality delta measured to justify the token cost.\n\n## Common pitfalls\n\n- **Ungrounded self-grading.** \"Review your own answer\" with no external signal\n  often produces confident approval of wrong answers or random changes to right\n  ones. Ground the critic.\n- **Reflection theater.** The model writes a critique, then regenerates essentially\n  the same output. Require the revision to address each critique point explicitly.\n- **Over-reflection.** Too many rounds degrade good outputs — the model finds\n  problems that aren't there. Cap rounds and trust the first good pass.\n- **Critic–generator collusion.** With weak role separation, the critic\n  rubber-stamps. Use sharply different prompts, lower temperature for the critic,\n  or a different model.\n- **Unbounded lesson memory.** An ever-growing lessons list fills the context with\n  stale advice. Keep it short, specific, and pruned.\n- **No measurement.** Reflection costs 2–4x tokens. Measure the quality delta per\n  round; if round 2+ adds nothing, ship one round or none.\n- **Critic without standards.** A critic that doesn't know what \"good\" looks like\n  for your task invents standards. Give it rubrics and examples.\n- **Reflecting on the wrong object.** Critiquing the final answer when the flaw is\n  in the plan, or vice versa. Direct the critic at the right artifact.\n",{"name":5,"category":24,"description":7},"ai-research","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-self-reflection",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill self-reflection",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill self-reflection",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill self-reflection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-self-reflection\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]