Home / ethanyoq / skill-hub · archives/user-installed-skills/using-git-worktrees/c9ad391c76f47255/using-git-worktrees/SKILL.md · GitHub

using-git-worktrees skillA

using-git-worktrees is agent-read markdown (skill) from ethanyoq/skill-hub: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Using Git Worktrees

## Overview

Ensure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available.

**Core principle:** Detect existing isolation first. Then use native tools. Then fall back to git. Never fight the harness.

**Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."

## Step 0: Detect Existing Isolation

**Before creating anything, check if you are already in an isolated workspace.**

```bash
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
BRANCH=$(git branch --show-current)
```

**Submodule guard:** `GIT_DIR != GIT_COMMON` is also true inside git submodules. Before concluding "already in a worktree," verify you are not in a submodule:

```bash
# If this returns a path, you're in a submodule, not a worktree — treat as normal repo
git rev-parse --show-superproject-working-tree 2>/dev/null
```
…

Read the whole file at its exact version.

How to install

Latest version
mdr add ethanyoq/skill-hub/using-git-worktrees@git:20260919.e8b19bf
Exact content
mdr add ethanyoq/skill-hub/using-git-worktrees@sha256:085a45ee3de432bd

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ptmurdpvvzsqtnav.svg)](https://markdownregistry.com/a/art_ptmurdpvvzsqtnav)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260919.e8b19bf latest2026-09-19 e8b19bf 7,983 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7983 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ethanyoq/skill-hub · 10 stars · license MIT · pushed 2026-09-19 · branch mine

API

GET https://markdownregistry.com/api/v1/artifacts/art_ptmurdpvvzsqtnav
GET https://markdownregistry.com/api/v1/resolve?ref=ethanyoq/skill-hub/using-git-worktrees
GET https://markdownregistry.com/api/v1/blob/085a45ee3de432bdb2768011591d9a882cb6c759e2317f379226451c5618fe8e

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from ethanyoq/skill-hub

AGENTS.md agents
ethanyoq/skill-hub · AGENTS.md
git:20260730.c96ba6e · audit A · 10 stars
aact-bulk-trials skill
ethanyoq/skill-hub · archives/user-installed-skills/aact-bulk-trials/e07736f27453c7b6/aact-bulk-trials/SKILL.md · 使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据仓库进行批量、历史、聚合性临床试验数据挖掘。Use this skill when the user…
git:20260912.c74de71 · audit A · 10 stars
aact-bulk-trials skill
ethanyoq/skill-hub · archives/user-installed-skills/aact-bulk-trials/e171d39ba5bce7c9/aact-bulk-trials/SKILL.md · 使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据库进行大批量临床试验历史分析与数据挖掘。触发场景包括:AACT 查询、临床试验批量分析、PostgreSQL…
git:20260912.c74de71 · audit A · 10 stars
adaptive-quality-gate skill
ethanyoq/skill-hub · archives/user-installed-skills/adaptive-quality-gate/b5189ce6c1bdba9b/adaptive-quality-gate/SKILL.md · Use when work produces a deliverable, factual claim, dataset, code change, decision, publication, deployment…
git:20260912.c74de71 · audit A · 10 stars
add-changeset skill
ethanyoq/skill-hub · archives/user-installed-skills/add-changeset/eca9273317fbdf81/add-changeset/SKILL.md · Create a changeset file in .changeset/ that describes a user-facing change for the release notes
git:20260912.84c6c93 · audit A · 10 stars
add-competitor skill
ethanyoq/skill-hub · archives/user-installed-skills/add-competitor/72939df8cfcf87bc/add-competitor/SKILL.md · Add a new competitor to the AI Visibility Tool Directory — researches the tool, generates data, takes a screenshot, and…
git:20260912.84c6c93 · audit A · 10 stars
add-lang skill
ethanyoq/skill-hub · archives/user-installed-skills/add-lang/00700e7d79525f4e/add-lang/SKILL.md · Add tree-sitter language support to codegraph end-to-end — wire the grammar + extractor, write tests, then benchmark…
git:20260912.84c6c93 · audit A · 10 stars
aesthetic skill
ethanyoq/skill-hub · archives/user-installed-skills/aesthetic/a4c80565d9241341/aesthetic/SKILL.md · Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing…
git:20260912.84c6c93 · audit A · 10 stars
agent-eval skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-eval/61ca5bbbd5c736b7/agent-eval/SKILL.md · Benchmark CodeGraph retrieval quality on a real codebase by comparing agent behavior with vs without CodeGraph. Use…
git:20260912.84c6c93 · audit A · 10 stars
agent-reach skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-reach/330e35da8cf10b5e/agent-reach/SKILL.md · MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X…
git:20260912.84c6c93 · audit A · 10 stars
agent-reach skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-reach/81c9cf0fc08ce044/agent-reach/SKILL.md · MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X…
git:20260912.84c6c93 · audit A · 10 stars
aliyun-swas-manage skill
ethanyoq/skill-hub · archives/user-installed-skills/aliyun-swas-manage/1f89c6ea527741b3/aliyun-swas-manage/SKILL.md · Use when managing Alibaba Cloud Simple Application Server (SWAS OpenAPI 2020-06-01) resources end-to-end, including…
v1.0.0 · audit A · 10 stars

Every file in ethanyoq/skill-hub

Other files named using-git-worktrees

using-git-worktrees skill
obra/superpowers · skills/using-git-worktrees/SKILL.md · Use when starting feature work that needs isolation from current workspace or before executing implementation plans -…
git:20260724.bc86802 · audit A · 291,204 stars
using-git-worktrees skill
jnmetacode/superpowers-zh · skills/using-git-worktrees/SKILL.md · 当需要开始与当前工作区隔离的功能开发,或在执行实现计划之前使用——通过原生工具或 git worktree 回退机制确保隔离工作区存在
v1.0.0 · audit A · 8,203 stars
using-git-worktrees skill
a5c-ai/babysitter · library/methodologies/superpowers/skills/using-git-worktrees/SKILL.md · Use when starting feature work that needs isolation from current workspace or before executing implementation plans.
git:20260601.da7723a · audit A · 1,809 stars
using-git-worktrees skill
ganyuanran/aegis · skills/using-git-worktrees/SKILL.md · Use when a coding task needs a concurrent checkout, unrelated dirty state blocks safe branch switching, or the user or…
git:20260827.661bec4 · audit A · 1,280 stars
using-git-worktrees skill
coco-research/coco · skills/using-git-worktrees/SKILL.md · Use when starting feature work that needs isolation from current workspace or before executing implementation plans -…
git:20260802.1479e32 · audit A · 478 stars
using-git-worktrees skill
jamditis/claude-skills-journalism · superjawn/skills/using-git-worktrees/SKILL.md · Creates isolated git worktrees with smart directory selection and safety checks. Use when starting isolated feature…
git:20260818.3e0e3a8 · audit A · 401 stars
using-git-worktrees skill
ed3dai/ed3d-plugins · plugins/ed3d-plan-and-execute/skills/using-git-worktrees/SKILL.md · Use when starting feature work that needs isolation from current workspace or before executing implementation plans -…
git:20260204.611bfd1 · audit A · 249 stars
using-git-worktrees skill
arbiterforge/codearbiter · core/surface/skills/using-git-worktrees/SKILL.md · OPTIONAL per-task isolation for autonomous parallel work. Routed to only on explicit opt-in by…
git:20260917.8f29537 · audit A · 145 stars

Browse by kind, by grade A, or by owner.