比AI Compare
MULTIPLE AI PERSPECTIVES

Compare AI answers before you decide

Different AI tools can approach the same question in very different ways. Browse real shared conversations, see where answers align or diverge, and open a share for the full context.

31
1 AI answers
32
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] ### Repeat comments become review rules [[2]] Let's say you get asked by a peer twice to make sure a new query contains a tenant check. If you use local review, you can write this down in `CLAUDE.md`, since `/ship` uses `/code-review` to review. If you have Code Review on your repository, you can write review-only rules in the root `REVIEW.md`: [[3]] ```markdown # Review instructions ## What Important means here Wrong results, leaked data or anything that blocks a rollback. Style and naming are Nit at most. ## Always check - Database queries are scoped to the caller's tenant. - New API routes have an integration test. ## Keep it quiet - Report at most five Nits. - Skip generated files and lockfiles. - Behavior claims need a file and line. ```

ChatGPT [[1]] [2]]假设有同行两次要求你确保新的查询包含租户检查。如果你使用本地审查,可以将这一要求记录在CLAUDE.md中,因为/ship会使用/code-review进行审查。如果你的代码仓库启用了 Code Review,则可以在根目录下的REVIEW.md中编写仅用于审查的规则: [3]] Markdown Review instructions What Important means here Wrong results, leaked data or anything that bl…

Read conversation
1 AI answers
33
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] As you get a few PRs under your belt, you'll start to notice patterns. For instance: [[2]] - The same comment from the same reviewer - A setup instruction that Claude has to figure out - A flaky check [[3]] You can start to write these down for your team, in one of a few files, depending on which tool needs to read it: [[4]] | What keeps repeating | Put it in | Read by | | --- | --- | --- | | A convention that code should follow | `CLAUDE.md` | Claude Code, local `/code-review`, Code Review and PR Steward | | A rule about how PRs get reviewed | `REVIEW.md` | Code Review and PR Steward, not local `/code-review` | | How to start and exercise the app | `.claude/skills/verify/SKILL.md` | Claude Code when it verifies a change | | How PRs here should be looked after | `.claude/skills/steward/SKILL.md` | `/ship`, `/steward` and PR Steward |

ChatGPT [[1]] 当你积累了几次 PR 处理经验后,就会开始注意到一些规律。例如: [[2]] - 同一位审查者反复提出相同的评论 - Claude 必须自行摸索才能弄清楚的配置说明 - 不稳定的检查项 [[3]] 你可以开始将这些内容记录下来,供团队使用。根据需要读取这些内容的工具不同,可以将它们写入以下几个文件之一: [4]] 反复出现的问题 写入位置 读取者 --- --- --- 代码应遵循的约定 CLAUDE.md Claude Code、本地/code-review、Code Review 和…

Read conversation
1 AI answers
34
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] A PR that has red checks is a good place to start. A PR that gets stuck in a conflict loop is also a good candidate. On the flip side, a PR that's in the middle of a design debate is a bad one because that's your debate to settle. [[2]] ### Claude escalates bigger calls to you [[3]] As part of the watch, Claude is told to make small changes and elevate the bigger ones. Things like: [[4]] - A request to redesign something, like a new API or a bigger scope - A security issue it wasn't able to resolve [[5]] It also pushes at most 3 times for a given issue, and then reports the attempted solutions. [[6]] That's roughly equivalent to our claim in the ⟦LNK7⟧: if we keep running the same check and it keeps failing after three rounds, then the approach is probably wrong. [[7]] At this point, it escalates to the author of the code. [[8]] ## IN YOUR REPO

ChatGPT [[1]] 带有红色检查项的 PR 是一个很好的切入点。陷入冲突循环、迟迟无法推进的 PR 也是不错的候选对象。反过来说,正在进行设计争论的 PR 就不适合,因为这场争论应该由你来做出决定。 [[2]] [[3]] 作为监视工作的一部分,Claude 被要求处理小规模的修改,并将更重大的问题上报。例如: [4]] - 要求重新设计某项内容,例如新增 API 或扩大项目范围 - 它无法解决的安全问题 [[5]] 对于同一个问题,它最多会尝试 3 次,然后汇报已经尝试过的解决方案。 [[6]] 这与我们…

Read conversation
1 AI answers
35
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] It will run just the watch component of `/ship`. It will watch the PR you opened and do things like fix failing checks, resolve conflicts, and address comments, without reviewing it first. [[2]] If you don't specify a PR number, it will watch the PR for the current branch. It will take the same `+name` bots, and the same caveats as before apply. [[3]] However, if a PR is already labeled Steward, it will not run the local watch. And if it is unable to run a watch, `/steward` will not do anything. [[4]] If you want to stop the watch, you can use either `/steward stop` or `/ship stop`. Since a session can only run one watch at a time, starting a new one will terminate the previous one. [[5]] Don't confuse `/steward` with PR Steward, which is a team service that runs as `claude[bot]` after being enabled by an admin. The `/steward` command runs as you, in your session.

ChatGPT [[1]]它将仅运行/ship中的 watch 组件。它会监视你打开的 PR,并执行诸如修复检查失败、解决冲突和处理评论等操作,而不会事先对其进行审查。 [2]]如果你没有指定 PR 编号,它将监视当前分支对应的 PR。它会使用相同的+name机器人,之前提到的相同注意事项也仍然适用。 [3]]但是,如果某个 PR 已经被标记为 Steward,它就不会运行本地 watch。此外,如果无法运行 watch,/steward将不会执行任何操作。 [4]]如果你想停止 watch,可以使用/stewar…

Read conversation
1 AI answers
36
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] However, this doesn't protect against all vectors. For example, the test script also runs under your credentials, and if you type a message during a turn, that will allow the constraints to be lifted for that turn. Additionally, if auto-merge is enabled, a fix from the watch could end up being what allows GitHub to merge. [[2]] Furthermore, the commits and pushes made by Claude during the watch are not affected by git hooks in your repo, so make sure any checks that need to be present are added to CI and branch rules. [[3]] For the full terms of the watch, run `/ship terms` in the product before your first time using it. [[4]] ### `/steward` for existing PRs [[5]] Many PRs don't need another review, but need someone to see them through to merge. If you have such a PR, check out the branch and run: [[6]] ``` /steward 41 ```

ChatGPT [[1]]不过,这并不能防范所有攻击途径。例如,测试脚本也会在你的凭据权限下运行;如果你在某个执行轮次期间输入了一条消息,就会导致该轮次的限制被解除。此外,如果启用了自动合并,监视任务中的某项修复操作最终可能成为允许 GitHub 执行合并的因素。 [2]]此外,Claude 在监视期间执行的提交和推送操作不受代码仓库中 Git Hooks 的约束,因此,请确保将所有必须执行的检查添加到 CI 和分支规则中。 [3]]有关监视功能的完整条款,请在首次使用前,在产品中运行/ship terms。 [4…

Read conversation
1 AI answers
37
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] Ensure the watch has its own checkout. You need to leave the branch checked out. If you're just going to jump straight into your next task, then make sure to use a separate worktree for one of them. [[2]] If the watch fails to start, Claude will explain why but still review the PR. For example, you can't run a watch if you have a `PreToolUse` or `PermissionRequest` hook on Bash in the `.claude/settings.json` of your repo. [[3]] Additionally, the watch uses up model turns while you're away, so it counts against your plan usage or API bill. The first time you use it, it's a good idea to be near your machine to make sure usage is within your expectations. [[4]] #### Only run the watch on repos you trust

