pr-draft-summary by openai/openai-agents-python
npx skills add https://github.com/openai/openai-agents-python --skill pr-draft-summary在此仓库的实质性代码工作完成后,生成 PR 就绪的摘要:包含简洁的摘要以及以 "This pull request ..." 开头的 PR 就绪标题和草案描述。该区块应准备好可以粘贴到 openai-agents-python 的 PR 中。
git rev-parse --abbrev-ref HEAD。git status -sb。git ls-files --others --exclude-standard(与 git status -sb 结合使用以确保它们被列出;--stat 不包含它们)。git diff --name-only(未暂存)和 git diff --name-only --cached(已暂存);大小通过 和 获取。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
git diff --statgit diff --stat --cachedLATEST_RELEASE_TAG=$(.agents/skills/final-release-review/scripts/find_latest_release_tag.sh origin 'v*' 2>/dev/null || git tag -l 'v*' --sort=-v:refname | head -n1)。origin/main):
BASE_REF=$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || echo origin/main)。BASE_COMMIT=$(git merge-base --fork-point "$BASE_REF" HEAD || git merge-base "$BASE_REF" HEAD || echo "$BASE_REF")。git log --oneline --no-merges ${BASE_COMMIT}..HEAD。src/agents/)、测试(tests/)、示例(examples/)、文档(docs/, mkdocs.yml)、构建/测试配置(pyproject.toml, uv.lock, Makefile, .github/)。BASE_REF/BASE_COMMIT,以便后续命令复用它们。${BASE_COMMIT} 的提交,则简要回复未检测到代码更改,并跳过输出 PR 区块。LATEST_RELEASE_TAG 判断该风险,而非未发布的仅分支变更。git diff --stat 输出,用 1-3 个短句总结变更;明确列出 git status -sb/git ls-files --others --exclude-standard 中的未跟踪文件,因为 --stat 不包含它们。如果工作树是干净的,但有领先于 ${BASE_COMMIT} 的提交,则使用这些提交消息进行总结。adds,错误修复 → fixes,重构/性能 → improves 或 updates,纯文档 → updates。feat/<slug>、fix/<slug> 或 docs/<slug>(例如,docs/pr-draft-summary-guidance)。issue-<number>(仅数字),则保留该分支建议。如果可用,可选地获取轻量级问题上下文(例如通过 GitHub API),但如果不可用,不要阻塞或重试。当存在问题时,引用 https://github.com/openai/openai-agents-python/issues/<number> 并包含一个自动关闭行,例如 This pull request resolves #<number>.。在结束任务时,除非任务属于文档记录的跳过情况或用户表示不想要,否则在任何简短的备注信息后添加此简洁的 Markdown 区块(仅英文)。
# Pull Request Draft
## Branch name suggestion
git checkout -b <kebab-case suggestion, e.g., feat/pr-draft-summary-skill>
## Title
<single-line imperative title, which can be a commit message; if a common prefix like chore: and feat: etc., having them is preferred>
## Description
<include what you changed plus a draft pull request title and description for your local changes; start the description with prose such as "This pull request resolves/updates/adds ..." using a verb that matches the change (you can use bullets later), explain the change background (for bugs, clearly describe the bug, symptoms, or repro; for features, what is needed and why), any behavior changes or considerations to be aware of, and you do not need to mention tests you ran.>
保持简洁——区块周围不要有冗余的文字,避免在 Changes 和描述之间重复细节。除非特别要求,否则不需要列出测试。
每周安装次数
109
仓库
GitHub 星标数
20.3K
首次出现
2026年1月24日
安全审计
安装于
opencode102
github-copilot101
gemini-cli99
codex99
cursor97
amp92
Produce the PR-ready summary required in this repository after substantive code work is complete: a concise summary plus a PR-ready title and draft description that begins with "This pull request ...". The block should be ready to paste into a PR for openai-agents-python.
git rev-parse --abbrev-ref HEAD.git status -sb.git ls-files --others --exclude-standard (use with git status -sb to ensure they are surfaced; --stat does not include them).git diff --name-only (unstaged) and git diff --name-only --cached (staged); sizes via git diff --stat and git diff --stat --cached.LATEST_RELEASE_TAG=$(.agents/skills/final-release-review/scripts/find_latest_release_tag.sh origin 'v*' 2>/dev/null || git tag -l 'v*' --sort=-v:refname | head -n1).origin/main):
BASE_REF=$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || echo origin/main).BASE_COMMIT=$(git merge-base --fork-point "$BASE_REF" HEAD || git merge-base "$BASE_REF" HEAD || echo "$BASE_REF").git log --oneline --no-merges ${BASE_COMMIT}..HEAD.src/agents/), tests (tests/), examples (examples/), docs (docs/, mkdocs.yml), build/test config (pyproject.toml, uv.lock, Makefile, .github/).BASE_REF/BASE_COMMIT first so later commands reuse them.${BASE_COMMIT}, reply briefly that no code changes were detected and skip emitting the PR block.LATEST_RELEASE_TAG, not unreleased branch-only churn.git diff --stat output; explicitly call out untracked files from git status -sb/git ls-files --others --exclude-standard because --stat does not include them. If the working tree is clean but there are commits ahead of , summarize using those commit messages.When closing out a task, add this concise Markdown block (English only) after any brief status note unless the task falls under the documented skip cases or the user says they do not want it.
# Pull Request Draft
## Branch name suggestion
git checkout -b <kebab-case suggestion, e.g., feat/pr-draft-summary-skill>
## Title
<single-line imperative title, which can be a commit message; if a common prefix like chore: and feat: etc., having them is preferred>
## Description
<include what you changed plus a draft pull request title and description for your local changes; start the description with prose such as "This pull request resolves/updates/adds ..." using a verb that matches the change (you can use bullets later), explain the change background (for bugs, clearly describe the bug, symptoms, or repro; for features, what is needed and why), any behavior changes or considerations to be aware of, and you do not need to mention tests you ran.>
Keep it tight—no redundant prose around the block, and avoid repeating details between Changes and the description. Tests do not need to be listed unless specifically requested.
Weekly Installs
109
Repository
GitHub Stars
20.3K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode102
github-copilot101
gemini-cli99
codex99
cursor97
amp92
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
163,300 周安装
${BASE_COMMIT}adds, bug fix → fixes, refactor/perf → improves or updates, docs-only → updates.feat/<slug>, fix/<slug>, or docs/<slug> based on the primary area (e.g., docs/pr-draft-summary-guidance).issue-<number> (digits only), keep that branch suggestion. Optionally pull light issue context (for example via the GitHub API) when available, but do not block or retry if it is not. When an issue number is present, reference https://github.com/openai/openai-agents-python/issues/<number> and include an auto-closing line such as This pull request resolves #<number>..