Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/agents/os-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pin 要防的失效 —— 而不是回退到本行。 -->

## 六条基本规则

1. **Worktree-first。** 任何编辑之
前:`git worktree add ../<repo>-issue-<n> -b claude/issue-<n>-<slug> origin/main`,然后 `cd` 进去
1. **Worktree-first。** 任何编辑之前:`git fetch origin main && git worktree add --no-track
../<repo>-issue-<n> -b claude/issue-<n>-<slug> origin/main`,然后 `cd` 进去
`pnpm install`,并在动笔前记下基点 `BASE=$(git rev-parse HEAD)`(「标准条款」家族规则的锚)。永
不编辑共享检出(PreToolUse 钩子会拦);修复横跨姊妹仓时 **一仓一 worktree**。**建好分支后的
第一个动作:先把空分支推上去**(任何编辑之前 `git push -u origin <branch>`)——它既是认领评
Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/checklist-author/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ metadata:

## 编排契约

1. **Worktree 先行**(PD#11):`git worktree add ../objectstack-<task> -b <branch> main`。
全部编辑都在那里做。派发任何 agent 之前先读清单现状。
1. **Worktree 先行**(PD#11):`git fetch origin main && git worktree add --no-track ../objectstack-<task>
-b <branch> origin/main`。全部编辑都在那里做。派发任何 agent 之前先读清单现状。
2. **五个只读 gap hunter 并行** —— 每个 SWEEP.md 角度一个(console UI / spec 枚举 /
路由与运行时 / 内置应用 / 文档声称)。每个拿到:当前 item-id 清单、已知的 waiver
与 blocked 项(不重复上报),以及输出契约 `surface | evidence path | coverage
Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/dogfood-verification/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ dev 工作树、dev-server 端口、preview 浏览器全是**共享的**:并行

- [ ] 只捕获你自己的文件:`git diff -- <explicit paths…> > /tmp/fix.patch`
(用**显式路径**,不用多行 shell 变量 —— 后者会静默产出空 patch)。
- [ ] `git worktree add -b <branch> /tmp/pr origin/main` → `git -C /tmp/pr apply /tmp/fix.patch`
→ 确认 `git -C /tmp/pr status` *只*列你的文件。
- [ ] `git fetch origin main && git worktree add --no-track -b <branch> /tmp/pr origin/main`
`git -C /tmp/pr apply /tmp/fix.patch` → 确认 `git -C /tmp/pr status` *只*列你的文件。
- [ ] 加 **changeset**(`.changeset/<slug>.md`,`"@objectstack/<pkg>": patch`)——
发布包的改动过不了 CI 的「Check Changeset」门。
- [ ] 提交(信息末尾带 `Co-Authored-By:` trailer)、推送、`gh pr create`,然后
Expand Down
Loading