ChatGPT [[1]] 确保监视任务使用独立的检出目录。你需要让该分支保持检出状态。如果你打算立即开始下一个任务,请确保为其中一个任务使用单独的工作树(worktree)。 [[2]]如果监视任务启动失败,Claude 会解释原因,但仍然会审查 PR。例如,如果你在仓库的.claude/settings.json中为 Bash 配置了PreToolUse或PermissionRequest钩子,就无法运行监视任务。 [[3]] 此外,当你离开时,监视任务仍会消耗模型调用轮次,因此会计入你的套餐用量或 API 账…

Read conversation
1 AI answers
38
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] The watch will merge the base branch into yours when necessary and then run commands like your tests. In other words, anyone who has the ability to land changes on the base branch has the ability to run commands on your machine during the watch. **Only run the watch locally on a repo where you trust everyone who can land changes on the base branch.** [[2]] Claude is told never to merge the PR, and Claude Code also constrains the gh and git commands it can run during an unattended turn, preventing direct merging or force-pushing. The watch's own commits also leave out the files that set the rules: `.github/`, `CODEOWNERS`, `CLAUDE.md`, `.claude/`, git hooks, etc.

ChatGPT [[1]]必要时,监视(watch)会将基础分支合并到你的分支中,然后运行诸如测试之类的命令。换句话说,在监视期间,任何有权将更改合并到基础分支的人,都有能力在你的机器上运行命令。 [[2]]Claude 被明确要求永远不要合并 PR,而 Claude Code 也会限制其在无人值守执行期间能够运行的gh和git命令,从而防止直接合并或强制推送。监视(watch)自身创建的提交也会排除那些用于设置规则的文件,例如:.github/、CODEOWNERS CLAUDE.md.claude/、Git h…

Read conversation
1 AI answers
39
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] The command will by default read comments by you, people with write access, and the Claude GitHub App. You can specify additional bots in the form `+name`. If that bot comments, it will be treated as an assertion to check against the code. [[2]] #### Letting Claude watch the PR [[3]] Claude watches the PR as you, on your machine, and uses your quota. Closing your laptop stops it, so keep the session open and the machine awake. You'll also need to be logged in to the GitHub CLI (run `gh auth login` first), and it only watches a PR that you opened. [[4]] For anything other than ⟦LNK5⟧, ⟦LNK6⟧ stops at every prompt and requires your response. It won't watch in bypass-permissions mode. Note that on Windows, `/ship` opens the PR and reviews, but the watch doesn't start.

ChatGPT [[1]]默认情况下,该命令会读取你本人、拥有写入权限的人员以及 Claude GitHub App 发表的评论。你可以通过+name的形式指定其他机器人。如果该机器人发表评论,该评论将被视为一项需要对照代码进行检查的断言。 [2]] [3]]Claude 会以你的身份,在你的本地机器上监控 PR,并使用你的配额。关闭笔记本电脑会导致监控停止,因此请保持会话开启,并确保机器处于唤醒状态。你还需要登录 GitHub CLI(首先运行gh auth login),而且它只会监控由你创建的 PR。 [4]…

Read conversation
1 AI answers
40
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] The command will by default read comments by you, people with write access, and the Claude GitHub App. You can specify additional bots in the form `+name`. If that bot comments, it will be treated as an assertion to check against the code. [[2]] #### Letting Claude watch the PR [[3]] Claude watches the PR as you, on your machine, and uses your quota. Closing your laptop stops it, so keep the session open and the machine awake. You'll also need to be logged in to the GitHub CLI (run `gh auth login` first), and it only watches a PR that you opened. [[4]] For anything other than ⟦LNK5⟧, ⟦LNK6⟧ stops at every prompt and requires your response. It won't watch in bypass-permissions mode. Note that on Windows, `/ship` opens the PR and reviews, but the watch doesn't start.

ChatGPT [[1]]默认情况下,该命令会读取你本人、拥有写入权限的人员以及 Claude GitHub App 发表的评论。你可以使用+name的形式指定其他机器人。如果该机器人发表评论,Claude 会将其视为一项需要对照代码进行检查的断言。 [2]] [3]]Claude 会以你的身份,在你的本地机器上监控 PR,并使用你的配额。关闭笔记本电脑会导致监控停止,因此请保持会话开启,并确保机器处于唤醒状态。你还需要登录 GitHub CLI(请先运行gh auth login),而且它只会监控由你创建的 PR…

Read conversation
1 AI answers
41
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] The command will not commit changes that touch files with names that look like secrets, or files that set rules, like `CLAUDE.md`, `REVIEW.md`, or anything in the `.claude/` or `.github/` directories. You will need to make these commits manually beforehand. [[2]] Also, if you are working in a public repository, the command will not commit any changes for you. You will need to commit any pending changes manually before you can proceed, and if the PR already exists, it won't include your pending changes. [[3]] **Optional: specifying effort level, PR, or bot** [[4]] ``` /ship high # run at high effort /ship 41 # work on pull request #41 /ship +my-lint-bot # also read comments from my-lint-bot /ship stop # end the watch ```

ChatGPT [[1]]该命令不会提交涉及文件名看起来像机密信息的文件的更改,也不会提交用于设置规则的文件的更改,例如CLAUDE.md、REVIEW.md,或.claude/.github/目录中的任何文件。你需要提前手动完成这些提交。 [2]]此外,如果你在公共仓库中工作,该命令不会为你提交任何更改。你需要在继续操作之前,手动提交所有尚未提交的更改。如果 PR 已经存在,它也不会包含你尚未提交的更改。 [[3]] [4]] Code /ship high 以高投入级别运行41 处理拉取请求 41+my-lin…

Read conversation
1 AI answers
42
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] - You will want to take extra care when using the ultra setting, which runs in the cloud, needs a login at claude.ai, and can be billed separately from your plan. Read the ⟦LNK4⟧ before trying it. - Edits made by `--fix` during a background review may not be caught by `/rewind`. Commit first if you want an easy way back. - Local `/code-review` reads your `CLAUDE.md` files, but not `REVIEW.md`. This matters later. [[2]] The first thing you should do is run `/code-review` a few times to understand what it catches and where it gets things wrong. You'll use this later. [[3]] ### Run `/ship` for your next PR [[4]] Once you're ready, type: [[5]] ``` /ship ``` [[6]] If you don't have a PR for your branch yet, `/ship` will:

ChatGPT [[1]] - 使用 ultra 设置时需要格外谨慎。它在云端运行,需要登录 claude.ai,并且可能会在你的套餐费用之外单独计费。尝试使用前,请阅读 ⟦LNK4⟧。 - 在后台审查期间由--fix执行的编辑可能无法通过/rewind捕获。如果你希望能够轻松恢复,请先提交代码。 - 本地/code-review会读取你的CLAUDE.md文件,但不会读取REVIEW.md。这一点在后面会很重要。 [2]]你首先应该做的是运行几次,以了解它能够发现哪些问题,以及它在哪些地方会出错。稍后你会用到这些…

Read conversation
1 AI answers
43
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] 1. Commit your pending changes. It behaves as if you had run `git add -A`, so it will respect your `.gitignore`. It will create a branch if necessary, and it will use your session to write the commit message. You will be notified of this before the commit, and can abort by hitting Esc. 2. Push and create the PR as you. 3. Perform a code review using `/code-review`, unless the commit has already been reviewed by Code Review. If the code review reports any issues, it will fix the ones it judges as valid for you. 4. Watch the PR for up to seven days. It will work on failing checks, conflicts, and review comments, and will exit if the PR is merged or closed. [[2]] The first step, where `/ship` commits your pending changes as if you had run `git add -A`, sometimes catches people by surprise, so be sure to run `git status` before running `/ship`.

