[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PVBF06TQDP7RFESHZ8AZ12":3,"skill-same:01M6PVBF06TQDP7RFESHZ8AZ12":67},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":46,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6PVBF06TQDP7RFESHZ8AZ12","context-reset",null,"Clean context reset protocol covering commit work, write handoff, update task card, and inform supervisor. Use when the context window is approaching its limit (system signals compression), when switching to a fundamentally different task domain, or when explicitly requested by the supervisor.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fcore\u002Fskills\u002Fcontext-reset\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"context reset","context","reset","update task","window","limit","clean context","card","switching","signals","domain","commit","task","clean","use","work","supervisor","system","commit work","update","2026-11-10 10:12:30",false,"---\nname: context-reset\ndescription: >-\n  Clean context reset protocol covering commit work, write handoff, update\n  task card, and inform supervisor. Use when the context window is\n  approaching its limit (system signals compression), when switching to a\n  fundamentally different task domain, or when explicitly requested by the\n  supervisor.\nlicense: MIT\nai_hats:\n  schema_version: 1\n  type: skill\n---\n\n# Context Reset\n\nProtocol for cleanly resetting agent context when the context window fills up or a fresh start is needed.\n\n## When to Use\n\nThe full *commit → handoff → card-update → clear* protocol, triggered by\n**context pressure or a domain switch** — not by finishing a task. For\nend-of-task wrap-up where context is still healthy, use **task-summary** (the\nrecord) or just transition the card; you don't need a reset. The handoff-file\nstep itself is **context-handoff**, which this protocol invokes — call that one\ndirectly if you want a handoff without clearing context.\n\n## Procedure\n\n1. **Assess current state:**\n   - Is there uncommitted work? → commit or stash first\n   - Is there an active task card? → note current state in `work_log`\n   - Are there open files or running processes? → clean up\n\n2. **Run context-handoff:**\n   - Execute **context-handoff** to write a handoff file\n   - For general sessions: write to `\u003Cai_hats_dir>\u002Fsessions\u002Fhandoffs\u002FYYYY-MM-DD-\u003Ctitle>.md`\n   - For active tasks: `rack transition \u003CID> --attach \u003Cfile>:handoff.md` —\n     the tracker refuses a direct write (see **context-handoff** step 1)\n\n3. **Update task card** (if exists):\n   - Remaining work is a coherent chunk → shape it per **task-slicing**, append\n     as `## Steps` checklist items in plan.md, run `rack plan-extract \u003CID>`\n     (idempotent), wire order via `rack transition \u003CID> --link depends:\u003CDEP>` —\n     the tail becomes takeable successor tasks instead of a frozen card\n   - Otherwise set state to `blocked` with reason: `context-reset`\n   - Add `handoff_file` path to `work_log`\n\n4. **Report to supervisor:**\n   - Print the handoff file path\n   - Print brief summary: what was done, what remains\n   - Suggest the command to resume (e.g., \"continue task HATS-XXX using handoff at \u003Cpath>\")\n\n## Completion\n\n- All work committed or stashed\n- Handoff file written via **context-handoff**\n- Task card updated (if applicable)\n- Supervisor informed with resume instructions\n\n## Anti-Patterns\n\n- Resetting without saving context — the next agent starts blind\n- Leaving uncommitted changes — work is lost on context switch\n- Writing the handoff AFTER reset — too late, context is already gone\n","# Context Reset\n\nProtocol for cleanly resetting agent context when the context window fills up or a fresh start is needed.\n\n## When to Use\n\nThe full *commit → handoff → card-update → clear* protocol, triggered by\n**context pressure or a domain switch** — not by finishing a task. For\nend-of-task wrap-up where context is still healthy, use **task-summary** (the\nrecord) or just transition the card; you don't need a reset. The handoff-file\nstep itself is **context-handoff**, which this protocol invokes — call that one\ndirectly if you want a handoff without clearing context.\n\n## Procedure\n\n1. **Assess current state:**\n   - Is there uncommitted work? → commit or stash first\n   - Is there an active task card? → note current state in `work_log`\n   - Are there open files or running processes? → clean up\n\n2. **Run context-handoff:**\n   - Execute **context-handoff** to write a handoff file\n   - For general sessions: write to `\u003Cai_hats_dir>\u002Fsessions\u002Fhandoffs\u002FYYYY-MM-DD-\u003Ctitle>.md`\n   - For active tasks: `rack transition \u003CID> --attach \u003Cfile>:handoff.md` —\n     the tracker refuses a direct write (see **context-handoff** step 1)\n\n3. **Update task card** (if exists):\n   - Remaining work is a coherent chunk → shape it per **task-slicing**, append\n     as `## Steps` checklist items in plan.md, run `rack plan-extract \u003CID>`\n     (idempotent), wire order via `rack transition \u003CID> --link depends:\u003CDEP>` —\n     the tail becomes takeable successor tasks instead of a frozen card\n   - Otherwise set state to `blocked` with reason: `context-reset`\n   - Add `handoff_file` path to `work_log`\n\n4. **Report to supervisor:**\n   - Print the handoff file path\n   - Print brief summary: what was done, what remains\n   - Suggest the command to resume (e.g., \"continue task HATS-XXX using handoff at \u003Cpath>\")\n\n## Completion\n\n- All work committed or stashed\n- Handoff file written via **context-handoff**\n- Task card updated (if applicable)\n- Supervisor informed with resume instructions\n\n## Anti-Patterns\n\n- Resetting without saving context — the next agent starts blind\n- Leaving uncommitted changes — work is lost on context switch\n- Writing the handoff AFTER reset — too late, context is already gone\n",{"name":5,"ai_hats":44,"license":15,"description":7},{"type":45,"schema_version":46},"skill",1,"master","f922a7f627276366873d546942d9ad899a86f71a","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fcore\u002Fskills\u002Fcontext-reset","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add muratovv\u002Fai-hats --skill context-reset",{"tool":59,"command":60},"bunx","bunx skills add muratovv\u002Fai-hats --skill context-reset",{"tool":62,"command":63},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill context-reset","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fcore\u002Fskills\u002Fcontext-reset\u002FSKILL.md",true,[],[68,94,119,142,166,180],{"skillNo":69,"name":70,"nameZh":6,"description":71,"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":39},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[75,76,77,78,79,80,81,82,83,84,33,85,86,87,88,89,90,91,92,93],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[101,102,103,104,75,105,106,107,108,109,33,110,111,112,113,114,115,116,117,118],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":130,"publishedAt":39},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[125],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[131,132,133,134,135,108,136,33,137,113,138,139,140,91,141],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":149,"publishedAt":39},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[148],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},[150,151,152,153,154,155,156,157,158,159,33,160,161,162,163,164,165],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[173,174,175,176,177,178,33,179,91],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":187,"publishedAt":39},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[186],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},[188,189,190,191,153,192,193,194,159,108,33,195,196,89,197,198,199,200,201,202],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]