Worktree safety
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.From its SKILL.md
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.
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.