ChatGPT [[1]] 1. 提交待处理的更改。其行为相当于你运行了git add -A,因此会遵循你的.gitignore。如果有必要,它会创建一个分支,并使用你的 session 来编写 commit message。在提交之前,你会收到通知,并且可以按 Esc 键中止操作。 2. 以你的身份推送代码并创建 PR。 3. 使用/code-review执行代码审查,除非该 commit 已经经过 Code Review 审查。如果代码审查报告了任何问题,它会自动修复它认为有效的问题。 4. 持续监控 PR,最…

Read conversation
1 AI answers
44
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] - You will want to take extra care when using the ultra setting, which runs in the cloud, needs a login at claude.ai, and can be billed separately from your plan. Read the ⟦LNK4⟧ before trying it. - Edits made by `--fix` during a background review may not be caught by `/rewind`. Commit first if you want an easy way back. - Local `/code-review` reads your `CLAUDE.md` files, but not `REVIEW.md`. This matters later. [[2]] The first thing you should do is run `/code-review` a few times to understand what it catches and where it gets things wrong. You'll use this later. [[3]] ### Run `/ship` for your next PR [[4]] Once you're ready, type: [[5]] ``` /ship ``` [[6]] If you don't have a PR for your branch yet, `/ship` will:

ChatGPT [[1]] - 使用 ultra 设置时需要格外谨慎。它在云端运行,需要登录 claude.ai,并且可能会在你的套餐费用之外单独计费。尝试使用之前,请阅读 ⟦LNK4⟧。 - 后台审查期间由--fix执行的编辑可能无法通过/rewind撤销。如果你希望能够轻松恢复到之前的状态,请先提交代码。 - 本地/code-review会读取你的CLAUDE.md文件,但不会读取REVIEW.md。这一点在后面会很重要。 [2]]你首先应该做的是多运行几次,了解它能够发现哪些问题,以及它在哪些地方会出错。稍后…

Read conversation
1 AI answers
45
1 AI answers
46
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] | You want Claude to | Run | Where it runs | | --- | --- | --- | | Find bugs before anyone else looks | `/code-review` | Your session | | Open a PR, review it and keep working on what comes back | `/ship` | Your session | | Look after a PR you already opened | `/steward` | Your session | | Do this across a team's PRs automatically | Claude Ship | Anthropic's cloud by default, set up by your team | [[2]] ## ON YOUR OWN PRS [[3]] ### Getting started today with `/code-review` [[4]] If you only do one thing from this post, review your branch before you push it. Bugs you catch here are less likely to come back as review comments or failed checks that pull you off your next task. At the Claude Code prompt, enter this command: [[5]] ``` /code-review ``` [[6]] It reviews the commits on your branch and your uncommitted changes for correctness bugs. A few variations to keep in mind:

ChatGPT [[1]] 你希望 Claude 做什么 运行命令 运行位置 --- --- --- 在其他人查看之前发现 Bug /code-review 你的会话 创建 PR、审查 PR,并继续处理收到的反馈 /ship 跟进你已经创建的 PR /steward 自动处理团队的所有 PR Claude Ship 默认运行在 Anthropic 的云端,由你的团队进行配置 [2]] [3]] [4]]如果你只打算从这篇文章中做一件事,那就在推送代码之前审查自己的分支。在这里发现的 Bug,不太可能在之后以代码审查…

Read conversation
1 AI answers
47
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] Claude Ship is three agents that tackle this work: Code Review, PR Steward (beta), and Claude Approvals (beta). Code Review is generally available, and the other two are in beta. `/ship` is a command you run yourself in Claude Code to try Claude Ship on your own pull requests. It comes with the latest version of Claude Code, and it works even before an admin has turned on any of the agents. You can partially automate the first two steps today. The last step is a decision that you set in your branch protections and (if your team adopts one) your policy file. Here is how it breaks down using the three agents that are part of Claude Ship:

ChatGPT [[1]]Claude Ship 由三个 Agent 组成,专门处理这项工作:Code Review、PR Steward(测试版)和 Claude Approvals(测试版)。Code Review 已正式发布,另外两个仍处于测试阶段。/ship是你在 Claude Code 中手动运行的一条命令,用于在自己的 Pull Request 上体验 Claude Ship。它随最新版 Claude Code 一起提供,即使管理员尚未启用任何 Agent,也可以正常使用。如今,你已经可以对前两个步骤实…

Read conversation
1 AI answers
48
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[2]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[3]] ## THE POST-PR PROCESS [[4]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged.

ChatGPT [[1]] 本文面向这样一类开发者或技术负责人:其团队使用 GitHub 开展工作,并且本人没有管理员权限。你现在就可以通过运行几条命令自行开始,并将学到的内容保存到代码仓库中的文件里,供团队审阅。只有当团队希望 Agent 自动在团队的 PR 上执行这些操作时,才需要管理员介入。 [[2]] 你仍然是整个流程的架构师,因此由你来定义要构建什么、如何构建,以及代码合并需要达到什么标准。 [[3]] [[4]] 打开 PR 之后,你需要发现问题、解决问题,并最终决定这项变更是否可以合并。

Read conversation
1 AI answers
49
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] # A practical guide to shipping with Claude Code [[2]] After you open a pull request, hand the follow up to Claude Code using /ship. Here's how to dial in your preferences to stay in flow. [[3]] Addy Osmani [[4]] Nov 24, 2026 [[5]] - The post-PR process - On your own PRs - Getting started today with /code-review - Run /ship for your next PR - /steward for existing PRs - Claude escalates bigger calls to you - In your repo - Repeat comments become review rules - Repeat setup becomes verify skills - Repeat PR maintenance becomes steward rules - Across your team's PRs - Standardizing the post-PR process - Configure your first approval policy - Monitoring and transitioning to enforcement - Things to try this week [[6]] When you open a pull request, there's usually a bunch of follow-up work to be done:

ChatGPT [[1]] [2]]打开 Pull Request(PR)后,使用/ship将后续工作交给 Claude Code。以下介绍如何调整你的偏好设置,让工作流程保持流畅。 [[3]] Addy Osmani [[4]] 2026 年 11 月 24 日 [5]] - PR 提交后的工作流程 - 处理你自己的 PR - 今天就通过/code-review开始使用 - 在下一个 PR 中运行 - 使用/steward管理现有 PR - Claude 会将更重大的决策升级交由你处理 - 在你的代码仓库中 - …

Read conversation
1 AI answers
50
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样(n 为数字);保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留,不翻译。行内代码原样保留。 [[1]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[2]] They're all tiny little tasks, but each one takes you off your focus work. [[3]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once. [[4]] In my experience this is a more productive and enjoyable way to code. It minimizes context switching and keeps me in a flow state. [[5]] We've talked about the process the Claude Code team uses for code review ⟦LNK1⟧, and about the verification process underneath it ⟦LNK2⟧. **This post is about getting your own repository set up to do this** using some of the new functionality we recently added with the ⟦LNK3⟧.

