[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75B4YS7ECFCY6GD30QW7TQD":3,"skill-same:01M75B4YS7ECFCY6GD30QW7TQD":49},{"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":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M75B4YS7ECFCY6GD30QW7TQD","using-git-worktrees",null,"Reuses or creates a git worktree when a development task that the human user's instructions authorize must run separately from the current checkout.","AidALL\u002Fghost-alice","AidALL","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130629202?v=4","01M75B3KHHA5AD250W0XNC7DGX","AidALL Inc.","01M75B3KJAYXRRNBW5F9B8C2RW",15,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Fusing-git-worktrees\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: using-git-worktrees\ndescription: Reuses or creates a git worktree when a development task that the human user's instructions authorize must run separately from the current checkout.\ncompatibility:\n  - \"Python 3.11+ standard library\"\n---\n\n# Using Git Worktrees\n\nThe response model selects an isolated checkout when the development task that the human user's instructions authorize requires isolation. Reuse a suitable attached or existing checkout before creating another. Prefer the host's managed-worktree API; use the shell procedure only when that API is unavailable or unsuitable.\n\n## Select the checkout\n\nInspect the repository identity, current branch and existing worktrees. Check whether an existing checkout satisfies the task's branch, file ownership and isolation requirements. Preserve its uncommitted work.\n\nFor a new shell-managed worktree, use a location that the project instructions or the human user name explicitly. Otherwise prefer an existing `.worktrees\u002F` directory, then `worktrees\u002F`. If neither exists and no project preference settles the choice, ask the human user whether to use a project-local directory or `~\u002F.config\u002Fcoding-convention\u002Fworktrees\u002F\u003Cproject-name>\u002F`.\n\nBefore creating inside the repository, check the exact selected directory with `git check-ignore`. Do not accept a result for a different directory. If it is not ignored, add an ignore rule only within what the human user's instructions already authorize and verify it, or use an external directory that the human user authorized. An external directory needs no repository ignore rule.\n\n## Create and prepare\n\nResolve the absolute target path, repository and starting ref that the human user agreed to before issuing a command. For a new branch, use the host\u002Fproject naming convention. For continuing work, use the existing ref that the human user requested rather than silently starting from a default branch.\n\nThe shell operation is `git worktree add \u003Cabsolute-target> -b \u003Cnew-branch> \u003Cstarting-ref>` for a new branch that the human user authorized. Existing branches require the corresponding existing-branch form. Replace the arguments from inspected state; do not execute the angle-bracket notation.\n\nFollow the project's declared package manager and setup instructions. Do not run every example package manager or install dependencies merely because a file exists. A task prohibition on network, installation or setup overrides the default preparation.\n\nApply verification-before-completion to the selected checkout's relevant baseline. Distinguish a pre-existing failure from the proposed change and correct it only within the task that the human user's instructions authorize.\n\n## Result and cleanup\n\nReport the absolute checkout, branch\u002Fref and actual baseline result or remaining gap. Finish branch integration and cleanup through finishing-a-development-branch.\n\nFor managed worktrees, use the host's attach\u002Farchive lifecycle. Never delete an active task's checkout or discard uncommitted work. A successful PR does not by itself authorize cleanup.\n\n## Failure modes\n\nDo not create duplicate isolation merely because the skill was invoked. Do not guess a branch or target path, use an ignore result for the wrong directory, attribute an old failure to new work, or claim host adoption from creating a checkout.\n","# Using Git Worktrees\n\nThe response model selects an isolated checkout when the development task that the human user's instructions authorize requires isolation. Reuse a suitable attached or existing checkout before creating another. Prefer the host's managed-worktree API; use the shell procedure only when that API is unavailable or unsuitable.\n\n## Select the checkout\n\nInspect the repository identity, current branch and existing worktrees. Check whether an existing checkout satisfies the task's branch, file ownership and isolation requirements. Preserve its uncommitted work.\n\nFor a new shell-managed worktree, use a location that the project instructions or the human user name explicitly. Otherwise prefer an existing `.worktrees\u002F` directory, then `worktrees\u002F`. If neither exists and no project preference settles the choice, ask the human user whether to use a project-local directory or `~\u002F.config\u002Fcoding-convention\u002Fworktrees\u002F\u003Cproject-name>\u002F`.\n\nBefore creating inside the repository, check the exact selected directory with `git check-ignore`. Do not accept a result for a different directory. If it is not ignored, add an ignore rule only within what the human user's instructions already authorize and verify it, or use an external directory that the human user authorized. An external directory needs no repository ignore rule.\n\n## Create and prepare\n\nResolve the absolute target path, repository and starting ref that the human user agreed to before issuing a command. For a new branch, use the host\u002Fproject naming convention. For continuing work, use the existing ref that the human user requested rather than silently starting from a default branch.\n\nThe shell operation is `git worktree add \u003Cabsolute-target> -b \u003Cnew-branch> \u003Cstarting-ref>` for a new branch that the human user authorized. Existing branches require the corresponding existing-branch form. Replace the arguments from inspected state; do not execute the angle-bracket notation.\n\nFollow the project's declared package manager and setup instructions. Do not run every example package manager or install dependencies merely because a file exists. A task prohibition on network, installation or setup overrides the default preparation.\n\nApply verification-before-completion to the selected checkout's relevant baseline. Distinguish a pre-existing failure from the proposed change and correct it only within the task that the human user's instructions authorize.\n\n## Result and cleanup\n\nReport the absolute checkout, branch\u002Fref and actual baseline result or remaining gap. Finish branch integration and cleanup through finishing-a-development-branch.\n\nFor managed worktrees, use the host's attach\u002Farchive lifecycle. Never delete an active task's checkout or discard uncommitted work. A successful PR does not by itself authorize cleanup.\n\n## Failure modes\n\nDo not create duplicate isolation merely because the skill was invoked. Do not guess a branch or target path, use an ignore result for the wrong directory, attribute an old failure to new work, or claim host adoption from creating a checkout.\n",{"name":5,"description":7,"compatibility":24},[25],"Python 3.11+ standard library","main","d8f3b95a64ce7042d26b5b14282d54821538b79e","coding-convention\u002Fusing-git-worktrees",4,"https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice","https:\u002F\u002Faidall.github.io\u002Fghost-alice\u002F","https:\u002F\u002Fgithub.com\u002FAidALL","AI for everyone, AidALL","2026-11-15 02:33:23",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add AidALL\u002Fghost-alice --skill using-git-worktrees",{"tool":41,"command":42},"bunx","bunx skills add AidALL\u002Fghost-alice --skill using-git-worktrees",{"tool":44,"command":45},"pnpm","pnpm dlx skills add AidALL\u002Fghost-alice --skill using-git-worktrees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Fusing-git-worktrees\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M75B5QP9T3Z24VG1PZ8BFRXS","skill-evolution","Recommends skill changes from recorded tool-call patterns and conduct corrections asserted by the human user or observed by the response model, when the human user asks for such recommendations or their pending backlog, or authorizes that analysis.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fskill-evolution\u002FSKILL.md",[],[],{"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},"01M75B5M1QFQRR9AW2PSV9GMNX","session-intent-analyzer","Records the response model's new or changed interpretation of the input the response model is answering as its `interpreted-as` record before the first tool call of work, and reads that record when it can change the objective, constraints, work choice or whether earlier work continues.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fsession-intent-analyzer\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},"01M75B5FW8XJ7WGK3R683PG1RW","necessity-gate","Judges whether proposed work is justified, needs a narrower scope or is unjustified, when the response model proposes new work or the human user asks whether to do it.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fnecessity-gate\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},"01M75B5CKFWYKXMAN9SWPDGT0S","merge-companion","Reviews the installer's backups of external changes to installed skills and merges each into the new skill version, discards or defers it as the human user chooses, before a task changes or reinstalls an installed skill, or when the human user asks for that review.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fmerge-companion\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},"01M75B59BWNYVAK4W2V577W2TA","compact-handoff","Writes a handoff of the task's objective, scope, evidence and next action when a long conversation, compaction or handover to another session or agent could lose them, and resumes the task from it afterwards.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcompact-handoff\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},"01M75B57FN00BYY5Y50DZ980Q4","writing-skills","Writes a new skill or changes an existing one in its folder (SKILL.md, references and scripts) and tests it.","https:\u002F\u002Fgithub.com\u002FAidALL\u002Fghost-alice\u002Fblob\u002Fmain\u002Fcoding-convention\u002Fwriting-skills\u002FSKILL.md",[],[]]