Worktree safety
Meta workspace for Codex configuration, shared skills, and maintenance scripts.
npx -y skills add yangshu2087/Codex --skill worktree-safetyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Safely operate in repositories that use Git worktrees or live inside a meta-workspace with multiple repos. Use when a task involves git roots, linked worktrees, pointer directories, or avoiding the wrong repository context.
SKILL.md
1.4 KB, 277 tokens by cl100k_base, as published. Nobody here has run it
Worktree Safety
Use this skill when the user task touches Git worktrees, multiple adjacent repositories, or a meta-workspace that is not itself a repo.
Workflow
- Identify the real repository before running Git commands:
git rev-parse --show-toplevelgit worktree listwhen relevant
- Distinguish normal repos from pointer directories and wrapper workspaces.
- Do not run root-level Git commands from
/Users/yangshu/Codex; it is a meta-workspace, not a repository. - When a linked worktree exists, assume branch and checkout operations can affect another active checkout.
- If the task is only about Codex config or AGENTS files, edit the intended repo directly and avoid unrelated branch manipulation.
- Verify with repository-local Git commands after edits.
Local context
/Users/yangshu/Codex/codex-worktree-baseis a real repo that hosts a persistent worktree./Users/yangshu/Codex/projects/codex-mainis a normal local repo./Users/yangshu/Codex/projects/codex-headand/Users/yangshu/Codex/codex-worktree-headare worktree-related locations and should not be treated like independent repos without checking first.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most agent orchestration skills give in 277 tokens
Counted across 742 of the 995 authors here whose files we hold, read 2026-08-07
- Reference existing artifacts by path or URLin 53 of 742, across 25 files
- Run the full test suite after integrating changesin 51 of 742, across 19 files
- Dispatch one agent per independent problem domainin 50 of 742, across 17 files
- Verify fixes do not conflictin 45 of 742, across 13 files
- Include a suggested skills section in the documentin 45 of 742, across 17 files
- Redact sensitive informationin 41 of 742, across 11 files
- Save to the temporary directory of the operating systemin 39 of 742, across 10 files
- Tailor the document to user-provided focus argumentsin 39 of 742, across 9 files
- Spot check agent changes for systematic errorsin 34 of 742, across 7 files
- Write a handoff document summarising the current conversationin 31 of 742, across 6 files
- Assign each agent a specific scopein 23 of 742, across 8 files
- Provide specific scope and clear goalin 23 of 742, across 5 files
Said here and by no other author read
- identify the real repository before running git commands
- distinguish normal repos from pointer directories
- assume worktree operations affect another active checkout
- edit the intended repo directly
- verify changes with repository-local git commands
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.