using-git-worktrees
创建隔离的 Git Worktree
功能开发可能会干扰活跃工作区,并掩盖基线故障。此技能会指导 Claude、Codex 和 Claude Code 完成更安全的 Git worktree 设置。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "using-git-worktrees" from https://skillstore.io/skills/sickn33-using-git-worktrees.md and its manifest at https://skillstore.io/api/skills/sickn33-using-git-worktrees/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“using-git-worktrees”。 Create a worktree for an authentication feature.
预期结果:
助手会选择项目 worktree 目录,验证忽略规则,创建分支工作区,运行设置,并报告就绪状态。
正在使用“using-git-worktrees”。 The baseline tests fail after worktree setup.
预期结果:
助手会总结失败的测试命令,报告基线不干净,并询问是调查还是继续。
正在使用“using-git-worktrees”。 No worktree directory convention exists.
预期结果:
助手会提供项目本地隐藏目录或全局配置目录,并等待用户选择。
安全审计
高风险Most static findings are false positives from Markdown code fences, literal shell examples, documented worktree paths, and /dev/null redirects. No prompt injection or secret access evidence was found. The main residual risks are automatic dependency setup and repository commits before explicit user review.
已确认安全问题 (2)
风险因素
⚙️ 外部命令 (26)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-using-git-worktrees/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-using-git-worktrees?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-using-git-worktrees?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-using-git-worktrees/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-using-git-worktrees.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). using-git-worktrees security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-using-git-worktrees/audits/4BibTeX 引用
@techreport{sickn33-sickn33-using-git-worktrees-2026,
author = {sickn33},
title = {using-git-worktrees security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-using-git-worktrees/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "using-git-worktrees security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-using-git-worktrees/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-using-git-worktrees:audit:4"
description: "Skillstore immutable audit report identifier"
比较变体
9 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
zhanlincui-using-git-worktrees
2026-09-09
codingcossack-using-git-worktrees
2026-09-09
cycleaddict-using-git-worktrees
2026-09-09
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
安全地开始功能开发
在修改代码前创建单独的 worktree,保留当前分支和工作目录。
准备并行实现任务
设置特定于分支的工作区,使多个计划可以推进,而不会发生分支切换冲突。
验证干净的基线
在新的 worktree 中运行设置和测试,然后再将故障归因于新的实现工作。
试试这些提示
Use the using-git-worktrees skill to create an isolated worktree for my next feature. Ask before making repository changes.
Use the using-git-worktrees skill and follow this repository's existing worktree directory convention. Verify the directory is ignored first.
Use the using-git-worktrees skill for a new branch, then run the project baseline tests and report any failures before implementation.
Use the using-git-worktrees skill to plan isolated worktrees for two independent features. Confirm setup commands before running package managers.
最佳实践
- 在创建工作区前,确认项目本地 worktree 目录已被忽略。
- 在不熟悉或不受信任的代码仓库中运行依赖安装前,先询问确认。
- 在开始实现工作前记录基线测试结果。
避免
- 在被跟踪的项目目录中创建 worktree。
- 在未检查信任度和用户意图的情况下运行包管理器安装。
- 在基线测试失败后未经用户批准继续。