In a git worktree session, a Write/Edit whose absolute path points at the
MAIN-REPO ROOT (the parent checkout) silently creates the file i…
“电商与销售”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
In a git worktree session, a Write/Edit whose absolute path points at the
MAIN-REPO ROOT (the parent checkout) silently creates the file in that parent
checkout's working tree — on whatever branch it has checked out — NOT in your
worktree on your feature branch. The file then doesn't appear in `git status`
on your branch and `ls`/Read inside the worktree can't find it. Use when:
(1) the environment's "Primary working directory" is a worktree at
`<repo>/.claude/worktrees/<name>/`, (2) you're about to Write or Edit a file by
ABSOLUTE path (handoff doc, generated artifact, new source file), (3) you
habitually type the repo's canonical root path (`/.../<repo>/docs/...`) instead
of the worktree path (`/.../<repo>/.claude/worktrees/<name>/docs/...`),
(4) a later step reports "file does not exist" / a commit is missing files you
"just wrote" / `git status` is unexpectedly clean. Trap: the main repo root is
a real, writable checkout; writing there succeeds silently and pollutes the
parent's working tree (often on a stale sibling branch). Mitigation: in a
worktree, pass RELATIVE paths to Write/Edit (cwd is already the worktree), or
ensure every absolute path carries the `.claude/worktrees/<name>/` segment;
after writing, `ls` the file back via a relative path to confirm it's in the
worktree. See also: worktree-outer-ls-mistaken-for-main-state (the read-side
sibling), main-bash-cwd-persists-nested-worktree, subagent-bash-cd-wrong-worktree.
Skill 是加载到智能体(如 Claude Code 或 Codex)里的一组指令。就像在手机上安装应用:装一次,智能体就知道怎么做这件事。
它有什么用?
用于“电商与销售”相关工作。发布者的介绍:In a git worktree session, a Write/Edit whose absolute path points at the MAIN-REPO ROOT (the parent checkout) silently creates the file in that parent check…
示例请求
“更新商店里的商品描述。”
智能体
已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
值得信任吗?
5 个 GitHub 星标 · MIT。安装前请先查看来源。
使用情况
最近 30 天,网站和智能体上。
0个书架收藏
0次浏览
0次命令复制
0次网站下载
0次通过应用安装
0次由智能体自行安装
0位活跃用户
实测评分需要 ANG 应用中至少 20 位用户和 50 个任务;目前有 0 位用户、0 个任务。在此之前,强度分根据条目数据估算。