[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVGD1C9AFT5CGEPH4ZEBBW":3,"skill-same:01M7EVGD1C9AFT5CGEPH4ZEBBW":70},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M7EVGD1C9AFT5CGEPH4ZEBBW","worktree",null,"Load to create, list, remove, push, or repair a git worktree.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fworktree-kendex\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: worktree\ndescription: \"Load to create, list, remove, push, or repair a git worktree.\"\nsummary: \"Git worktree management: create, list, remove isolated working copies with env and config symlinks.\"\nlicense: MIT\nuser-invocable: true\nargument-hint: \"create \u003CID> [--base \u003Cbranch>] [--from \u003Cref>] [--pr \u003CN>] [--reuse|--restack] [--replay] | restack continue|skip|abort \u003CID|path> | list | remove \u003CID|path>\"\nmetadata:\n  author: vanillagreen\n  source: kendex\n  repository: \"https:\u002F\u002Fgithub.com\u002Fvanillagreencom\u002Fkendex\"\n  bugs: \"https:\u002F\u002Fgithub.com\u002Fvanillagreencom\u002Fkendex\u002Fissues\"\n  version: \"1.0.0\"\ntags: [git]\n---\n\n\u003C!-- kendex:project-instructions:start -->\n## Project Instructions\n\n\u003C!-- kendex:shared-instructions:start -->\nProblems with a kendex-owned skill go through `kendex report`; check ownership in the file first.\n\u003C!-- kendex:shared-instructions:end -->\n\u003C!-- kendex:project-instructions:end -->\n\n# Worktree Management\n\n```bash\n.agents\u002Fskills\u002Fworktree\u002Fscripts\u002Fworktree \u003Ccommand> [options]\n```\n\nWorktrees live at `\u003Cparent-of-checkout>\u002F.worktrees\u002F\u003Ccheckout-name>\u002F{id}`, outside the repo root. Every command's contract is its `--help`: flags, exit codes, failure semantics, recovery. The top-level `worktree --help` carries the command index, path and issue-ID rules, configuration variables, and setup-path hardening.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `create` | Claim a new issue worktree, a new-work claim, not a discovery command: existing ownership exits 75, and owned work is inspected or monitored, never given a second implementer. Reuse and conflict recovery: `create --help` |\n| `restack` | Guardedly continue, skip, or abort a tool-created paused restack |\n| `list` | List all worktrees |\n| `remove` | Remove worktree, clean symlinks, prune branches |\n| `cleanup` | Remove worktrees whose branches are merged |\n| `path` \u002F `exists` | Print \u002F check the worktree path for an issue ID |\n| `check` | Pre-create git state check (JSON: uncommitted, unpushed) |\n| `push` | Push worktree branch with auto-rebase and pinned `--force-with-lease`; the `rebase-map:` contract for remapping pre-rebase SHAs is in `push --help` |\n| `fix-links` \u002F `repair-links` | Restore configured symlinks; `repair-links` is the git-hook-driven variant that never destroys untracked data |\n| `codex-setup` \u002F `codex-branch` \u002F `codex-cleanup`, `claude-setup` \u002F `claude-cleanup` | App-created worktree hooks. Installation wiring: [references\u002Fhooks.md](references\u002Fhooks.md) |\n\n### Policy-blocked rebase (cherry-pick replay fallback)\n\nWhen an execution policy rejects top-level `git rebase` porcelain, never retry the porcelain and never substitute a raw `--force` push. Add `--replay` to the guarded restack (`create --help`); the controls stay `restack continue|skip|abort \u003CID>`.\n\nA branch is rebased only through `worktree push`, `create --restack`, or `create --reuse`, never a bare `git rebase`; use this section's replay fallback for recovery.\n\n## Recovering a broken `.agents` entry\n\nRoute by shape, not by whether `test -L .agents` passes. Ask both indexes what sits under the path: `git -C \u003Cworktree> ls-files -- '.agents\u002F'`, and the same command against the main checkout. The trailing slash is the query; descendants decide the layout and the entry itself does not count. Neither index alone decides, and both answer while the path itself is broken:\n\n- **Either non-empty.** The repo commits its render, and `.agents` is a REAL DIRECTORY by design: the tracked files, plus one symlink per untracked child, except an untracked `.gitignore`, which is a copy of main's file. A child missing its link, or a real path where a link belongs, is `fix-links`. A modified or corrupt TRACKED file is `git checkout -- \u003Cpath>`, run in the checkout the file really lives in: the main checkout when the path sits under a configured symlink, the worktree otherwise.\n- **Both empty.** The entry is untracked-only and must itself be a symlink. `fix-links` is the repair; with no tracked content at the path, `git checkout -- .agents` changes nothing while the link stays broken.\n\nRun `.agents\u002Fskills\u002Fworktree\u002Fscripts\u002Fworktree fix-links \u003CID|PATH>` from the main checkout naming the target; a bare invocation there is refused. A non-zero exit names the paths it did not restore, and until they are restored that tree is not trustworthy for local verification. Routing table and link mechanics: `fix-links --help`.\n\nA consumer wanting this file locally gets a pointer, never a copy: `cat \"$(dirname \"$(git rev-parse --path-format=absolute --git-common-dir)\")\"\u002F.agents\u002Fskills\u002Fworktree\u002FSKILL.md` resolves the main checkout from any worktree, at any depth. A verbatim copy in a tracked `AGENTS.md` or `CLAUDE.md` is out of `kendex refresh`'s reach and goes stale silently.\n\n## Session guard (ownership leases)\n\n`scripts\u002Fworktree-session-guard` stops cleanup from destroying a claimed worktree, using a native Git worktree lock whose reason line carries the owner and a heartbeat. Who claims and when, what staleness measures, and the guard's limits: [references\u002Fsession-guard.md](references\u002Fsession-guard.md); commands, exit codes and `--repo` scope: `worktree-session-guard --help`.\n\n## JS Dependencies\n\n`worktree --help` § Dependencies owns install and linked-`node_modules` behavior.\n\n## System Dependencies\n\n`git`; authenticated `gh` for new-work PR ownership discovery and for proving a squash-merged branch merged in `cleanup` and `remove`; `flock` for repository-local per-issue claim serialization; Bash 3.2+ (macOS system bash is supported).\n\n## Configuration\n\nSet non-sensitive defaults in committed `kendex.settings.toml` under `[env]`; `.env.local` wins for secrets or personal overrides, and a `.env` file is never read. **Symlink only what git does not carry.** An entry does nothing when git carries every path under it, and a directory holding tracked content stays a real directory with its untracked children linked, bar an untracked `.gitignore`, which is copied (`fix-links --help`). Variable semantics and setup-path hardening: `worktree --help`.\n","\u003C!-- kendex:project-instructions:start -->\n## Project Instructions\n\n\u003C!-- kendex:shared-instructions:start -->\nProblems with a kendex-owned skill go through `kendex report`; check ownership in the file first.\n\u003C!-- kendex:shared-instructions:end -->\n\u003C!-- kendex:project-instructions:end -->\n\n# Worktree Management\n\n```bash\n.agents\u002Fskills\u002Fworktree\u002Fscripts\u002Fworktree \u003Ccommand> [options]\n```\n\nWorktrees live at `\u003Cparent-of-checkout>\u002F.worktrees\u002F\u003Ccheckout-name>\u002F{id}`, outside the repo root. Every command's contract is its `--help`: flags, exit codes, failure semantics, recovery. The top-level `worktree --help` carries the command index, path and issue-ID rules, configuration variables, and setup-path hardening.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `create` | Claim a new issue worktree, a new-work claim, not a discovery command: existing ownership exits 75, and owned work is inspected or monitored, never given a second implementer. Reuse and conflict recovery: `create --help` |\n| `restack` | Guardedly continue, skip, or abort a tool-created paused restack |\n| `list` | List all worktrees |\n| `remove` | Remove worktree, clean symlinks, prune branches |\n| `cleanup` | Remove worktrees whose branches are merged |\n| `path` \u002F `exists` | Print \u002F check the worktree path for an issue ID |\n| `check` | Pre-create git state check (JSON: uncommitted, unpushed) |\n| `push` | Push worktree branch with auto-rebase and pinned `--force-with-lease`; the `rebase-map:` contract for remapping pre-rebase SHAs is in `push --help` |\n| `fix-links` \u002F `repair-links` | Restore configured symlinks; `repair-links` is the git-hook-driven variant that never destroys untracked data |\n| `codex-setup` \u002F `codex-branch` \u002F `codex-cleanup`, `claude-setup` \u002F `claude-cleanup` | App-created worktree hooks. Installation wiring: [references\u002Fhooks.md](references\u002Fhooks.md) |\n\n### Policy-blocked rebase (cherry-pick replay fallback)\n\nWhen an execution policy rejects top-level `git rebase` porcelain, never retry the porcelain and never substitute a raw `--force` push. Add `--replay` to the guarded restack (`create --help`); the controls stay `restack continue|skip|abort \u003CID>`.\n\nA branch is rebased only through `worktree push`, `create --restack`, or `create --reuse`, never a bare `git rebase`; use this section's replay fallback for recovery.\n\n## Recovering a broken `.agents` entry\n\nRoute by shape, not by whether `test -L .agents` passes. Ask both indexes what sits under the path: `git -C \u003Cworktree> ls-files -- '.agents\u002F'`, and the same command against the main checkout. The trailing slash is the query; descendants decide the layout and the entry itself does not count. Neither index alone decides, and both answer while the path itself is broken:\n\n- **Either non-empty.** The repo commits its render, and `.agents` is a REAL DIRECTORY by design: the tracked files, plus one symlink per untracked child, except an untracked `.gitignore`, which is a copy of main's file. A child missing its link, or a real path where a link belongs, is `fix-links`. A modified or corrupt TRACKED file is `git checkout -- \u003Cpath>`, run in the checkout the file really lives in: the main checkout when the path sits under a configured symlink, the worktree otherwise.\n- **Both empty.** The entry is untracked-only and must itself be a symlink. `fix-links` is the repair; with no tracked content at the path, `git checkout -- .agents` changes nothing while the link stays broken.\n\nRun `.agents\u002Fskills\u002Fworktree\u002Fscripts\u002Fworktree fix-links \u003CID|PATH>` from the main checkout naming the target; a bare invocation there is refused. A non-zero exit names the paths it did not restore, and until they are restored that tree is not trustworthy for local verification. Routing table and link mechanics: `fix-links --help`.\n\nA consumer wanting this file locally gets a pointer, never a copy: `cat \"$(dirname \"$(git rev-parse --path-format=absolute --git-common-dir)\")\"\u002F.agents\u002Fskills\u002Fworktree\u002FSKILL.md` resolves the main checkout from any worktree, at any depth. A verbatim copy in a tracked `AGENTS.md` or `CLAUDE.md` is out of `kendex refresh`'s reach and goes stale silently.\n\n## Session guard (ownership leases)\n\n`scripts\u002Fworktree-session-guard` stops cleanup from destroying a claimed worktree, using a native Git worktree lock whose reason line carries the owner and a heartbeat. Who claims and when, what staleness measures, and the guard's limits: [references\u002Fsession-guard.md](references\u002Fsession-guard.md); commands, exit codes and `--repo` scope: `worktree-session-guard --help`.\n\n## JS Dependencies\n\n`worktree --help` § Dependencies owns install and linked-`node_modules` behavior.\n\n## System Dependencies\n\n`git`; authenticated `gh` for new-work PR ownership discovery and for proving a squash-merged branch merged in `cleanup` and `remove`; `flock` for repository-local per-issue claim serialization; Bash 3.2+ (macOS system bash is supported).\n\n## Configuration\n\nSet non-sensitive defaults in committed `kendex.settings.toml` under `[env]`; `.env.local` wins for secrets or personal overrides, and a `.env` file is never read. **Symlink only what git does not carry.** An entry does nothing when git carries every path under it, and a directory holding tracked content stays a real directory with its untracked children linked, bar an untracked `.gitignore`, which is copied (`fix-links --help`). Variable semantics and setup-path hardening: `worktree --help`.\n",{"name":5,"tags":24,"license":15,"summary":26,"metadata":27,"description":7,"argument-hint":33,"user-invocable":34},[25],"git","Git worktree management: create, list, remove isolated working copies with env and config symlinks.",{"bugs":28,"author":29,"source":30,"version":31,"repository":32},"https:\u002F\u002Fgithub.com\u002Fvanillagreencom\u002Fkendex\u002Fissues","vanillagreen","kendex","1.0.0","https:\u002F\u002Fgithub.com\u002Fvanillagreencom\u002Fkendex","create \u003CID> [--base \u003Cbranch>] [--from \u003Cref>] [--pr \u003CN>] [--reuse|--restack] [--replay] | restack continue|skip|abort \u003CID|path> | list | remove \u003CID|path>",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fworktree-kendex",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":34},[45,48,51],{"tool":46,"command":47},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill worktree",{"tool":49,"command":50},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill worktree",{"tool":52,"command":53},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill worktree","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fworktree-kendex\u002FSKILL.md",[56,62,66],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"README.md","REFERENCE","参考文档",2557,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fworktree-kendex\u002FREADME.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fhooks.md",1832,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fworktree-kendex\u002Freferences\u002Fhooks.md",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fsession-guard.md",2214,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fworktree-kendex\u002Freferences\u002Fsession-guard.md",[71,79,84,91,98,105],{"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":78},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":80,"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":81,"categories":82,"keywords":83,"publishedAt":78},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\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":78},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\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":78},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":78},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":78},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]