ChatGPT [[1]] - CI 失败 - 收到一轮包含六条意见的代码审查反馈 - 主分支合并时产生冲突 [[2]] 这些都是非常琐碎的小任务,但每一项都会让你从专注的工作中分心。 [[3]] 在 Claude Code 团队中,Agent 通常会负责处理这些后续工作。例如,它可以接手审查人员发现的问题,这样当代码作者回来时,PR 就已经更新过一次了。 [[4]] 根据我的经验,这是一种效率更高、体验也更愉快的编码方式。它最大限度地减少了上下文切换,让我能够保持心流状态。 [[5]]我们已经讨论过 Claude…

Read conversation
1 AI answers
51
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样;保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留。 [[1]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[2]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[3]] ## THE POST-PR PROCESS [[4]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged.

ChatGPT [[1]] 本文面向的是这样一类开发者或技术负责人:团队在 GitHub 上开展工作,而你没有管理员权限。你现在就可以通过运行几条命令自行开始,并将学到的内容保存到代码仓库中的文件里,供团队审查。只有当团队希望 Agent 自动在团队的 PR 上执行这些操作时,才需要管理员介入。 [[2]] 你仍然是整个流程的架构师,因此由你来定义要构建什么、如何构建,以及代码合并需要达到什么标准。 [[3]] [[4]] 打开 PR 之后,你需要发现问题、解决问题,并最终决定这项变更是否可以合并。

Read conversation
1 AI answers
52
ChatGPT

请把下面英文片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留 ⟦LNKn⟧ 占位符原样;保留 Markdown 标题、列表、表格和代码块围栏;代码块内容原样保留。 [[1]] When you open a pull request, there's usually a bunch of follow-up work to be done: [[2]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[3]] They're all tiny little tasks, but each one takes you off your focus work. [[4]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once.

ChatGPT [[1]] 当你创建一个 Pull Request(PR)时,通常还会有一系列后续工作需要处理: [[2]] - CI 检查失败 - 收到一轮代码审查,其中包含六条评论 - 主分支合并后产生冲突 [[3]] 这些都是一些很小的任务,但每一项都会打断你正在专注处理的工作。 [[4]] 在 Claude Code 团队中,通常会由一个 agent 来处理这些后续工作。例如,它可以接手审查人员发现的问题,这样当作者回来时,PR 就已经完成了一轮更新。

Read conversation
1 AI answers
53
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] # A practical guide to shipping with Claude Code [[2]] After you open a pull request, hand the follow up to Claude Code using /ship. Here's how to dial in your preferences to stay in flow. [[3]] Addy Osmani [[4]] Nov 24, 2026 [[5]] - The post-PR process - On your own PRs - Getting started today with /code-review - Run /ship for your next PR - /steward for existing PRs - Claude escalates bigger calls to you - In your repo - Repeat comments become review rules - Repeat setup becomes verify skills - Repeat PR maintenance becomes steward rules - Across your team's PRs - Standardizing the post-PR process - Configure your first approval policy - Monitoring and transitioning to enforcement - Things to try this week [[6]] When you open a pull request, there's usually a bunch of follow-up work to be done: [[7]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[8]] They're all tiny little tasks, but each one takes you off your focus work. [[9]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once. [[10]] In my experience this is a more productive and enjoyable way to code. It minimizes context switching and keeps me in a flow state. [[11]] We've talked about the process the Claude Code team uses for code review ⟦LNK1⟧, and about the verification process underneath it ⟦LNK2⟧. **This post is about getting your own repository set up to do this** using some of the new functionality we recently added with the ⟦LNK3⟧. [[12]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[13]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[14]] ## THE POST-PR PROCESS [[15]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged. [[16]] Claude Ship is three agents that tackle this work: Code Review, PR Steward (beta), and Claude Approvals (beta). Code Review is generally available, and the other two are in beta. `/ship` is a command you run yourself in Claude Code to try Claude Ship on your own pull requests. It comes with the latest version of Claude Code, and it works even before an admin has turned on any of the agents. You can partially automate the first two steps today. The last step is a decision that you set in your branch protections and (if your team adopts one) your policy file. Here is how it breaks down using the three agents that are part of Claude Ship: [[17]] | You want Claude to | Run | Where it runs | | --- | --- | --- | | Find bugs before anyone else looks | `/code-review` | Your session | | Open a PR, review it and keep working on what comes back | `/ship` | Your session | | Look after a PR you already opened | `/steward` | Your session | | Do this across a team's PRs automatically | Claude Ship | Anthropic's cloud by default, set up by your team | [[18]] ## ON YOUR OWN PRS [[19]] ### Getting started today with `/code-review` [[20]] If you only do one thing from this post, review your branch before you push it. Bugs you catch here are less likely to come back as review comments or failed checks that pull you off your next task. At the Claude Code prompt, enter this command: [[21]] ``` /code-review ``` [[22]] It reviews the commits on your branch and your uncommitted changes for correctness bugs. A few variations to keep in mind: [[23]] ``` /code-review high 1234 # review PR 1234 at high effort /code-review --fix # apply the findings to your working tree /code-review --comment 1234 # post the findings on the PR /code-review ultra # run a deeper review in the cloud ``` [[24]] The effort goes from low to max. At low you only see the findings the review is most sure about. Go higher and you see more, including some it's less sure about. Claude remembers the last level you used, so if the risk changes, set it again. [[25]] A few caveats: [[26]] - You will want to take extra care when using the ultra setting, which runs in the cloud, needs a login at claude.ai, and can be billed separately from your plan. Read the ⟦LNK4⟧ before trying it. - Edits made by `--fix` during a background review may not be caught by `/rewind`. Commit first if you want an easy way back. - Local `/code-review` reads your `CLAUDE.md` files, but not `REVIEW.md`. This matters later. [[27]] The first thing you should do is run `/code-review` a few times to understand what it catches and where it gets things wrong. You'll use this later. [[28]] ### Run `/ship` for your next PR [[29]] Once you're ready, type: [[30]] ``` /ship ```

ChatGPT [[1]] [2]]在你创建 Pull Request(PR)后,使用/ship将后续工作交给 Claude Code。下面介绍如何调整你的偏好设置,让自己始终保持专注、高效的工作状态。 [3]]Addy Osmani [4]]2026 年 11 月 24 日 [5]] - PR 创建后的处理流程 - 处理你自己的 PR - 今天就通过/code-review开始使用 - 在下一个 PR 中运行 - 使用/steward管理已有的 PR - Claude 会将重大决策升级交由你处理 - 在你的代码仓…

Read conversation
1 AI answers
54
ChatGPT

请把下面英文文章片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留所有 ⟦LNKn⟧ 占位符原样;保留 Markdown 标题、列表、表格和代码块围栏;代码块里的内容原样保留,不要翻译。行内代码原样保留。 [[1]] # A practical guide to shipping with Claude Code [[2]] After you open a pull request, hand the follow up to Claude Code using /ship. Here's how to dial in your preferences to stay in flow. [[3]] Addy Osmani [[4]] Nov 24, 2026 [[5]] - The post-PR process - On your own PRs - Getting started today with /code-review - Run /ship for your next PR - /steward for existing PRs - Claude escalates bigger calls to you - In your repo - Repeat comments become review rules - Repeat setup becomes verify skills - Repeat PR maintenance becomes steward rules - Across your team's PRs - Standardizing the post-PR process - Configure your first approval policy - Monitoring and transitioning to enforcement - Things to try this week [[6]] When you open a pull request, there's usually a bunch of follow-up work to be done: [[7]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[8]] They're all tiny little tasks, but each one takes you off your focus work. [[9]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once. [[10]] In my experience this is a more productive and enjoyable way to code. It minimizes context switching and keeps me in a flow state. [[11]] We've talked about the process the Claude Code team uses for code review ⟦LNK1⟧, and about the verification process underneath it ⟦LNK2⟧. **This post is about getting your own repository set up to do this** using some of the new functionality we recently added with the ⟦LNK3⟧.

