[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78033YWB99B1Y92JY0CFTV1":3,"skill-same:01M78033YWB99B1Y92JY0CFTV1":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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M78033YWB99B1Y92JY0CFTV1","cxc-worktree-guardian",null,"Use for Codex-app worktrees. Triggers: worktree, rename worktree, detached HEAD, ~\u002F.codex\u002Fworktrees, 워크트리, 워크트리 이름, 새 워크트리, 브랜치랑 워크트리.","lidge-jun\u002Fcodexclaw","lidge-jun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F243035832?v=4","01M77ZYSKV8Z3ATX74SGTVT60X","JUN","01M77ZYSMFY8RQFKCVFHFBPQA9",54,"MIT","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fworktree-guardian\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cxc-worktree-guardian\ndescription: \"Use for Codex-app worktrees. Triggers: worktree, rename worktree, detached HEAD, ~\u002F.codex\u002Fworktrees, 워크트리, 워크트리 이름, 새 워크트리, 브랜치랑 워크트리.\"\nmetadata:\n  short-description: \"Managed-worktree identity safety: never delete\u002Frecreate; adopt in place.\"\n---\n\n# Worktree Guardian — Codex-app managed worktrees\n\nThe Codex desktop app creates one worktree per thread under `$CODEX_HOME\u002Fworktrees\u002F`\n(hash or date-slug slot dirs, e.g. `~\u002F.codex\u002Fworktrees\u002F7627\u002Fopencodex`), checked out\nfrom the selected base branch, usually **detached HEAD**. These sessions look like\nscratch directories but are not: the app binds the thread to that directory.\n\n## 1. Three namespaces (WG-CONCEPT-01)\n\n| Namespace | What it is | How to rename |\n|-----------|-----------|---------------|\n| branch | a git ref | `git branch -m \u003Cname>` (or `git switch -c \u003Cname>` from detached HEAD), run inside the worktree |\n| worktree | a directory + its `.git\u002Fworktrees\u002F\u003Cid>` admin entry | `git worktree move \u003Cold> \u003Cnew>` — never for the ACTIVE one (WG-MOVE-01) |\n| thread title | the Codex app sidebar entry | the user renames it in the app; agents cannot |\n\n\"워크트리 이름 붙여줘 \u002F name the worktree\" can mean any of these. Default:\nname the branch in place and tell the user to rename the thread in the app.\n\n## 2. Managed-worktree facts (WG-FACTS-01)\n\n- Root: `$CODEX_HOME\u002Fworktrees` (default `~\u002F.codex\u002Fworktrees`); the app setting can\n  move it (Settings → Worktrees) — codexclaw detection then needs\n  `CODEXCLAW_WORKTREE_ROOTS` (WG-LIMIT-01).\n- Managed worktrees are per-chat disposable; the app retains the latest N (15 by\n  default) and **auto-deletes the worktree when the chat is archived** (a snapshot\n  is kept for restore). Commit early.\n- Source: developers.openai.com\u002Fcodex\u002Fenvironments\u002Fgit-worktrees; identity fragility\n  is a known upstream area (openai\u002Fcodex issues #10917, #10522, #14498, #34662;\n  naming contract still a proposal, #12862).\n\n**One worktree per THREAD, not per agent (WG-FACTS-02).** The per-chat worktree\nbelongs to the Codex task. A subagent spawned with `spawn_agent` inherits this\nsame directory: same path, same branch, same HEAD, and its writes appear in this\nworktree's `git status`. It never gets a worktree of its own, so spawning agents\nis not a way to parallelize branch work — that needs one task per lane, each with\nits own worktree. See [Dispatch surfaces](..\u002Fpabcd\u002Freferences\u002Fdispatch-surfaces.md).\n\n## 3. Never-list (WG-NEVER-01)\n\n- Never `git worktree remove` or `rm -rf` the session's OWN worktree, slot dir, or\n  any ancestor of cwd — not even to \"start clean\". codexclaw's PreToolUse guard\n  (WORKTREE-GUARD-03) denies it; do not try to bypass the deny.\n- Never copy the work elsewhere and delete the original — that loses the app\n  binding and any uncommitted state you missed.\n- Never delete another slot under `~\u002F.codex\u002Fworktrees` without the user explicitly\n  naming that path — another live session may be bound to it.\n\n## 4. Safe procedures (WG-PROC-*)\n\n**Adopt-and-continue (DEFAULT for \"이름 붙이고 새로 시작\"):**\n1. Stay in the worktree. `git switch -c \u003Cname>` (detached HEAD) or\n   `git branch -m \u003Cname>`.\n2. Commit the work in progress (archive auto-deletes managed worktrees).\n3. Tell the user the thread title can be renamed in the app sidebar.\n\n**Move\u002Frepair — OTHER, inactive worktrees only (WG-MOVE-01):**\n`git worktree move \u003Cold> \u003Cnew>` (refuses the main worktree, locked worktrees, and\nworktrees containing submodules). After a manual directory move:\n`git worktree repair \u003Cnew-path>`. Feature-detect with `git worktree move -h` \u002F\n`git worktree repair -h`; do not version-gate. Moving the ACTIVE worktree kills the\nsession's cwd (next command: ENOENT) and app rebinding is undocumented — don't.\n\n**Cleanup of other worktrees:** verify clean (`git status`), merged\n(`git merge-base --is-ancestor`), no open PR head, not any session's cwd; then\n`git worktree remove \u003Cpath>` — never `rm -rf`. A directory deleted without\n`git worktree remove` leaves admin state under `.git\u002Fworktrees\u002F`; recover with\n`git worktree prune` (dry-run first).\nAutomated or bulk cleanup of other worktrees follows `cxc-dev-devops`\n`references\u002Flocal-gc.md` (DEVOPS-LOCAL-GC-01); the never-list above still wins.\n\n## 5. Defense-in-depth limits (WG-LIMIT-01)\n\n- The PreToolUse guard matches literal paths. Pure variable\u002Fglob indirection that\n  never mentions the slot path is out of scope — treat the deny as a seatbelt, not\n  a sandbox.\n- Detection covers the default root + `CODEX_HOME` + `CODEXCLAW_WORKTREE_ROOTS`\n  (path.delimiter-separated). A custom app-side root needs that env.\n\n## 6. Hook interplay (WG-HOOK-01)\n\n- WORKTREE-GUARD-01 (SessionStart): identity block when cwd is managed.\n- WORKTREE-GUARD-02 (UserPromptSubmit): this guidance, once per session, on\n  rename intent.\n- WORKTREE-GUARD-03 (PreToolUse, `^Bash$`): deterministic deny of self-worktree\n  deletion — applies to subagent turns too. The deny is intentional; follow §4\n  instead of routing around it.\n- WORKTREE-GUARD-04 (same PreToolUse hook): when the session bound a source\n  worktree with `cxc session source`, git writes (commit, cherry-pick, merge,\n  rebase, reset, checkout\u002Fswitch, am, revert, push, pull, branch -D\u002F-f\u002F-m) whose\n  repository is another worktree of the same repo are denied. Hooks receive only\n  the command text, never exec_command's `workdir`, so write\n  `git -C \u003Csource> ...` or `cd \u003Csource> && ...`. `--abort`\u002F`--quit` stay allowed.\n- SHELL-SUBST-01 (same hook): a backtick or `$(...)` that the shell will execute\n  and that runs a git write or `gh pr merge\u002Fclose`, `gh issue close` is denied\n  with or without a binding; other backticks inside double quotes get an\n  advisory. Pass generated text through apply_patch, files, or `\u003C\u003C'EOF'`.\n\n## 7. AGENTS.md snippet (WG-AGENTS-01)\n\nFor repos where codexclaw hooks are not installed:\n\n```md\n## Worktree safety\nThis session may run inside a Codex-app-managed worktree (~\u002F.codex\u002Fworktrees\u002F\u003Cslot>\u002F\u003Crepo>).\nNever delete or recreate that directory to \"rename\" it. Adopt in place:\n`git switch -c \u003Cname>` \u002F `git branch -m \u003Cname>`, commit early, and ask the user to\nrename the thread in the app. `git worktree move` is for other, inactive worktrees only.\n```\n","# Worktree Guardian — Codex-app managed worktrees\n\nThe Codex desktop app creates one worktree per thread under `$CODEX_HOME\u002Fworktrees\u002F`\n(hash or date-slug slot dirs, e.g. `~\u002F.codex\u002Fworktrees\u002F7627\u002Fopencodex`), checked out\nfrom the selected base branch, usually **detached HEAD**. These sessions look like\nscratch directories but are not: the app binds the thread to that directory.\n\n## 1. Three namespaces (WG-CONCEPT-01)\n\n| Namespace | What it is | How to rename |\n|-----------|-----------|---------------|\n| branch | a git ref | `git branch -m \u003Cname>` (or `git switch -c \u003Cname>` from detached HEAD), run inside the worktree |\n| worktree | a directory + its `.git\u002Fworktrees\u002F\u003Cid>` admin entry | `git worktree move \u003Cold> \u003Cnew>` — never for the ACTIVE one (WG-MOVE-01) |\n| thread title | the Codex app sidebar entry | the user renames it in the app; agents cannot |\n\n\"워크트리 이름 붙여줘 \u002F name the worktree\" can mean any of these. Default:\nname the branch in place and tell the user to rename the thread in the app.\n\n## 2. Managed-worktree facts (WG-FACTS-01)\n\n- Root: `$CODEX_HOME\u002Fworktrees` (default `~\u002F.codex\u002Fworktrees`); the app setting can\n  move it (Settings → Worktrees) — codexclaw detection then needs\n  `CODEXCLAW_WORKTREE_ROOTS` (WG-LIMIT-01).\n- Managed worktrees are per-chat disposable; the app retains the latest N (15 by\n  default) and **auto-deletes the worktree when the chat is archived** (a snapshot\n  is kept for restore). Commit early.\n- Source: developers.openai.com\u002Fcodex\u002Fenvironments\u002Fgit-worktrees; identity fragility\n  is a known upstream area (openai\u002Fcodex issues #10917, #10522, #14498, #34662;\n  naming contract still a proposal, #12862).\n\n**One worktree per THREAD, not per agent (WG-FACTS-02).** The per-chat worktree\nbelongs to the Codex task. A subagent spawned with `spawn_agent` inherits this\nsame directory: same path, same branch, same HEAD, and its writes appear in this\nworktree's `git status`. It never gets a worktree of its own, so spawning agents\nis not a way to parallelize branch work — that needs one task per lane, each with\nits own worktree. See [Dispatch surfaces](..\u002Fpabcd\u002Freferences\u002Fdispatch-surfaces.md).\n\n## 3. Never-list (WG-NEVER-01)\n\n- Never `git worktree remove` or `rm -rf` the session's OWN worktree, slot dir, or\n  any ancestor of cwd — not even to \"start clean\". codexclaw's PreToolUse guard\n  (WORKTREE-GUARD-03) denies it; do not try to bypass the deny.\n- Never copy the work elsewhere and delete the original — that loses the app\n  binding and any uncommitted state you missed.\n- Never delete another slot under `~\u002F.codex\u002Fworktrees` without the user explicitly\n  naming that path — another live session may be bound to it.\n\n## 4. Safe procedures (WG-PROC-*)\n\n**Adopt-and-continue (DEFAULT for \"이름 붙이고 새로 시작\"):**\n1. Stay in the worktree. `git switch -c \u003Cname>` (detached HEAD) or\n   `git branch -m \u003Cname>`.\n2. Commit the work in progress (archive auto-deletes managed worktrees).\n3. Tell the user the thread title can be renamed in the app sidebar.\n\n**Move\u002Frepair — OTHER, inactive worktrees only (WG-MOVE-01):**\n`git worktree move \u003Cold> \u003Cnew>` (refuses the main worktree, locked worktrees, and\nworktrees containing submodules). After a manual directory move:\n`git worktree repair \u003Cnew-path>`. Feature-detect with `git worktree move -h` \u002F\n`git worktree repair -h`; do not version-gate. Moving the ACTIVE worktree kills the\nsession's cwd (next command: ENOENT) and app rebinding is undocumented — don't.\n\n**Cleanup of other worktrees:** verify clean (`git status`), merged\n(`git merge-base --is-ancestor`), no open PR head, not any session's cwd; then\n`git worktree remove \u003Cpath>` — never `rm -rf`. A directory deleted without\n`git worktree remove` leaves admin state under `.git\u002Fworktrees\u002F`; recover with\n`git worktree prune` (dry-run first).\nAutomated or bulk cleanup of other worktrees follows `cxc-dev-devops`\n`references\u002Flocal-gc.md` (DEVOPS-LOCAL-GC-01); the never-list above still wins.\n\n## 5. Defense-in-depth limits (WG-LIMIT-01)\n\n- The PreToolUse guard matches literal paths. Pure variable\u002Fglob indirection that\n  never mentions the slot path is out of scope — treat the deny as a seatbelt, not\n  a sandbox.\n- Detection covers the default root + `CODEX_HOME` + `CODEXCLAW_WORKTREE_ROOTS`\n  (path.delimiter-separated). A custom app-side root needs that env.\n\n## 6. Hook interplay (WG-HOOK-01)\n\n- WORKTREE-GUARD-01 (SessionStart): identity block when cwd is managed.\n- WORKTREE-GUARD-02 (UserPromptSubmit): this guidance, once per session, on\n  rename intent.\n- WORKTREE-GUARD-03 (PreToolUse, `^Bash$`): deterministic deny of self-worktree\n  deletion — applies to subagent turns too. The deny is intentional; follow §4\n  instead of routing around it.\n- WORKTREE-GUARD-04 (same PreToolUse hook): when the session bound a source\n  worktree with `cxc session source`, git writes (commit, cherry-pick, merge,\n  rebase, reset, checkout\u002Fswitch, am, revert, push, pull, branch -D\u002F-f\u002F-m) whose\n  repository is another worktree of the same repo are denied. Hooks receive only\n  the command text, never exec_command's `workdir`, so write\n  `git -C \u003Csource> ...` or `cd \u003Csource> && ...`. `--abort`\u002F`--quit` stay allowed.\n- SHELL-SUBST-01 (same hook): a backtick or `$(...)` that the shell will execute\n  and that runs a git write or `gh pr merge\u002Fclose`, `gh issue close` is denied\n  with or without a binding; other backticks inside double quotes get an\n  advisory. Pass generated text through apply_patch, files, or `\u003C\u003C'EOF'`.\n\n## 7. AGENTS.md snippet (WG-AGENTS-01)\n\nFor repos where codexclaw hooks are not installed:\n\n```md\n## Worktree safety\nThis session may run inside a Codex-app-managed worktree (~\u002F.codex\u002Fworktrees\u002F\u003Cslot>\u002F\u003Crepo>).\nNever delete or recreate that directory to \"rename\" it. Adopt in place:\n`git switch -c \u003Cname>` \u002F `git branch -m \u003Cname>`, commit early, and ask the user to\nrename the thread in the app. `git worktree move` is for other, inactive worktrees only.\n```\n",{"name":5,"metadata":24,"description":7},{"short-description":25},"Managed-worktree identity safety: never delete\u002Frecreate; adopt in place.","main","e413b144ffa0617093d158a0dde101601bcadee9","plugins\u002Fcodexclaw\u002Fskills\u002Fworktree-guardian",11,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw","https:\u002F\u002Flidge-jun.github.io\u002Fcodexclaw\u002F","https:\u002F\u002Fgithub.com\u002Flidge-jun","https:\u002F\u002Ftrygoat.ai","Building GOAT (trygoat.ai): run coding agents on any model, any machine. Creator of OpenCodex (18K★). Korea University.","2026-11-09 12:57:23",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lidge-jun\u002Fcodexclaw --skill cxc-worktree-guardian",{"tool":42,"command":43},"bunx","bunx skills add lidge-jun\u002Fcodexclaw --skill cxc-worktree-guardian",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lidge-jun\u002Fcodexclaw --skill cxc-worktree-guardian","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fworktree-guardian\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"agents\u002Fopenai.yaml","REFERENCE","参考文档",169,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fworktree-guardian\u002Fagents\u002Fopenai.yaml",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M780318BPTTTEVJ9XJMH52N9","cxc-skill-hub","Deprecated alias. Use cxc-dev.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fskill-hub\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7802WKVM3GWAS4P92YZBMKF","cxc-search","Use for web\u002Fcurrent lookups. Triggers: search, look up, latest, news, prices, docs, status, X\u002FTwitter, deep research, 검색, 검색해, 찾아봐, 찾아줘, 알아봐, 웹검색, 딥리서치, 심층 조사.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fsearch\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7802RE0M30FANF56N0SZRY3","cxc-repo-map","Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Frepo-map\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7802MXVMFKWM5742TNYW6WJ","cxc-remote","Use for Telegram\u002FDiscord bridge setup. Triggers: remote, messenger, pairing, tokens, webhooks, 텔레그램 연결, 디스코드 연결, 메신저 연결, 봇 연결, 원격, 페어링.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fremote\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7802HB0C7HMRE4JSP9KXCR7","cxc-recall","Use for past-session context recovery. Triggers: recall, last time, previous session, chat search, memory search, 그때, 지난번, 저번 세션, 예전에 했던, 기억나?, 리콜, 지난 세션, 이전 작업, 뭐였지, 어떻게 했었지.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Frecall\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7802E0B1G5H3N5N4G48FA32","cxc-qa","Use for manual web, TUI, CLI, API and desktop QA. Triggers: smoke test, visual QA, screenshot check, CJK clipping, 수동 QA, 실제로 되는지 확인, 동작 확인, 직접 돌려봐.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fqa\u002FSKILL.md",[],[]]