agentsclimarketplace

Worktree safety

Skill yangshu2087/Codex/.agents/skills/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

Install
npx -y skills add yangshu2087/Codex --skill worktree-safety

Assembled 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

  1. Identify the real repository before running Git commands:
    • git rev-parse --show-toplevel
    • git worktree list when relevant
  2. Distinguish normal repos from pointer directories and wrapper workspaces.
  3. Do not run root-level Git commands from /Users/yangshu/Codex; it is a meta-workspace, not a repository.
  4. When a linked worktree exists, assume branch and checkout operations can affect another active checkout.
  5. If the task is only about Codex config or AGENTS files, edit the intended repo directly and avoid unrelated branch manipulation.
  6. Verify with repository-local Git commands after edits.

Local context

  • /Users/yangshu/Codex/codex-worktree-base is a real repo that hosts a persistent worktree.
  • /Users/yangshu/Codex/projects/codex-main is a normal local repo.
  • /Users/yangshu/Codex/projects/codex-head and /Users/yangshu/Codex/codex-worktree-head are 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.