ChatGPT Timed out waiting for ChatGPT after about 60 seconds. Last observed status: executing.

Read conversation
1 AI answers
55
ChatGPT

请把下面英文文章片段完整翻译成简体中文,逐段对应,不概括、不删减、不添加说明。只输出译文。保留每段前的 [[数字]] 编号;保留所有 ⟦LNKn⟧ 占位符原样;保留 Markdown 标题、列表、表格和代码块围栏;代码块里的内容原样保留,不要翻译。行内代码原样保留。 [[1]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[2]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[3]] ## THE POST-PR PROCESS [[4]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged. [[5]] Claude Ship is three agents that tackle this work: Code Review, PR Steward (beta), and Claude Approvals (beta). Code Review is generally available, and the other two are in beta. `/ship` is a command you run yourself in Claude Code to try Claude Ship on your own pull requests. It comes with the latest version of Claude Code, and it works even before an admin has turned on any of the agents. You can partially automate the first two steps today. The last step is a decision that you set in your branch protections and (if your team adopts one) your policy file. Here is how it breaks down using the three agents that are part of Claude Ship:

ChatGPT [[1]] 本文面向的是使用 GitHub 开展工作的开发者或技术负责人,且其团队成员没有管理员权限。你现在就可以通过运行几条命令自行开始,并将学到的内容保存到代码仓库中的文件里,供团队审查。只有当你的团队希望让 agents 自动在团队的 PR 上执行这些工作时,才需要管理员介入。 [[2]] 你仍然是整个流程的架构师,因此由你来定义要构建什么、如何构建,以及代码合并需要达到什么标准。 [[3]] [[4]] 在你创建 PR 之后,你需要发现问题、解决问题,并最终决定这项变更是否可以合并。 [5]…

Read conversation
1 AI answers
56
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] # A practical guide to shipping with Claude Code [[2]] After you open a pull request, hand the follow up to Claude Code using /ship. Here's how to dial in your preferences to stay in flow. [[3]] Addy Osmani [[4]] Nov 24, 2026 [[5]] - The post-PR process - On your own PRs - Getting started today with /code-review - Run /ship for your next PR - /steward for existing PRs - Claude escalates bigger calls to you - In your repo - Repeat comments become review rules - Repeat setup becomes verify skills - Repeat PR maintenance becomes steward rules - Across your team's PRs - Standardizing the post-PR process - Configure your first approval policy - Monitoring and transitioning to enforcement - Things to try this week [[6]] When you open a pull request, there's usually a bunch of follow-up work to be done: [[7]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[8]] They're all tiny little tasks, but each one takes you off your focus work. [[9]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once. [[10]] In my experience this is a more productive and enjoyable way to code. It minimizes context switching and keeps me in a flow state. [[11]] We've talked about the process the Claude Code team uses for code review ⟦LNK1⟧, and about the verification process underneath it ⟦LNK2⟧. **This post is about getting your own repository set up to do this** using some of the new functionality we recently added with the ⟦LNK3⟧. [[12]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[13]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[14]] ## THE POST-PR PROCESS [[15]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged. [[16]] Claude Ship is three agents that tackle this work: Code Review, PR Steward (beta), and Claude Approvals (beta). Code Review is generally available, and the other two are in beta. `/ship` is a command you run yourself in Claude Code to try Claude Ship on your own pull requests. It comes with the latest version of Claude Code, and it works even before an admin has turned on any of the agents. You can partially automate the first two steps today. The last step is a decision that you set in your branch protections and (if your team adopts one) your policy file. Here is how it breaks down using the three agents that are part of Claude Ship: [[17]] | You want Claude to | Run | Where it runs | | --- | --- | --- | | Find bugs before anyone else looks | `/code-review` | Your session | | Open a PR, review it and keep working on what comes back | `/ship` | Your session | | Look after a PR you already opened | `/steward` | Your session | | Do this across a team's PRs automatically | Claude Ship | Anthropic's cloud by default, set up by your team | [[18]] ## ON YOUR OWN PRS [[19]] ### Getting started today with `/code-review` [[20]] If you only do one thing from this post, review your branch before you push it. Bugs you catch here are less likely to come back as review comments or failed checks that pull you off your next task. At the Claude Code prompt, enter this command: [[21]] ``` /code-review ``` [[22]] It reviews the commits on your branch and your uncommitted changes for correctness bugs. A few variations to keep in mind: [[23]] ``` /code-review high 1234 # review PR 1234 at high effort /code-review --fix # apply the findings to your working tree /code-review --comment 1234 # post the findings on the PR /code-review ultra # run a deeper review in the cloud ``` [[24]] The effort goes from low to max. At low you only see the findings the review is most sure about. Go higher and you see more, including some it's less sure about. Claude remembers the last level you used, so if the risk changes, set it again. [[25]] A few caveats: [[26]] - You will want to take extra care when using the ultra setting, which runs in the cloud, needs a login at claude.ai, and can be billed separately from your plan. Read the ⟦LNK4⟧ before trying it. - Edits made by `--fix` during a background review may not be caught by `/rewind`. Commit first if you want an easy way back. - Local `/code-review` reads your `CLAUDE.md` files, but not `REVIEW.md`. This matters later. [[27]] The first thing you should do is run `/code-review` a few times to understand what it catches and where it gets things wrong. You'll use this later. [[28]] ### Run `/ship` for your next PR [[29]] Once you're ready, type: [[30]] ``` /ship ```

ChatGPT [[1]] [2]]打开 Pull Request(PR)后,使用/ship将后续工作交给 Claude Code。下面介绍如何调整你的偏好设置,让自己始终保持流畅的工作状态。 [3]]Addy Osmani [4]]2026年11月24日 [5]] - PR 后续处理流程 - 处理自己的 PR - 今天就开始使用/code-review - 在下一个 PR 中运行 - 使用/steward管理现有 PR - Claude 会将重大决策升级交由你处理 - 在你的代码仓库中 - 重复出现的评论会变成审…

