AGENT SKILL

PR 摘要与描述草稿生成

pr-draft-summary

在 openai-guardrails-python 的运行时、测试、示例、构建/测试配置或影响行为的文档发生变更后,生成符合要求的 PR 摘要区块、分支建议、标题及描述草稿。

License 许可
MIT
最近更新
2026-11-11
Stars
★ 267
Forks
52

01 前言 Front Matter

name
pr-draft-summary
description
Create the required PR-ready summary block, branch suggestion, title, and draft description for openai-guardrails-python after runtime, tests, examples, build/test configuration, or behavior-impacting docs change.

02 资源文件 1

03 SKILL.md 正文

PR Draft Summary

Purpose

Produce a concise, copy-ready branch suggestion, PR title, and description for OpenAI Guardrails Python. This skill creates text only. It never authorizes creating a branch, committing, pushing, opening a pull request, or mutating GitHub.

When to trigger

  • Run after applicable final review and verification when the task changed src/guardrails/, mcp_server/, tests/, examples/, build/test configuration, or behavior-impacting docs.
  • Run for eligible local-only or uncommitted work even when the user did not ask to open a pull request.
  • Skip for repository metadata, editorial docs, conversation-only work, or when the user explicitly asks not to include a PR draft.

Inputs to collect automatically

  • Current branch: git branch --show-current.
  • Repository state: git status --short.
  • Untracked files: git ls-files --others --exclude-standard.
  • Staged and unstaged paths and statistics.
  • Base reference: the branch upstream when configured, otherwise local main, otherwise origin/main.
  • Merge base and commits ahead of that base.
  • Latest local release tag when compatibility context matters; label it potentially stale when remote tags were not refreshed.
  • Category signals:
    • Runtime: src/guardrails/, mcp_server/.
    • Tests: tests/.
    • Examples: examples/.
    • Docs: docs/, mkdocs.yml.
    • Build/test configuration: pyproject.toml, uv.lock, Makefile, .github/.

Do not ask the user for information that can be derived from the repository.

Workflow

  1. Resolve the base and inspect committed, staged, unstaged, and untracked task content.
  2. If there are no task changes and no commits ahead of the base, report that no code changes were detected and do not emit the PR block.
  3. Classify the work as feature, fix, refactor/performance, docs-with-impact, or repository tooling.
  4. Flag backward-compatibility risk only when the diff changes a released public API, external configuration, persisted data, serialized state, or wire protocol.
  5. Summarize the complete change in one to three sentences. Include untracked deliverables because ordinary diff statistics omit them.
  6. Choose a branch name:
    • Keep the current non-main, non-detached branch when it already describes the task.
    • Otherwise suggest feat/<slug>, fix/<slug>, docs/<slug>, or chore/<slug>.
    • Never suggest HEAD.
  7. Use an imperative title with a conventional prefix when useful.
  8. Start the description with This pull request adds ..., fixes ..., improves ..., or updates ....
  9. Explain the motivation, complete behavioral change, and compatibility considerations. Do not list tests unless the user asks.
  10. Normalize GitHub references: #123 for this repository and owner/repo#123 for another repository. Remove Markdown-linked issue/PR labels, bare issue/PR URLs, local paths, Codex citations, and app directives.
  11. Return the following block in English.

Output format

# Pull Request Draft

## Branch name suggestion

git checkout -b <kebab-case branch>

## Title

<single-line imperative title>

## Description

<copy-ready description beginning with "This pull request ...">

Keep the block tight and avoid repeating the same information in multiple sections.

04 同仓库更多 Skills

openai
openai/openai-guardrails-python

GitHub 项目维护者评审

maintainer-review

以维护者身份评估 openai-guardrails-python 的 GitHub issue 或拉取请求(PR)。用于核实所声称的需求及其实际影响,比较受支持的替代方案或相互竞争的实现路径,区分代码质量与仓库就绪度,推荐维护者应采取的行动,并在需要补充证据、修改或关闭时起草可直接使用的评论。

软件开发工程师代码仓库协作管理
★ 267
openai
openai/openai-guardrails-python

兼容性实现策略制定

implementation-strategy

为 openai-guardrails-python 中的运行时和 API 变更选择兼顾兼容性的实施范围。在初始实现前以及每一轮评审反馈后使用,用于决定是打补丁、重置设计、保持兼容性,还是拒绝不受支持的场景。

软件开发工程师代码实现
★ 267
openai
openai/openai-guardrails-python

代码实现启动与交接

implementation-kickoff

启动并推进一个明确调用的 openai-guardrails-python 实现任务,使用全新隔离的 worktree 和本地 PR-ready 交接。获取最新的 origin/main,保持任务变更未提交,在最终审查前将其重放到最新 main 上,运行适用的验证和 $implementation-final-review,使用 $pr-draft-summary 生成完整的 PR 草稿和分支名,然后在适用时创建一个干净的本地提交并附带接管来源。仅在用户明确调用此技能时使用;绝不 push、创建 PR 或修改 GitHub。

软件开发工程师代码实现
★ 267
openai
openai/openai-guardrails-python

代码实施最终评审

implementation-final-review

在实施完成前执行仓库的风险分级独立最终审查。仅在明确调用时,或仓库指令要求在影响行为的实现工作后执行时使用;在最终验证前,审计完整任务 diff、受支持的契约、生命周期与安全边界、复杂性和测试。

软件开发工程师代码实现
★ 267
openai
openai/openai-guardrails-python

发布候选版审查

final-release-review

审查 openai-guardrails-python 的发布计划或最终发布候选版本与前一个远程标签的对比,确定兼容的发布类型,审计运行时与打包风险,检查当前 CI,并生成英文的发布/阻断报告。用于发布前准备度检查,不用于普通 PR 审查或实施工作。

SRE 工程师部署与发布管理
★ 267
openai
openai/openai-guardrails-python

代码变更强制验证

code-change-verification

当变更影响 OpenAI Guardrails Python 仓库中的运行时代码、测试、示例或构建与测试行为时,运行强制验证栈。

测试工程师测试与质量保障
★ 267