用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coder/coder-k8s --skill pull-requests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pull-requests |
| description | Guidelines for creating and managing Pull Requests in this repo |
Public work (issues/PRs/commits) must use 🤖 in the title and include this footer in the body:
---
_Generated with `mux` • Model: `<modelString>` • Thinking: `<thinkingLevel>` • Cost: `$<costs>`_
<!-- mux-attribution: model=<modelString> thinking=<thinkingLevel> costs=<costs> -->
Always check $MUX_MODEL_STRING, $MUX_THINKING_LEVEL, and $MUX_COSTS_USD via bash before creating or updating PRs—include them in the footer if set.
main.main before submitting a new PR.main yourself. The user must explicitly merge PRs../scripts/wait_pr_checks.sh <pr_number> is optional../scripts/wait_pr_ready.sh <pr_number> (Codex wait first, CI checks second).make verify-vendor, make test, make build) to catch issues early.| Field | Value | Meaning |
|---|---|---|
mergeable | MERGEABLE | Clean, no conflicts |
mergeable | CONFLICTING | Needs resolution |
mergeStateStatus | CLEAN | Ready to merge |
mergeStateStatus | BLOCKED | Waiting for CI |
mergeStateStatus | BEHIND | Needs rebase |
mergeStateStatus | DIRTY | Has conflicts |
If behind: git fetch origin && git rebase origin/main && git push --force-with-lease.
When posting multi-line comments with gh (e.g., @codex review), do not rely on \n escapes inside quoted --body strings (they will be sent as literal text). Prefer --body-file - with a heredoc to preserve real newlines:
gh pr comment <pr_number> --body-file - <<'EOF'
@codex review
<message>
EOF
Use these scripts to check, resolve, and wait on Codex review comments:
./scripts/check_codex_comments.sh <pr_number> — Lists unresolved Codex comments (both regular comments and review threads). Outputs thread IDs needed for resolution.
./scripts/resolve_pr_comment.sh <thread_id> — Resolves a review thread by its ID (e.g., PRRT_abc123).
./scripts/wait_pr_codex.sh <pr_number> — Waits for Codex to respond to the latest @codex review request. When the PR looks good, Codex leaves an explicit approval comment (e.g., it will say Didn't find any major issues).
./scripts/wait_pr_ready.sh <pr_number> — Convenience wrapper that runs Codex waiting first and CI checks second. Use it when you are done coding and want to block until the PR is ready or actionable feedback appears.
When Codex leaves review comments, you must address them before the PR can merge:
./scripts/resolve_pr_comment.sh <thread_id>@codex review to re-request review../scripts/wait_pr_codex.sh <pr_number> to wait for the next Codex response (either new comments to address, or an explicit approval comment).Completion criteria are strict: you MUST continue this loop until Codex explicitly approves, all Codex review threads are resolved, and all required CI checks pass. You MUST NOT mark work complete earlier.
After a PR is open, you MUST stay in a review loop until those completion criteria are met:
@codex review../scripts/wait_pr_codex.sh <pr_number> and wait for Codex to respond../scripts/wait_pr_checks.sh <pr_number> and wait for required checks to pass.The only early-stop exception is when a reviewer is clearly misunderstanding the change intent and further edits would be counterproductive. In that case, leave a clarifying PR comment and pause for human direction.
perf|refactor|fix|feat|ci|tests|bench🤖 fix: handle workspace rename edge casestests: for test-only changes (test helpers, flaky test fixes, storybook)ci: for CI config changesPR bodies should generally follow this structure; omit sections that are N/A or trivially inferable for the change.
ran tests; include this section only for novel, change-specific stepsOnce the code is pushed to the remote (even if not yet a Pull Request), do your best to commit and push all changes before responding to ensure its visible to the user. Commits on the working branch are for yourself to understand the change, they do not have to follow repository conventions as the PR body and title become the commit subject and body respectively.
Whenever generating a compaction summary, include whether or not a Pull Request was opened and the general state of the remote (e.g. CI checks, known reviews, divergence).