Read conversation
1 AI answers
57
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] For approval policies, Claude Approvals reads from the `.claude/approvals.yml` file on the default branch. A simple first policy could be: [[2]] ```yaml # .claude/approvals.yml version: 1 mode: observe rules: - purpose: "A change takes two people." paths: ["**"] verdict: { claude: comments, seats: 2 } advisory: [claude/code_review] - purpose: "A change to the review rules takes two people." paths: ["**/.claude/**", "**/REVIEW.md", "**/CLAUDE.md", "**/CODEOWNERS", ".github/**"] nested: inherit verdict: { claude: comments, seats: 2 } ``` [[3]] `seats` is the number of people who have to approve, and the author can take one of those seats. [[4]] There's one catch. After the watch has merged the base branch, the most recent commit will be a merge commit, and nobody sits in the author's seat for it, so the PR author should comment `@claude approve`. [[5]] When a rule's verdict is `claude: comments`, Claude won't approve. If more than one rule matches, the strictest one wins. In observe mode the check just tells you what it would have decided. Claude doesn't approve anything. [[6]] Don't drop the advisory line. Once the policy file is on the default branch, Code Review only kicks off automatically on PRs that match a rule naming it. Without that line, your automatic reviews just stop. Advisory reviews don't change the verdict, and they run on whatever settings you already have. A policy that names Code Review can start billed reviews, even where Code Review is turned off. [[7]] If you want to see where a passing Claude review could lower what a path needs, swap the advisory line for an override, and update the rule's purpose to match, for example "When Claude's review passes, one is enough and Claude approves." [[8]] ```yaml override: - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } } ``` [[9]] The override names Code Review too, so those pull requests still get automatic reviews. When a review passes, the override swaps the rule's decision for one seat plus Claude's approval. The author can fill that one seat, so the check can now report that Claude would have approved. But text in a pull request can sway Claude's review, and when it does, this override lowers what that pull request needs. [[10]] If there are some paths that need to always require a human, put them in a rule without an override (next section, step 1). Before you merge this, tell the budget owner. **A policy that uses Claude's review this way starts billing Code Reviews, even in observe mode.** It can bill whenever you push, regardless of your Code Review settings. [[11]] You can also build your own classifiers for questions like "is this PR related to a migration?" ⟦LNK9⟧ live in `.claude/classifiers/<name>/def.yml` on the default branch, and each run is billed, even in observe mode. Start out by focusing on paths and the Code Review result. [[12]] ### Monitoring and transitioning to enforcement [[13]] Our team uses the same process as observe mode for our own internal commit gate. It logs the decisions it would have made in observe mode, so we can analyze false positives before making them mandatory. You will see the decisions in the Claude Approvals check and the associated comment. [[14]] Keep in mind that you only get the value of observe mode if you actually monitor it. After a week or two of having it in place, revisit the merged PRs and see how the decisions compare to your reviewers' behavior. [[15]] The first two rows apply once you've added the override. [[16]] | The policy said | Your reviewers | What to do | | --- | --- | --- | | Would approve | Approved with nothing to add | Keep the rule | | Would approve | Asked for changes | Add a path rule that needs a person, or fix `REVIEW.md` if review should have caught it | | Needs two people | Approved at a glance every time | Consider narrowing the rule once you've seen enough examples | | Needs two people | Had real questions | Keep the rule | [[17]] Go through a few example PRs. How would you have decided? Which rule made the decision? What would you change? Pay the most attention to the second row, and fix those before you relax any rules. [[18]] One thing to know before you enforce: Claude's approvals count as real approvals on GitHub. If a ruleset only needs one approval, Claude's can be enough on its own. So read your policy and your branch rules together. [[19]] If you use auto-merge, and have policies that only the author can fulfill (like the override above), you can have PRs that get merged without anyone doing anything. Decide explicitly whether that's OK for each path, and write it down. [[20]] Then lock it down in this order: [[21]] 1. Use a rule without an if or override for paths where you always need a second set of eyes. No classifier result can override it, and `nested: inherit` carries it into subdirectories that have their own policies. [[22]] ```yaml - purpose: "Auth, billing and CI take a person who isn't an author." paths: ["src/auth/**", "src/billing/**", ".github/**"] nested: inherit verdict: claude: comments seats: [{ count: 1, from: [humans, "!pr/authors"] }] ``` [[23]] 2. Remove `mode: observe` and merge. Now Claude can approve wherever the rules say it approves. 3. About five minutes later, comment `@claude approvals rerun` on open PRs, so any stale results get cleaned up. Reruns can charge for classifiers again. 4. Ask a repository admin to make the Claude Approvals check required, and to pick the Claude app as its source. Until then, your PR can get merged regardless of what the check says. [[24]] Claude Ship and the local commands use AI, and they can miss bugs, security problems, and other issues, so keep all your existing tests, scanners, and reviewers. [[25]] ## THINGS TO TRY THIS WEEK [[26]] I'd like to make it clear that for the Claude Code team, the person who called the agent is responsible for a change. It's as if they typed it themselves. [[27]] Your team should still be responsible for the PR scope, design, evidence, and rules for when it can merge. With these principles in mind, here is where you can get started: [[28]] 1. **Today:** Run `/code-review` on your current branch. Make a note of what it got wrong and what it missed. 2. **Next PR:** In a repository where you trust everyone who can merge, try `/ship`, and stick around. Try `/steward` on an existing PR, in a different terminal and git checkout. 3. **By Friday:** Create a small PR with the rule you repeated most, in your `CLAUDE.md`, `REVIEW.md`, or a skill. Do the commit yourself, since `/ship` will not commit rule files. Share the PR and the example observe-mode policy with your team. [[29]] If you do so, I would love to know which rule file was most impactful, and which tasks you chose to keep doing yourself.

ChatGPT [[1]]对于审批策略,Claude Approvals 从默认分支上的.claude/approvals.yml文件中读取配置。一个简单的初始策略可以是: [2]] YAML .claude/approvals.yml version:1 mode observe rules: -purpose"A change takes two people."paths: [" "]verdict: {claude comments,seats 2}advisory claude/code review] …

Read conversation
1 AI answers
58
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] ### Repeat comments become review rules [[2]] Let's say you get asked by a peer twice to make sure a new query contains a tenant check. If you use local review, you can write this down in `CLAUDE.md`, since `/ship` uses `/code-review` to review. If you have Code Review on your repository, you can write review-only rules in the root `REVIEW.md`: [[3]] ```markdown # Review instructions ## What Important means here Wrong results, leaked data or anything that blocks a rollback. Style and naming are Nit at most. ## Always check - Database queries are scoped to the caller's tenant. - New API routes have an integration test. ## Keep it quiet - Report at most five Nits. - Skip generated files and lockfiles. - Behavior claims need a file and line. ``` [[4]] Code Review won't read the `REVIEW.md` file from the PR being reviewed. It will also only respect some instructions, like excluding paths and limiting nits, when the default branch is protected. [[5]] Not every comment should be elevated. On our team, we have a principle that a pattern has to be repeated on at least 2 PRs to be considered for a rule. A person then approves the PR that adds the rule. That's a good bar to adopt. You should also be deleting rules as needed. [[6]] ### Repeat setup becomes verify skills [[7]] If you find yourself constantly telling Claude how to boot up the app and navigate to specific pages, you should just write it down. Create `.claude/skills/verify/SKILL.md`. This can be in the root or in the directory of the code. [[8]] ```markdown --- name: verify description: Run the web app and exercise a change end to end. Use before committing. --- 1. Start the stack with npm run dev:stack. 2. Wait for /healthz on port 3000 to return 200. 3. Sign in with the seeded test account. 4. Exercise the changed flow in the browser and take a screenshot. 5. Report the steps you ran and what you saw. Don't report success without them. ``` [[9]] Be sure to customize the commands. [[10]] Have Claude run it a few times, and fix any flaky behaviors. People ignore verification they don't trust. [[11]] ### Repeat PR maintenance becomes steward rules [[12]] This one can be easy to miss. The local watch reads the `.claude/skills/steward/SKILL.md` file from your working directory. [[13]] PR Steward, which runs in Anthropic's cloud, reads it from the default branch. [[14]] ```markdown --- name: steward description: House rules for looking after PRs in this repository user-invocable: false disable-model-invocation: true --- - Regenerate the lockfile with npm install; don't edit it by hand. - `e2e-nightly` is flaky. Re-run it once before looking for a cause. - Run npm test and npm run lint before pushing a fix. - Leave comments about API design to the author. ``` [[15]] In the example above, the two settings keep it out of the / menu and out of the skills Claude picks on its own. [[16]] The steward file can't change the watch's restrictions. However, anyone who can merge to the repository can edit the file, so review changes to it as carefully as you would review any changes to CI. [[17]] If your team turns on PR Steward later, those guidelines will apply in Anthropic's cloud once they're on the default branch. [[18]] ## ACROSS YOUR TEAM'S PRS [[19]] ### Standardizing the post-PR process [[20]] Once you've run `/ship` on a few of your own PRs, you'll have a good sense of what Claude Ship could do across your team's PRs. The rest of this post is for that conversation with your admins: what to ask for, and how to roll it out safely. [[21]] To ⟦LNK8⟧, you'll need to ask your administrators for a single repository, a few volunteers, and a limited amount of time to test Claude Ship on your own pull requests. [[22]] 1. **Agree on your budget constraints ahead of time.** 2. **Protect the default branch of the repository.** A repository admin can set up this requirement, ensuring that any updates require a PR with an approval on the latest push, and that the Claude GitHub App is not on the bypass list. 3. **Enable Code Review for this repository.** An Owner, the admin role in your Claude organization, can enable Code Review. 4. **Enable PR Steward in Manual mode.** The same Owner can enable PR Steward to kick in when a user with write access comments `@claude steward`, or when authors opt in for it to kick in automatically. Comment `@claude stop` to stop Steward. 5. **Create an observe mode approval policy.** This file acts like any other file; you can create it in your own PR, but since merging this file enables Approvals for the repository, clear it with an Owner first. [[23]] PR Steward is designed not to approve or merge pull requests, so make sure you use branch protection to require the approvals you want before merging. [[24]] PR Steward reads the comments from reviewers and performs some actions based on them. Like any text-parsing agent, it can be fooled by what people say. Make sure you use it only in repositories with trusted collaborators, and check the changes made by PR Steward on comments from untrusted users. [[25]] ### Configure your first approval policy

