[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M788N61353V2NXGPWEVP97W7":3,"skill-same:01M788N61353V2NXGPWEVP97W7":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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M788N61353V2NXGPWEVP97W7","agent-retrospective",null,"An AI agent analyzing its own recent session transcripts to find friction, missed user corrections, and redundant work, then proposing durable improvements to its prompts, skills, and workflow. Use when asked to \"self-improve\", \"run a retrospective\", \"what did I get corrected on\", \"find friction in my sessions\", or to review and improve an agent's own behavior from its logs.","jingchaodev\u002Fskills-lab","jingchaodev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8307474?v=4","01M788N3PES0P1DGEKSE9ZYDSD","chao","01M788N3QH1AYYGWKFG9XTX3WF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Fskills\u002Fagent-retrospective\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-retrospective\ndescription: An AI agent analyzing its own recent session transcripts to find friction, missed user corrections, and redundant work, then proposing durable improvements to its prompts, skills, and workflow. Use when asked to \"self-improve\", \"run a retrospective\", \"what did I get corrected on\", \"find friction in my sessions\", or to review and improve an agent's own behavior from its logs.\n---\n\n# Agent Retrospective\n\nAn agent getting better by reading its own transcripts. The goal is to convert\nscattered in-session friction into **durable changes** — edits to system prompts,\nskills, or workflow — so the same mistake doesn't recur. **Bias toward missing a\nweak pattern over inventing a bad rule:** a wrong \"lesson\" is worse than no lesson.\n\n## When to Run\n\n- On a schedule (e.g. daily\u002Fweekly) over recent sessions.\n- On demand: \"self-improve\", \"run a retrospective\", \"what did I get wrong today\".\n- After a session that went badly, to capture the lesson while it's fresh.\n\n## Step 1: Gather Sessions\n\nCollect recent transcripts (session logs \u002F JSONL \u002F chat history). For each,\nextract the user and assistant turns and the tool calls between them. Focus on:\n\n- User corrections and friction signals.\n- Multi-step workflows that succeeded (reuse candidates).\n- Tool-call sequences — especially failures, retries, and redundancy.\n- Explicit requests to remember something or \"make a skill for this\".\n\n## Step 2: Detect Signals\n\n### Correction signals (highest value)\n\n| Strength | Look for |\n|----------|----------|\n| **Explicit** | \"no\", \"wrong\", \"actually…\", \"not that\", \"I said\", \"I meant\", \"don't do X\", \"stop doing X\", \"never\u002Falways X\", \"like I told you\" |\n| **Implicit** | User repeats the same instruction; user undoes the agent's action (reverts a file, cancels a command); terse\u002Ffrustrated replies after agent output |\n| **Rephrasing** | User has to restate the request 2–3 times before the agent gets it |\n\n### Friction signals\n\n- **Dead ends:** the agent went down a path, hit nothing, backed out.\n- **Redundant tool calls:** the same read\u002Fsearch\u002Fcommand repeated, or a\n  wandering search that could have been one targeted query.\n- **Thrash:** editing the same file back and forth; re-deriving something it\n  already knew earlier in the session.\n- **Wrong tool for the job:** a manual multi-step slog where one command\u002Fskill existed.\n\n### Skill\u002Fprompt signals\n\n- Agent **had a relevant skill but still erred** → the skill needs a clearer\n  gotcha or anti-pattern.\n- Agent **didn't load a relevant skill** when it should have → the skill's\n  triggers\u002Fdescription are too weak.\n- **Same 3+ step workflow appeared in 2+ sessions** → candidate for a *new* skill.\n- Skill referenced a stale tool\u002FURL\u002FAPI, or was contradicted by what actually\n  happened → needs a factual fix.\n\n## Step 3: Categorize Findings\n\nSort each finding so the fix lands in the right place:\n\n| Category | Root | Fix target |\n|----------|------|-----------|\n| **Behavioral correction** | Agent did X, user wanted Y, repeatedly | Prompt\u002Frules or a lesson |\n| **Missing knowledge** | Agent didn't know a fact\u002Fconvention | Skill content or memory |\n| **Missing capability** | No skill for a recurring workflow | New skill |\n| **Weak triggering** | Skill exists but wasn't invoked | Skill description\u002Ftriggers |\n| **Inefficiency** | Correct result, wasteful path | Workflow guidance \u002F tool-use tip |\n| **Stale content** | Skill\u002Fprompt now factually wrong | Correct or delete |\n\n## Step 4: Set an Evidence Bar\n\nBefore proposing a change, require enough evidence:\n\n- **Explicit correction** → high confidence, act on a single instance.\n- **Implicit friction** → needs a **repeat** (≥2 sessions, or twice in one) before\n  you generalize it into a rule.\n- **New skill** → needs the pattern in **2+ sessions**, or an explicit user ask.\n- **One-off \u002F user-specific quirk** → capture as a narrow note, don't promote it\n  into a general rule.\n\nNo false positives. A cluttered rule set that fires on the wrong situations is\nworse than a lean one.\n\n## Step 5: Turn Findings into Durable Changes\n\nMatch the change to the durability you need:\n\n- **Prompt \u002F rules edit** — for behavioral corrections that should always apply.\n  Phrase as a crisp, testable directive (\"prefer X over Y because Z\"), not a\n  vague reminder.\n- **Skill edit** — add a gotcha\u002Fanti-pattern to an existing skill, fix a stale\n  fact, or sharpen its triggers so it fires when it should.\n- **New skill** — only for a proven recurring multi-step workflow. Start\n  minimal: triggers, procedure, a couple of anti-patterns, one concrete example.\n- **Memory\u002Fnote** — for durable facts and preferences that aren't a whole skill.\n- **Delete\u002Fmerge** — prune stale rules and skills; fold duplicates together. Cleanup is improvement.\n\nFor each proposed change, record: **the evidence** (which session, what\nhappened), **the change**, and **where it lands**.\n\n## Step 6: Apply, Then Report\n\nApply the changes, then summarize what changed and why so the human stays aware:\n\n```\nRetrospective — \u003CN sessions reviewed>\n• Corrected: \u003Cbehavior> → updated \u003Cprompt\u002Fskill>        [evidence: session X]\n• New skill: \u003Cname> — \u003Cone-line purpose>                [seen in sessions X, Y]\n• Updated:  \u003Cskill> — added gotcha about \u003Cthing>        [evidence: session Z]\n• Pruned:   \u003Cskill\u002Frule> — stale (\u003Creason>)\n```\n\n## Step 7: Keep the Skill Set Healthy\n\nAdding skills without curating them produces an overlapping, unfireable mess.\nPeriodically (e.g. a weekly pass, not every run) step back from individual\nfindings and tend the whole set.\n\n### Extract shared patterns\n\nWhen the same procedure shows up in multiple skills, that duplication is itself a\nfinding — factor it out:\n\n- **Threshold:** the same pattern in **3+ skills** → extract it into its own skill.\n- **Granularity:** extract at the *capability* level (\"how to search a codebase\n  effectively\"), not the *step* level (\"step 3 of workflow Y\"). A good extracted\n  skill answers \"how to do X well,\" reusable by any workflow that needs X.\n- **Reference, don't copy:** once extracted, parent skills *link* to it and delete\n  the duplicated content. Note the relationship in both directions (what this\n  skill references, and what references it) so the graph stays navigable.\n\n### Maintain a clean hierarchy\n\nAim for three tiers, so skills compose instead of colliding:\n\n```\nBuilding-block skills   → how to use one tool\u002Fsource\u002Ftechnique well\nOrchestrator skills     → when\u002Fwhy to combine building blocks for a goal\nStandalone skills       → self-contained domain or project workflows\n```\n\n(The oncall set in this repo is the worked example: building blocks like\n`ticket-triage` and `alarm-correlation`, composed by the `oncall-agent`\norchestrator.)\n\n### Run periodic audits\n\n| Audit | Question | Action if it fails |\n|-------|----------|--------------------|\n| **Trigger** | Did this skill's triggers ever fire in recent sessions? | Never fired in weeks → its description\u002Ftriggers are weak, or it's dead weight |\n| **Accuracy** | When a skill *was* used, did the agent follow it correctly? | Errors despite the skill → the instructions are unclear; add a gotcha |\n| **Coverage** | Which recurring workflows have *no* skill? | Repeated uncovered pattern → new-skill candidate |\n| **Duplication** | Do any two skills overlap >~30%? | Merge, or extract the shared part per above |\n\n## Tips\n\n- **Explicit corrections are gold** — mine \"no \u002F actually \u002F I said\" first; they're unambiguous and high-value.\n- **Require a repeat before generalizing.** One weird moment is noise; the same friction twice is a pattern worth a rule.\n- **Redundant tool calls are a quiet, huge cost.** Repeated searches and re-reads signal a missing note, skill, or plan step.\n- **Land the fix at the right altitude:** always-true behavior → prompt\u002Frule; domain fact → skill\u002Fmemory; recurring workflow → new skill.\n- **A wrong lesson is worse than no lesson.** When unsure, capture it as a narrow note, not a broad directive.\n- **Pruning counts.** Deleting a stale rule or merging duplicate skills makes the agent better, not just adding new ones.\n- **Write directives to be testable.** \"Prefer X over Y because Z\" beats \"be more careful.\"\n- **Duplication is a finding too.** The same procedure in three skills isn't three skills — it's one building block waiting to be extracted and referenced.\n","# Agent Retrospective\n\nAn agent getting better by reading its own transcripts. The goal is to convert\nscattered in-session friction into **durable changes** — edits to system prompts,\nskills, or workflow — so the same mistake doesn't recur. **Bias toward missing a\nweak pattern over inventing a bad rule:** a wrong \"lesson\" is worse than no lesson.\n\n## When to Run\n\n- On a schedule (e.g. daily\u002Fweekly) over recent sessions.\n- On demand: \"self-improve\", \"run a retrospective\", \"what did I get wrong today\".\n- After a session that went badly, to capture the lesson while it's fresh.\n\n## Step 1: Gather Sessions\n\nCollect recent transcripts (session logs \u002F JSONL \u002F chat history). For each,\nextract the user and assistant turns and the tool calls between them. Focus on:\n\n- User corrections and friction signals.\n- Multi-step workflows that succeeded (reuse candidates).\n- Tool-call sequences — especially failures, retries, and redundancy.\n- Explicit requests to remember something or \"make a skill for this\".\n\n## Step 2: Detect Signals\n\n### Correction signals (highest value)\n\n| Strength | Look for |\n|----------|----------|\n| **Explicit** | \"no\", \"wrong\", \"actually…\", \"not that\", \"I said\", \"I meant\", \"don't do X\", \"stop doing X\", \"never\u002Falways X\", \"like I told you\" |\n| **Implicit** | User repeats the same instruction; user undoes the agent's action (reverts a file, cancels a command); terse\u002Ffrustrated replies after agent output |\n| **Rephrasing** | User has to restate the request 2–3 times before the agent gets it |\n\n### Friction signals\n\n- **Dead ends:** the agent went down a path, hit nothing, backed out.\n- **Redundant tool calls:** the same read\u002Fsearch\u002Fcommand repeated, or a\n  wandering search that could have been one targeted query.\n- **Thrash:** editing the same file back and forth; re-deriving something it\n  already knew earlier in the session.\n- **Wrong tool for the job:** a manual multi-step slog where one command\u002Fskill existed.\n\n### Skill\u002Fprompt signals\n\n- Agent **had a relevant skill but still erred** → the skill needs a clearer\n  gotcha or anti-pattern.\n- Agent **didn't load a relevant skill** when it should have → the skill's\n  triggers\u002Fdescription are too weak.\n- **Same 3+ step workflow appeared in 2+ sessions** → candidate for a *new* skill.\n- Skill referenced a stale tool\u002FURL\u002FAPI, or was contradicted by what actually\n  happened → needs a factual fix.\n\n## Step 3: Categorize Findings\n\nSort each finding so the fix lands in the right place:\n\n| Category | Root | Fix target |\n|----------|------|-----------|\n| **Behavioral correction** | Agent did X, user wanted Y, repeatedly | Prompt\u002Frules or a lesson |\n| **Missing knowledge** | Agent didn't know a fact\u002Fconvention | Skill content or memory |\n| **Missing capability** | No skill for a recurring workflow | New skill |\n| **Weak triggering** | Skill exists but wasn't invoked | Skill description\u002Ftriggers |\n| **Inefficiency** | Correct result, wasteful path | Workflow guidance \u002F tool-use tip |\n| **Stale content** | Skill\u002Fprompt now factually wrong | Correct or delete |\n\n## Step 4: Set an Evidence Bar\n\nBefore proposing a change, require enough evidence:\n\n- **Explicit correction** → high confidence, act on a single instance.\n- **Implicit friction** → needs a **repeat** (≥2 sessions, or twice in one) before\n  you generalize it into a rule.\n- **New skill** → needs the pattern in **2+ sessions**, or an explicit user ask.\n- **One-off \u002F user-specific quirk** → capture as a narrow note, don't promote it\n  into a general rule.\n\nNo false positives. A cluttered rule set that fires on the wrong situations is\nworse than a lean one.\n\n## Step 5: Turn Findings into Durable Changes\n\nMatch the change to the durability you need:\n\n- **Prompt \u002F rules edit** — for behavioral corrections that should always apply.\n  Phrase as a crisp, testable directive (\"prefer X over Y because Z\"), not a\n  vague reminder.\n- **Skill edit** — add a gotcha\u002Fanti-pattern to an existing skill, fix a stale\n  fact, or sharpen its triggers so it fires when it should.\n- **New skill** — only for a proven recurring multi-step workflow. Start\n  minimal: triggers, procedure, a couple of anti-patterns, one concrete example.\n- **Memory\u002Fnote** — for durable facts and preferences that aren't a whole skill.\n- **Delete\u002Fmerge** — prune stale rules and skills; fold duplicates together. Cleanup is improvement.\n\nFor each proposed change, record: **the evidence** (which session, what\nhappened), **the change**, and **where it lands**.\n\n## Step 6: Apply, Then Report\n\nApply the changes, then summarize what changed and why so the human stays aware:\n\n```\nRetrospective — \u003CN sessions reviewed>\n• Corrected: \u003Cbehavior> → updated \u003Cprompt\u002Fskill>        [evidence: session X]\n• New skill: \u003Cname> — \u003Cone-line purpose>                [seen in sessions X, Y]\n• Updated:  \u003Cskill> — added gotcha about \u003Cthing>        [evidence: session Z]\n• Pruned:   \u003Cskill\u002Frule> — stale (\u003Creason>)\n```\n\n## Step 7: Keep the Skill Set Healthy\n\nAdding skills without curating them produces an overlapping, unfireable mess.\nPeriodically (e.g. a weekly pass, not every run) step back from individual\nfindings and tend the whole set.\n\n### Extract shared patterns\n\nWhen the same procedure shows up in multiple skills, that duplication is itself a\nfinding — factor it out:\n\n- **Threshold:** the same pattern in **3+ skills** → extract it into its own skill.\n- **Granularity:** extract at the *capability* level (\"how to search a codebase\n  effectively\"), not the *step* level (\"step 3 of workflow Y\"). A good extracted\n  skill answers \"how to do X well,\" reusable by any workflow that needs X.\n- **Reference, don't copy:** once extracted, parent skills *link* to it and delete\n  the duplicated content. Note the relationship in both directions (what this\n  skill references, and what references it) so the graph stays navigable.\n\n### Maintain a clean hierarchy\n\nAim for three tiers, so skills compose instead of colliding:\n\n```\nBuilding-block skills   → how to use one tool\u002Fsource\u002Ftechnique well\nOrchestrator skills     → when\u002Fwhy to combine building blocks for a goal\nStandalone skills       → self-contained domain or project workflows\n```\n\n(The oncall set in this repo is the worked example: building blocks like\n`ticket-triage` and `alarm-correlation`, composed by the `oncall-agent`\norchestrator.)\n\n### Run periodic audits\n\n| Audit | Question | Action if it fails |\n|-------|----------|--------------------|\n| **Trigger** | Did this skill's triggers ever fire in recent sessions? | Never fired in weeks → its description\u002Ftriggers are weak, or it's dead weight |\n| **Accuracy** | When a skill *was* used, did the agent follow it correctly? | Errors despite the skill → the instructions are unclear; add a gotcha |\n| **Coverage** | Which recurring workflows have *no* skill? | Repeated uncovered pattern → new-skill candidate |\n| **Duplication** | Do any two skills overlap >~30%? | Merge, or extract the shared part per above |\n\n## Tips\n\n- **Explicit corrections are gold** — mine \"no \u002F actually \u002F I said\" first; they're unambiguous and high-value.\n- **Require a repeat before generalizing.** One weird moment is noise; the same friction twice is a pattern worth a rule.\n- **Redundant tool calls are a quiet, huge cost.** Repeated searches and re-reads signal a missing note, skill, or plan step.\n- **Land the fix at the right altitude:** always-true behavior → prompt\u002Frule; domain fact → skill\u002Fmemory; recurring workflow → new skill.\n- **A wrong lesson is worse than no lesson.** When unsure, capture it as a narrow note, not a broad directive.\n- **Pruning counts.** Deleting a stale rule or merging duplicate skills makes the agent better, not just adding new ones.\n- **Write directives to be testable.** \"Prefer X over Y because Z\" beats \"be more careful.\"\n- **Duplication is a finding too.** The same procedure in three skills isn't three skills — it's one building block waiting to be extracted and referenced.\n",{"name":5,"description":7},"main","44b1acb2c22ab1e94663691dda7d7739f1b83cf6","skills\u002Fagent-retrospective",0,"https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab","https:\u002F\u002Fgithub.com\u002Fjingchaodev","https:\u002F\u002Fx.com\u002Fcifra1902","Developer","2026-07-13 09:03:55",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add jingchaodev\u002Fskills-lab --skill agent-retrospective",{"tool":39,"command":40},"bunx","bunx skills add jingchaodev\u002Fskills-lab --skill agent-retrospective",{"tool":42,"command":43},"pnpm","pnpm dlx skills add jingchaodev\u002Fskills-lab --skill agent-retrospective","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Fskills\u002Fagent-retrospective\u002FSKILL.md",true,[],[48,55,62,69,75,82],{"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},"01M788VYAVHEH5QAV7T1Z8QFV9","default-skill","Valid default cwd skill.","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdefault_cwd\u002Fskills\u002Fdefault-skill\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":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M788VVHF3TC2RY65NVPR26DN","clean-two","Another valid skill with a quoted trigger phrase \"specific action\".","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fclean_skills\u002Fclean-two\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M788VRPGJXZ09X9AM1ZPNAHA","clean-one","Use when the user needs a clean example.","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fclean_skills\u002Fclean-one\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M788VPP8BFKCBXDFRHMP67WH","wrong-frontmatter","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad_skills\u002Fwrong-frontmatter\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M788VKP781ZRGKXVMHZFR062","trigger-two","Use for the exact phrase \"panic button\".","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad_skills\u002Ftrigger-two\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M788VJBR5Q14W6MJB2DWRSVE","trigger-one","Use when someone says \"panic button\".","https:\u002F\u002Fgithub.com\u002Fjingchaodev\u002Fskills-lab\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad_skills\u002Ftrigger-one\u002FSKILL.md",[],[]]