[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CQWDPBR4WXDJ7MCG5SRWSC":3,"skill-same:01M7CQWDPBR4WXDJ7MCG5SRWSC":48},{"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":32,"updatedAt":33,"install":34,"resources":47},"01M7CQWDPBR4WXDJ7MCG5SRWSC","restore",null,"Undo a haircut trim. Puts back the skills, commands, subagents, MCP servers, hooks, plugins and files that haircut parked into a dated bag, using the receipt it wrote at the time. Use this skill whenever the user says undo the cleanup, undo the haircut, put my config back, restore what was trimmed, I need that MCP server again, that skill is gone and I want it back, roll the trim back, what is in the bag, or which files were moved. Use it also when something stopped working right after a config cleanup and they suspect the cleanup caused it, and whenever they ask how to reverse a config cleanup they regret.","OthmanAdi\u002Fhaircut","OthmanAdi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78882424?v=4","01M7CQW31DWCJ19R3AW9GSAK02","Ahmad-Othman Adi","01M7CQW31ZBBBZ7SV2YXZB2GMD",2,"MIT","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Fskills\u002Frestore\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: restore\ndescription: >-\n  Undo a haircut trim. Puts back the skills, commands, subagents, MCP servers,\n  hooks, plugins and files that haircut parked into a dated bag, using the receipt\n  it wrote at the time. Use this skill whenever the user says undo the cleanup,\n  undo the haircut, put my config back, restore what was trimmed, I need that MCP\n  server again, that skill is gone and I want it back, roll the trim back, what is\n  in the bag, or which files were moved. Use it also when something stopped\n  working right after a config cleanup and they suspect the cleanup caused it, and\n  whenever they ask how to reverse a config cleanup they regret.\nallowed-tools: Bash, Read, Write, AskUserQuestion, Glob, Grep\n---\n\n# haircut restore\n\nRestore walks a bag's manifest in reverse: files move back where they came from,\nsymlinks are relinked, and anything it cannot reverse on its own is printed for\nthe user. It never deletes, and it never overwrites a path that exists again.\n\n## 1. Find the bag\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" status\n```\n\nThis lists every bag with its operation count and the restore command for each.\nBags are named after the run that made them. If there is more than one and the\nuser has not said which, ask before touching anything.\n\n## 2. Dry run, always\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --dry-run\n```\n\nThat takes the newest bag. For a specific one:\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --bag \u003Cbag id> --dry-run\n```\n\nRead the plan and tell the user in plain words what comes back, what is skipped\nand why. Skips are normal and not a failure: a path that exists again is never\noverwritten, and the manifest records the reason.\n\n## 3. Restore\n\nThe same command without `--dry-run`, after the user has seen the plan and said\nyes.\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --bag \u003Cbag id>\n```\n\n## 4. What restore will not do on its own\n\nThree kinds of operation need a word from you:\n\n- **`edit`**: a config file that trim rewrote, for example a hook removed from a\n  settings file or a server disabled in a config file. The verbatim original sits\n  in `_originals` inside the bag. Restore points at it instead of clobbering the\n  file, because the user may have edited that file since. Offer\n  `--restore-edits`, which copies the original back over it, and say plainly that\n  any change made to that file since the trim is lost when they do.\n- **`cli`**: trim used the agent's own command line to remove a server or disable\n  a plugin. Restore prints the reverse command. Show it to the user and run it\n  only on their go.\n- **Symlinks and junctions**: relinking on Windows needs Developer Mode or an\n  elevated shell. If it fails for that reason, say so and hand the user the\n  command rather than retrying.\n\n## Rules\n\n- Restore never deletes anything, including on the way back.\n- Partial is fine. `--bag` picks which bag; inside it, skips are reported rather\n  than forced.\n- Never print a credential. A file coming out of a bag may hold one. Name the\n  path, not the content.\n- Anything that loads at session start will not appear in the current session\n  after it comes back. Tell the user to start a new session.\n- If what the user actually wants is to park something again, that is the\n  `haircut` skill, not this one.\n","# haircut restore\n\nRestore walks a bag's manifest in reverse: files move back where they came from,\nsymlinks are relinked, and anything it cannot reverse on its own is printed for\nthe user. It never deletes, and it never overwrites a path that exists again.\n\n## 1. Find the bag\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" status\n```\n\nThis lists every bag with its operation count and the restore command for each.\nBags are named after the run that made them. If there is more than one and the\nuser has not said which, ask before touching anything.\n\n## 2. Dry run, always\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --dry-run\n```\n\nThat takes the newest bag. For a specific one:\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --bag \u003Cbag id> --dry-run\n```\n\nRead the plan and tell the user in plain words what comes back, what is skipped\nand why. Skips are normal and not a failure: a path that exists again is never\noverwritten, and the manifest records the reason.\n\n## 3. Restore\n\nThe same command without `--dry-run`, after the user has seen the plan and said\nyes.\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fhaircut.mjs\" restore --bag \u003Cbag id>\n```\n\n## 4. What restore will not do on its own\n\nThree kinds of operation need a word from you:\n\n- **`edit`**: a config file that trim rewrote, for example a hook removed from a\n  settings file or a server disabled in a config file. The verbatim original sits\n  in `_originals` inside the bag. Restore points at it instead of clobbering the\n  file, because the user may have edited that file since. Offer\n  `--restore-edits`, which copies the original back over it, and say plainly that\n  any change made to that file since the trim is lost when they do.\n- **`cli`**: trim used the agent's own command line to remove a server or disable\n  a plugin. Restore prints the reverse command. Show it to the user and run it\n  only on their go.\n- **Symlinks and junctions**: relinking on Windows needs Developer Mode or an\n  elevated shell. If it fails for that reason, say so and hand the user the\n  command rather than retrying.\n\n## Rules\n\n- Restore never deletes anything, including on the way back.\n- Partial is fine. `--bag` picks which bag; inside it, skips are reported rather\n  than forced.\n- Never print a credential. A file coming out of a bag may hold one. Name the\n  path, not the content.\n- Anything that loads at session start will not appear in the current session\n  after it comes back. Tell the user to start a new session.\n- If what the user actually wants is to park something again, that is the\n  `haircut` skill, not this one.\n",{"name":5,"description":7,"allowed-tools":24},"Bash, Read, Write, AskUserQuestion, Glob, Grep","master","59597941374ee8b01bcf0853e2ae205aaaaf7c4c","skills\u002Frestore",1,"https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut","https:\u002F\u002Fgithub.com\u002FOthmanAdi","https:\u002F\u002Fplanningwithfiles.tech\u002F","Senior Applied AI Engineer. Creator of Planning with Files. I build enterprise agents, developer tools and learning software.","2026-09-14 05:47:40",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add OthmanAdi\u002Fhaircut --skill restore",{"tool":40,"command":41},"bunx","bunx skills add OthmanAdi\u002Fhaircut --skill restore",{"tool":43,"command":44},"pnpm","pnpm dlx skills add OthmanAdi\u002Fhaircut --skill restore","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Fskills\u002Frestore\u002FSKILL.md",true,[],[49,56,63,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7CQX459ZJZ64C19WK8ZW7D9","foo","A tiny test skill for haircut fixtures.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fothers\u002F.config\u002Fopencode\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"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},"01M7CQX2HZA240V4NJX3FCRDQD","projskill","Fixture project skill that only loads inside the fixture project folder.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fcodex\u002Fproject\u002F.agents\u002Fskills\u002Fprojskill\u002FSKILL.md",[],[],{"skillNo":64,"name":51,"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},"01M7CQX0Z65Q08Z1R7EMFZS3VC","Fixture skill foo. Use it when a test needs a skill with a real description in its front matter.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fcodex\u002Fhome\u002F.codex\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CQWY5P4N4V0SJZWNA165SD","bar","Fixture skill bar, switched off through [[skills.config]] so haircut can prove it reads that table.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fcodex\u002Fhome\u002F.codex\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CQWW7TYX380XJ3MF31D011","sysskill","Fixture built-in that ships inside .codex\u002Fskills\u002F.system and is hidden from the normal listing.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fcodex\u002Fhome\u002F.codex\u002Fskills\u002F.system\u002Fsysskill\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CQWTPXH7TPHPYJHRKAAR10","shared-skill","Fixture skill in the shared ~\u002F.agents\u002Fskills root that Codex and Claude Code both read.","https:\u002F\u002Fgithub.com\u002FOthmanAdi\u002Fhaircut\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fcodex\u002Fhome\u002F.agents\u002Fskills\u002Fshared-skill\u002FSKILL.md",[],[]]