ChatGPT [[1]] [2]]假设有同事两次要求你确保新查询中包含租户检查(tenant check)。如果你使用本地评审,可以将这一要求记录在CLAUDE.md中,因为/ship会使用/code-review进行评审。如果你的代码仓库启用了 Code Review,则可以在根目录下的REVIEW.md文件中编写仅用于代码评审的规则: [3]] Markdown Review instructions What Important means here Wrong results, leaked data o…

Read conversation
1 AI answers
59
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] If you don't have a PR for your branch yet, `/ship` will: [[2]] 1. Commit your pending changes. It behaves as if you had run `git add -A`, so it will respect your `.gitignore`. It will create a branch if necessary, and it will use your session to write the commit message. You will be notified of this before the commit, and can abort by hitting Esc. 2. Push and create the PR as you. 3. Perform a code review using `/code-review`, unless the commit has already been reviewed by Code Review. If the code review reports any issues, it will fix the ones it judges as valid for you. 4. Watch the PR for up to seven days. It will work on failing checks, conflicts, and review comments, and will exit if the PR is merged or closed. [[3]] The first step, where `/ship` commits your pending changes as if you had run `git add -A`, sometimes catches people by surprise, so be sure to run `git status` before running `/ship`. [[4]] The command will not commit changes that touch files with names that look like secrets, or files that set rules, like `CLAUDE.md`, `REVIEW.md`, or anything in the `.claude/` or `.github/` directories. You will need to make these commits manually beforehand. [[5]] Also, if you are working in a public repository, the command will not commit any changes for you. You will need to commit any pending changes manually before you can proceed, and if the PR already exists, it won't include your pending changes. [[6]] **Optional: specifying effort level, PR, or bot** [[7]] ``` /ship high # run at high effort /ship 41 # work on pull request #41 /ship +my-lint-bot # also read comments from my-lint-bot /ship stop # end the watch ``` [[8]] The command will by default read comments by you, people with write access, and the Claude GitHub App. You can specify additional bots in the form `+name`. If that bot comments, it will be treated as an assertion to check against the code. [[9]] #### Letting Claude watch the PR [[10]] Claude watches the PR as you, on your machine, and uses your quota. Closing your laptop stops it, so keep the session open and the machine awake. You'll also need to be logged in to the GitHub CLI (run `gh auth login` first), and it only watches a PR that you opened. [[11]] For anything other than ⟦LNK5⟧, ⟦LNK6⟧ stops at every prompt and requires your response. It won't watch in bypass-permissions mode. Note that on Windows, `/ship` opens the PR and reviews, but the watch doesn't start. [[12]] Ensure the watch has its own checkout. You need to leave the branch checked out. If you're just going to jump straight into your next task, then make sure to use a separate worktree for one of them. [[13]] If the watch fails to start, Claude will explain why but still review the PR. For example, you can't run a watch if you have a `PreToolUse` or `PermissionRequest` hook on Bash in the `.claude/settings.json` of your repo. [[14]] Additionally, the watch uses up model turns while you're away, so it counts against your plan usage or API bill. The first time you use it, it's a good idea to be near your machine to make sure usage is within your expectations. [[15]] #### Only run the watch on repos you trust [[16]] The watch will merge the base branch into yours when necessary and then run commands like your tests. In other words, anyone who has the ability to land changes on the base branch has the ability to run commands on your machine during the watch. **Only run the watch locally on a repo where you trust everyone who can land changes on the base branch.** [[17]] Claude is told never to merge the PR, and Claude Code also constrains the gh and git commands it can run during an unattended turn, preventing direct merging or force-pushing. The watch's own commits also leave out the files that set the rules: `.github/`, `CODEOWNERS`, `CLAUDE.md`, `.claude/`, git hooks, etc. [[18]] However, this doesn't protect against all vectors. For example, the test script also runs under your credentials, and if you type a message during a turn, that will allow the constraints to be lifted for that turn. Additionally, if auto-merge is enabled, a fix from the watch could end up being what allows GitHub to merge. [[19]] Furthermore, the commits and pushes made by Claude during the watch are not affected by git hooks in your repo, so make sure any checks that need to be present are added to CI and branch rules. [[20]] For the full terms of the watch, run `/ship terms` in the product before your first time using it. [[21]] ### `/steward` for existing PRs [[22]] Many PRs don't need another review, but need someone to see them through to merge. If you have such a PR, check out the branch and run: [[23]] ``` /steward 41 ``` [[24]] It will run just the watch component of `/ship`. It will watch the PR you opened and do things like fix failing checks, resolve conflicts, and address comments, without reviewing it first. [[25]] If you don't specify a PR number, it will watch the PR for the current branch. It will take the same `+name` bots, and the same caveats as before apply. [[26]] However, if a PR is already labeled Steward, it will not run the local watch. And if it is unable to run a watch, `/steward` will not do anything. [[27]] If you want to stop the watch, you can use either `/steward stop` or `/ship stop`. Since a session can only run one watch at a time, starting a new one will terminate the previous one. [[28]] Don't confuse `/steward` with PR Steward, which is a team service that runs as `claude[bot]` after being enabled by an admin. The `/steward` command runs as you, in your session. [[29]] A PR that has red checks is a good place to start. A PR that gets stuck in a conflict loop is also a good candidate. On the flip side, a PR that's in the middle of a design debate is a bad one because that's your debate to settle. [[30]] ### Claude escalates bigger calls to you [[31]] As part of the watch, Claude is told to make small changes and elevate the bigger ones. Things like: [[32]] - A request to redesign something, like a new API or a bigger scope - A security issue it wasn't able to resolve [[33]] It also pushes at most 3 times for a given issue, and then reports the attempted solutions. [[34]] That's roughly equivalent to our claim in the ⟦LNK7⟧: if we keep running the same check and it keeps failing after three rounds, then the approach is probably wrong. [[35]] At this point, it escalates to the author of the code. [[36]] ## IN YOUR REPO [[37]] As you get a few PRs under your belt, you'll start to notice patterns. For instance: [[38]] - The same comment from the same reviewer - A setup instruction that Claude has to figure out - A flaky check [[39]] You can start to write these down for your team, in one of a few files, depending on which tool needs to read it: [[40]] | What keeps repeating | Put it in | Read by | | --- | --- | --- | | A convention that code should follow | `CLAUDE.md` | Claude Code, local `/code-review`, Code Review and PR Steward | | A rule about how PRs get reviewed | `REVIEW.md` | Code Review and PR Steward, not local `/code-review` | | How to start and exercise the app | `.claude/skills/verify/SKILL.md` | Claude Code when it verifies a change | | How PRs here should be looked after | `.claude/skills/steward/SKILL.md` | `/ship`, `/steward` and PR Steward |

