[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74PHX3CPKXWTJ9AE5MMDKQA":3,"skill-same:01M74PHX3CPKXWTJ9AE5MMDKQA":56},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M74PHX3CPKXWTJ9AE5MMDKQA","self-improve",null,"Capture durable user feedback into the governing skill, doc or check, or propose creating a new skill when no suitable one exists, so future sessions don't repeat the mistake. Use when the user rejects, reverts, or overrides the agent's output or approach on something a skill, doc or check covers or should cover, and when manually invoked to improve or create guidance.","eai-org\u002Fagent-toolkit","eai-org","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301886321?v=4","01M74PFC3HF57T58MQ14P212BQ","Engineering in the age of AI","01M74PFC46MSKTT9SW5Q437FSD",85,"MIT","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fself-improve\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: self-improve\ndescription: Capture durable user feedback into the governing skill, doc or check, or propose creating a new skill when no suitable one exists, so future sessions don't repeat the mistake. Use when the user rejects, reverts, or overrides the agent's output or approach on something a skill, doc or check covers or should cover, and when manually invoked to improve or create guidance.\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash\nlicense: MIT\nmetadata:\n  version: \"1.14\"\n---\n\n# Self-improve\n\n**Suggest** durable improvements to the skill, doc or check that should have steered the agent,\nso the next session gets it right without being told again — and apply them only after the user\napproves. The skill proposes; the user stays in control of every change. Three ways in:\n\n- **Manual** — the user invokes `\u002Fself-improve` to deliberately improve a skill or doc.\n- **Self-triggered** — the agent notices it was corrected on something a skill, doc or check\n  governs (or should). Don't silently correct and move on, but don't derail the task either: note\n  the lesson, finish what the user asked for, and offer to persist it at the next natural\n  breakpoint.\n- **Driven by another skill** — a caller hands over lessons already phrased as durable guidance\n  (directly, through its launch command pasted by the user, or to a subagent it spawns per\n  [delegate.md](delegate.md)), sometimes with all or part of a target it settled with the user\n  (scope, form, path — possibly a new file or a merge into an existing one). Skip\n  step 1; skip step 2 for a lesson whose target the caller settled fully, run it for the rest\n  keeping what the caller settled — its Mechanical lesson bullet and new-doc indexing requirement\n  always apply. Several lessons at once → first propose their placement as one table, each lesson\n  with its doc, existing or new; then draft + apply, lessons sharing a target as one diff.\n\n\"Skill\u002Fdoc\" means any standing instruction: a `SKILL.md`, `AGENTS.md`\u002F`CLAUDE.md`, a\ncoding-standards or convention doc, a rules file — anything that guides future agents. A \"check\"\n(lint rule, hook, CI job) enforces one mechanically and is not a skill\u002Fdoc.\n\n## Hard rules\n\n- **Confirm before applying.** The skill's job is to **suggest**, never to change text on its own.\n  Never edit a skill, doc or check without the user's explicit go-ahead on the concrete change —\n  present it as a diff and apply only on approval, whether the user invoked the skill or the agent\n  self-triggered — except under Autoaccept, below. State plainly whether a change is not yet\n  applied (awaiting approval) or already applied (and where), so the user never has to ask.\n- **Editing any skill\u002Fdoc → always route the write through one of two skills to keep it compact;\n  never edit it directly.** A `SKILL.md` goes through\n  [compact-skill-creator](..\u002Fcompact-skill-creator\u002FSKILL.md); any other doc (rule,\n  `AGENTS.md`\u002F`CLAUDE.md`, convention doc) goes through\n  [compact-docs-writer](..\u002Fcompact-docs-writer\u002FSKILL.md). Actually invoke the skill and follow its\n  workflow *before* drafting or applying; reading it, applying its principles by hand, or naming it\n  after a direct edit does not count. A check is edited directly.\n\n## Autoaccept\n\nThe word `autoaccept`, in the invocation or a caller's brief, is the go-ahead given in advance:\neach lesson's target (the placement table included) and edit take the agent's own recommendation\nand are applied without the diff being confirmed (the compaction skills' present-and-confirm step\nincluded), each reported with the file it changed or that already covers it. Still put to the user\n(in a subagent, reported `blocked`): a lesson that reverses an existing rule, one needing a new\ntarget (step 2), and any placement the agent is unsure of.\n\n## Recognize a persistable correction (self-trigger)\n\nSignals the agent was corrected in a way worth persisting: the user rejects or reverts a choice\n(\"no, do X instead\"), states a standing preference (\"we always…\", \"never…\"), or redirects an action\nthe agent took under a skill or doc.\n\n**Only persist a *durable* lesson** — one that generalizes and will recur. Skip one-off,\ntask-specific tweaks that won't apply next time; persisting those pollutes the docs.\nWhenever unsure whether it generalizes, ask the user.\n\n## Workflow\n\n1. **Capture the lesson.** State, in one line, the general rule the feedback implies — not the\n   surface incident (\"Mock external HTTP in unit tests,\" not \"the agent mocked the wrong call\").\n2. **Locate the target.** Settle scope first: would the lesson hold in another project? No → a\n   project doc, rule or wrapper, never a shared generic skill. Yes → the governing skill or doc,\n   shared ones included, edited at its canonical source when the installed copy is a symlink or\n   sync — the proposal says so. Find which skill\u002Fdoc governs this action (search skills,\n   `AGENTS.md`\u002F`CLAUDE.md`, convention docs); when the repo defines a doc-placement guide (e.g.\n   `.agents\u002Fdocs\u002FREADME.md`), follow it for locating and creating targets. If one exists, it's the\n   target — and if that rule already existed yet failed to steer the agent, the discoverability gap\n   *is* the lesson, not a no-op: don't stop at \"the rule exists.\" Diagnose why it didn't fire\n   (buried, in a doc the agent wouldn't open for this action, scoped or worded too narrowly, or\n   unenforced) and fix that root cause: surface it where the agent looks, tighten its scope,\n   cross-reference it, or enforce it mechanically. If none fits, propose a new target and ask\n   before drafting: a check for a mechanical lesson (below), a new skill for a recurring workflow,\n   a new rule for a standing constraint, or the most fitting doc otherwise; a new doc comes with its\n   entry-file index line and read-when hook, or nothing ever loads it. Ask whenever unsure.\n   - **Mechanical lesson** (a banned API, an import shape, a file location: any fixed pattern) →\n     propose a deterministic check over prose; the check is declined, or no tooling can host it\n     (the proposal says so) → write the rule. Read the repo's check scripts and CI first: wire or\n     repair an existing check rather than add one.\n   - **Place by context cost.** Always-loaded docs (`AGENTS.md`\u002F`CLAUDE.md`) hold mostly pointers;\n     a rule that matters only when reviewing goes in a review-time doc, not implementation context.\n3. **Draft the edit.** Write the rule into the target as the least text that fully captures it:\n   agent-agnostic (\"the agent\", never a vendor name), no process narration, no restating — a real\n   durable instruction. Prefer tightening or extending an existing rule over appending a new one.\n   If the lesson **reverses** an existing rule, surface that explicitly — show the old rule, the\n   feedback, and the proposed replacement — and never overwrite it silently; the contradiction may\n   mean the feedback is context-specific, not a true reversal. A check is drafted outside the\n   repo, with its proof: run it on a reproduction of the mistake (must fail) and on the corrected\n   case (must pass), both results in the proposal; one that cannot run here is labelled untested.\n4. **Apply the edit.** Route the write per the Hard rules — `SKILL.md` → compact-skill-creator, any\n   other doc → compact-docs-writer, a check → edited directly — presenting a diff and applying only\n   on approval, Autoaccept aside. Done when every handed-over or captured lesson is applied,\n   declined by the user, reported as already covered or still put to the user (Autoaccept), each\n   named in the closing message.\n","# Self-improve\n\n**Suggest** durable improvements to the skill, doc or check that should have steered the agent,\nso the next session gets it right without being told again — and apply them only after the user\napproves. The skill proposes; the user stays in control of every change. Three ways in:\n\n- **Manual** — the user invokes `\u002Fself-improve` to deliberately improve a skill or doc.\n- **Self-triggered** — the agent notices it was corrected on something a skill, doc or check\n  governs (or should). Don't silently correct and move on, but don't derail the task either: note\n  the lesson, finish what the user asked for, and offer to persist it at the next natural\n  breakpoint.\n- **Driven by another skill** — a caller hands over lessons already phrased as durable guidance\n  (directly, through its launch command pasted by the user, or to a subagent it spawns per\n  [delegate.md](delegate.md)), sometimes with all or part of a target it settled with the user\n  (scope, form, path — possibly a new file or a merge into an existing one). Skip\n  step 1; skip step 2 for a lesson whose target the caller settled fully, run it for the rest\n  keeping what the caller settled — its Mechanical lesson bullet and new-doc indexing requirement\n  always apply. Several lessons at once → first propose their placement as one table, each lesson\n  with its doc, existing or new; then draft + apply, lessons sharing a target as one diff.\n\n\"Skill\u002Fdoc\" means any standing instruction: a `SKILL.md`, `AGENTS.md`\u002F`CLAUDE.md`, a\ncoding-standards or convention doc, a rules file — anything that guides future agents. A \"check\"\n(lint rule, hook, CI job) enforces one mechanically and is not a skill\u002Fdoc.\n\n## Hard rules\n\n- **Confirm before applying.** The skill's job is to **suggest**, never to change text on its own.\n  Never edit a skill, doc or check without the user's explicit go-ahead on the concrete change —\n  present it as a diff and apply only on approval, whether the user invoked the skill or the agent\n  self-triggered — except under Autoaccept, below. State plainly whether a change is not yet\n  applied (awaiting approval) or already applied (and where), so the user never has to ask.\n- **Editing any skill\u002Fdoc → always route the write through one of two skills to keep it compact;\n  never edit it directly.** A `SKILL.md` goes through\n  [compact-skill-creator](..\u002Fcompact-skill-creator\u002FSKILL.md); any other doc (rule,\n  `AGENTS.md`\u002F`CLAUDE.md`, convention doc) goes through\n  [compact-docs-writer](..\u002Fcompact-docs-writer\u002FSKILL.md). Actually invoke the skill and follow its\n  workflow *before* drafting or applying; reading it, applying its principles by hand, or naming it\n  after a direct edit does not count. A check is edited directly.\n\n## Autoaccept\n\nThe word `autoaccept`, in the invocation or a caller's brief, is the go-ahead given in advance:\neach lesson's target (the placement table included) and edit take the agent's own recommendation\nand are applied without the diff being confirmed (the compaction skills' present-and-confirm step\nincluded), each reported with the file it changed or that already covers it. Still put to the user\n(in a subagent, reported `blocked`): a lesson that reverses an existing rule, one needing a new\ntarget (step 2), and any placement the agent is unsure of.\n\n## Recognize a persistable correction (self-trigger)\n\nSignals the agent was corrected in a way worth persisting: the user rejects or reverts a choice\n(\"no, do X instead\"), states a standing preference (\"we always…\", \"never…\"), or redirects an action\nthe agent took under a skill or doc.\n\n**Only persist a *durable* lesson** — one that generalizes and will recur. Skip one-off,\ntask-specific tweaks that won't apply next time; persisting those pollutes the docs.\nWhenever unsure whether it generalizes, ask the user.\n\n## Workflow\n\n1. **Capture the lesson.** State, in one line, the general rule the feedback implies — not the\n   surface incident (\"Mock external HTTP in unit tests,\" not \"the agent mocked the wrong call\").\n2. **Locate the target.** Settle scope first: would the lesson hold in another project? No → a\n   project doc, rule or wrapper, never a shared generic skill. Yes → the governing skill or doc,\n   shared ones included, edited at its canonical source when the installed copy is a symlink or\n   sync — the proposal says so. Find which skill\u002Fdoc governs this action (search skills,\n   `AGENTS.md`\u002F`CLAUDE.md`, convention docs); when the repo defines a doc-placement guide (e.g.\n   `.agents\u002Fdocs\u002FREADME.md`), follow it for locating and creating targets. If one exists, it's the\n   target — and if that rule already existed yet failed to steer the agent, the discoverability gap\n   *is* the lesson, not a no-op: don't stop at \"the rule exists.\" Diagnose why it didn't fire\n   (buried, in a doc the agent wouldn't open for this action, scoped or worded too narrowly, or\n   unenforced) and fix that root cause: surface it where the agent looks, tighten its scope,\n   cross-reference it, or enforce it mechanically. If none fits, propose a new target and ask\n   before drafting: a check for a mechanical lesson (below), a new skill for a recurring workflow,\n   a new rule for a standing constraint, or the most fitting doc otherwise; a new doc comes with its\n   entry-file index line and read-when hook, or nothing ever loads it. Ask whenever unsure.\n   - **Mechanical lesson** (a banned API, an import shape, a file location: any fixed pattern) →\n     propose a deterministic check over prose; the check is declined, or no tooling can host it\n     (the proposal says so) → write the rule. Read the repo's check scripts and CI first: wire or\n     repair an existing check rather than add one.\n   - **Place by context cost.** Always-loaded docs (`AGENTS.md`\u002F`CLAUDE.md`) hold mostly pointers;\n     a rule that matters only when reviewing goes in a review-time doc, not implementation context.\n3. **Draft the edit.** Write the rule into the target as the least text that fully captures it:\n   agent-agnostic (\"the agent\", never a vendor name), no process narration, no restating — a real\n   durable instruction. Prefer tightening or extending an existing rule over appending a new one.\n   If the lesson **reverses** an existing rule, surface that explicitly — show the old rule, the\n   feedback, and the proposed replacement — and never overwrite it silently; the contradiction may\n   mean the feedback is context-specific, not a true reversal. A check is drafted outside the\n   repo, with its proof: run it on a reproduction of the mistake (must fail) and on the corrected\n   case (must pass), both results in the proposal; one that cannot run here is labelled untested.\n4. **Apply the edit.** Route the write per the Hard rules — `SKILL.md` → compact-skill-creator, any\n   other doc → compact-docs-writer, a check → edited directly — presenting a diff and applying only\n   on approval, Autoaccept aside. Done when every handed-over or captured lesson is applied,\n   declined by the user, reported as already covered or still put to the user (Autoaccept), each\n   named in the closing message.\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":26},{"version":25},"1.14","Read, Write, Edit, Glob, Grep, Bash","main","d79feee1f4817fe025b16c6b910364c6f1d5f472","skills\u002Fself-improve",19,"https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit","https:\u002F\u002Feai-org.github.io\u002Fagent-toolkit-docs","https:\u002F\u002Fgithub.com\u002Feai-org","https:\u002F\u002Fmedium.com\u002Fengineering-in-the-age-of-ai","2026-11-14 22:36:21",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add eai-org\u002Fagent-toolkit --skill self-improve",{"tool":42,"command":43},"bunx","bunx skills add eai-org\u002Fagent-toolkit --skill self-improve",{"tool":45,"command":46},"pnpm","pnpm dlx skills add eai-org\u002Fagent-toolkit --skill self-improve","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fself-improve\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"delegate.md","REFERENCE","参考文档",1865,"https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fself-improve\u002Fdelegate.md",[57,63,70,77,84,91],{"skillNo":58,"name":59,"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":60,"categories":61,"keywords":62,"publishedAt":19},"01M74PKAVPTTY5PSSAWHCRVY9T","no-frontmatter","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Fno-frontmatter\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},"01M74PK8J99W7V3669Y4JG2JKV","other-name","Fixture skill whose name differs from its folder.","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Fname-mismatch\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},"01M74PK6T9DHVRCNHTEV2ZA4Y3","md-off","A fixture skill whose folder turns the line length off below a root that sets 99.","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Fmd-off\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},"01M74PK4H4N3D290V4C08M4DGY","long-line","Fixture skill with one prose line of 100 characters, over the fixtures' limit of 99.","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Flong-line\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},"01M74PK2DJ2MCR5KFPMYVQWNJG","flag-without-flow","Fixture skill with the flag and no type.","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Fflag-without-flow\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M74PK03XGEBQ986FDAE46WCM","double-backtick","A fixture skill with double-backtick code spans holding a link template and an overrun.","https:\u002F\u002Fgithub.com\u002Feai-org\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Ftest\u002Fcompact-skill-creator\u002Ffixtures\u002Fdouble-backtick\u002FSKILL.md",[],[]]