using-git-worktrees
Create Isolated Git Worktrees
Developers need isolated branches without disturbing their current workspace. This skill guides Claude, Codex, and Claude Code through safe worktree setup and baseline checks.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "using-git-worktrees" from https://skillstore.io/skills/zhanlincui-using-git-worktrees.md and its manifest at https://skillstore.io/api/skills/zhanlincui-using-git-worktrees/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "using-git-worktrees". Create a worktree for an authentication feature.
Expected outcome:
The response identifies the selected worktree directory, confirms ignore verification, reports the new branch, and summarizes baseline test status.
Using "using-git-worktrees". No worktree directory exists in the repository.
Expected outcome:
The response asks the user to choose between a project-local directory and the documented global location.
Using "using-git-worktrees". Baseline tests fail after setup.
Expected outcome:
The response reports the failing test summary and asks whether to investigate or proceed with known failures.
Security Audit
Medium RiskMost static findings are false positives caused by Markdown fences, inline command examples, stderr redirects, and documented worktree paths. The main residual risk is that the skill can run project setup and test commands automatically, which is unsafe in untrusted repositories without confirmation.
Confirmed security concerns (2)
Risk Factors
โ๏ธ External commands (26)
๐ Filesystem access (13)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/zhanlincui-using-git-worktrees/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/zhanlincui-using-git-worktrees?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/zhanlincui-using-git-worktrees?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/zhanlincui-using-git-worktrees/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/zhanlincui-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>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
ZhanlinCui. (2026). using-git-worktrees security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/zhanlincui-using-git-worktrees/audits/5BibTeX citation
@techreport{zhanlincui-zhanlincui-using-git-worktrees-2026,
author = {ZhanlinCui},
title = {using-git-worktrees security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/zhanlincui-using-git-worktrees/audits/5},
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 5)"
version: "unspecified"
type: report
authors:
- name: "ZhanlinCui"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/zhanlincui-using-git-worktrees/audits/5"
identifiers:
- type: other
value: "skillstore:zhanlincui-using-git-worktrees:audit:5"
description: "Skillstore immutable audit report identifier"
Compare variants
9 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
zhanlincui-using-git-worktrees
2026-09-09
doyajin174-using-git-worktrees
2026-09-09
codingcossack-using-git-worktrees
2026-09-09
dyai2025-using-git-worktrees
2026-09-09
obra-using-git-worktrees
2026-09-09
cygnusfear-using-git-worktrees
2026-09-09
sickn33-using-git-worktrees
2026-09-09
cycleaddict-using-git-worktrees
2026-09-09
davila7-using-git-worktrees
2026-09-09
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Feature Branch Isolation
Create a separate workspace for implementation while keeping the current checkout untouched.
Parallel Review Work
Open a bug fix or review branch beside active work without switching branches.
Agent Workflow Preparation
Prepare a clean worktree before an implementation plan runs through Claude, Codex, or Claude Code.
Try These Prompts
Create an isolated Git worktree for this feature. Follow the project directory preference, verify ignore rules, and report the final path.
Set up a worktree for feature/<name>. Check existing worktree directories and CLAUDE.md before asking me for a location.
Create a worktree for this task, run the detected setup steps, execute baseline tests, and stop if tests fail.
Create separate worktrees for implementation and release verification. Use project conventions, avoid tracked worktree directories, and summarize each workspace status.
Best Practices
- Verify ignore rules before creating project-local worktrees.
- Ask before running setup commands in repositories you do not fully trust.
- Record the final worktree path and baseline test result.
Avoid
- Creating worktrees inside tracked directories.
- Skipping CLAUDE.md or existing project conventions.
- Continuing after failing baseline tests without user approval.
Frequently Asked Questions
What problem does this skill solve?
Does it require Claude?
Does it create branches?
Can it use a global directory?
Will it run project setup commands?
Does it clean up worktrees?
Developer Details
Author
ZhanlinCuiLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Repository
https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection/tree/main/using-git-worktreesRef
88a205c7f635a966e31156313b590d59007c5caa
Maintenance freshness
7/18/2026
Usage
28 downloads ยท 338 views
File structure
๐ SKILL.md