ChatGPT [[1]]如果你的分支还没有 PR,/ship将会: [2]] 1. 提交你尚未提交的更改。它的行为相当于你运行了git add -A,因此会遵循你的.gitignore规则。如有必要,它会创建一个分支,并使用你当前的 session 来编写 commit message(提交信息)。在提交之前,你会收到通知,也可以按 Esc 键中止操作。 2. 以你的身份推送代码并创建 PR。 3. 使用/code-review执行代码审查,除非该 commit 已经经过 Code Review 审查。如果代码审…

Read conversation
1 AI answers
60
ChatGPT

你是一位资深技术文档译者。请把下面的英文技术文章完整翻译成简体中文。 严格要求: 1. 逐段翻译,不概括、不删减、不添加解释或评论;只输出译文。 2. 每个段落前有 [[数字]] 编号,译文必须逐段保留对应编号,段落数量不能少。 3. 保留全部 Markdown 结构:标题 #、列表、表格、加粗、行内代码、代码块围栏。 4. 所有 ⟦LNKn⟧ 占位符必须原样保留,不要翻译或替换;占位符所在的锚文本请翻译成中文。 5. 代码块内的命令、参数、路径、变量名、YAML/Markdown 示例内容一律原样保留,不要翻译;行内代码(反引号内)原样保留。 6. 产品名、命令名、文件名、GitHub 术语(PR、branch protection、worktree 等)可保留英文或在首次出现时给出中文说明。 原文: [[1]] # A practical guide to shipping with Claude Code [[2]] After you open a pull request, hand the follow up to Claude Code using /ship. Here's how to dial in your preferences to stay in flow. [[3]] Addy Osmani [[4]] Nov 24, 2026 [[5]] - The post-PR process - On your own PRs - Getting started today with /code-review - Run /ship for your next PR - /steward for existing PRs - Claude escalates bigger calls to you - In your repo - Repeat comments become review rules - Repeat setup becomes verify skills - Repeat PR maintenance becomes steward rules - Across your team's PRs - Standardizing the post-PR process - Configure your first approval policy - Monitoring and transitioning to enforcement - Things to try this week [[6]] When you open a pull request, there's usually a bunch of follow-up work to be done: [[7]] - CI fails - A review comes back with six comments - A main merge creates a conflict [[8]] They're all tiny little tasks, but each one takes you off your focus work. [[9]] On the Claude Code team, an agent commonly does this follow-up work. For example, it can pick up an issue a reviewer found, so when the author gets back, the PR has already been updated once. [[10]] In my experience this is a more productive and enjoyable way to code. It minimizes context switching and keeps me in a flow state. [[11]] We've talked about the process the Claude Code team uses for code review ⟦LNK1⟧, and about the verification process underneath it ⟦LNK2⟧. **This post is about getting your own repository set up to do this** using some of the new functionality we recently added with the ⟦LNK3⟧. [[12]] It's for a developer or tech lead whose team works on GitHub and who doesn't have admin privileges. You can start on your own right now by running a few commands, and save what you learn to files in your repo for the team to review. Admins only need to get involved if your team wants agents doing this automatically on the team's PRs. [[13]] You're still the architect of the process, so you're defining what to build, how to build it, and what the bar for merging is. [[14]] ## THE POST-PR PROCESS [[15]] After you've opened a PR, you want to find issues, address issues, and make a final decision on if the change can be merged. [[16]] Claude Ship is three agents that tackle this work: Code Review, PR Steward (beta), and Claude Approvals (beta). Code Review is generally available, and the other two are in beta. `/ship` is a command you run yourself in Claude Code to try Claude Ship on your own pull requests. It comes with the latest version of Claude Code, and it works even before an admin has turned on any of the agents. You can partially automate the first two steps today. The last step is a decision that you set in your branch protections and (if your team adopts one) your policy file. Here is how it breaks down using the three agents that are part of Claude Ship: [[17]] | You want Claude to | Run | Where it runs | | --- | --- | --- | | Find bugs before anyone else looks | `/code-review` | Your session | | Open a PR, review it and keep working on what comes back | `/ship` | Your session | | Look after a PR you already opened | `/steward` | Your session | | Do this across a team's PRs automatically | Claude Ship | Anthropic's cloud by default, set up by your team | [[18]] ## ON YOUR OWN PRS [[19]] ### Getting started today with `/code-review` [[20]] If you only do one thing from this post, review your branch before you push it. Bugs you catch here are less likely to come back as review comments or failed checks that pull you off your next task. At the Claude Code prompt, enter this command: [[21]] ``` /code-review ``` [[22]] It reviews the commits on your branch and your uncommitted changes for correctness bugs. A few variations to keep in mind: [[23]] ``` /code-review high 1234 # review PR 1234 at high effort /code-review --fix # apply the findings to your working tree /code-review --comment 1234 # post the findings on the PR /code-review ultra # run a deeper review in the cloud ``` [[24]] The effort goes from low to max. At low you only see the findings the review is most sure about. Go higher and you see more, including some it's less sure about. Claude remembers the last level you used, so if the risk changes, set it again. [[25]] A few caveats: [[26]] - You will want to take extra care when using the ultra setting, which runs in the cloud, needs a login at claude.ai, and can be billed separately from your plan. Read the ⟦LNK4⟧ before trying it. - Edits made by `--fix` during a background review may not be caught by `/rewind`. Commit first if you want an easy way back. - Local `/code-review` reads your `CLAUDE.md` files, but not `REVIEW.md`. This matters later. [[27]] The first thing you should do is run `/code-review` a few times to understand what it catches and where it gets things wrong. You'll use this later. [[28]] ### Run `/ship` for your next PR [[29]] Once you're ready, type: [[30]] ``` /ship ```

ChatGPT [[1]] [2]]提交 Pull Request(PR)后,使用/ship将后续工作交给 Claude Code。下面介绍如何调整偏好设置,让你始终保持专注、高效的工作状态。 [3]]Addy Osmani [4]]2026 年 11 月 24 日 [5]] - PR 提交后的工作流程 - 处理自己的 PR - 今天就开始使用/code-review - 在下一个 PR 中运行 - 使用/steward管理现有 PR - 遇到重大决策时,Claude 会升级并交由你处理 - 在你的代码仓库中 - …

Read conversation
1 AI answers