openai/skills

yeet

把选定改动提交推送并交到GitHub PR

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

yeet 是什么?

在用户明确请求完整Git发布流程时,使用Git与GitHub CLI依次暂存、提交、推送并创建或更新PR。它会发现仓库PR模板,新PR默认draft,已有PR保持原来的评审状态。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 用户明确要求用 GitHub CLI 一次完成暂存、提交、推送并创建或更新 Pull Request。

这些情况不适合

  • 只是要求检查 PR、运行测试或修改代码而没有要求提交、推送和开 PR;来源限定为用户明确授权的完整发布流程。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 yeet,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 yeet

请在 Codex 的当前工作环境中安装并检查 yeet 这个 Skill。

项目身份:openai/skills / yeet
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/yeet/SKILL.md
已定位的源文件:skills/.curated/yeet/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 需要Git仓库、gh CLI及有效登录;用户明确请求stage、commit、push和PR整套流程,先确认工作区所有变更是否都在范围内。

会得到什么

  • 实际提交、远程分支和PR链接,以及完成检查与阻塞状态。

实际使用顺序

  1. 检查当前分支和状态;在默认分支时另建分支,仔细确认来源中的git add -A会包含全部改动。
  2. 提交、运行必要检查并推送跟踪分支;遇到权限、分支或冲突问题依据实际状态处理,不能机械跨分支pull。
  3. 读取唯一适用PR模板,先查当前分支是否已有PR,更新现有或创建draft;标题正文围绕最终差异,保留已有有用内容。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:我明确要用yeet完成当前分支的提交、推送和PR,但先核对git status与diff。只允许本任务的两个文件;若存在其他未提交改动,先报告差异,不直接git add -A。检查通过后推送本分支,读取PR模板并复用已有PR;新建才用draft,不改已有PR的ready/draft状态。
预期结果

预期在范围明确时完成提交与PR,存在混杂改动则先报告;本站未推送代码。

使用前先看这些限制

使用条件与边界

  • 源文件的全量暂存和认证失败后pull建议不能不加判断照搬到脏工作区;必须符合用户的具体文件范围与分支要求。
针对这个 Skill 的疑问

常见问题

只说帮我修代码会自动推送吗?

不会。来源明确限定用户请求提交、推送和PR整套流程时触发。

已有PR会被改成草稿吗?

不应当。新PR默认draft,已有PR的评审状态必须保留。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/yeet/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).

查看源文件章节 / Source sections
  • 前置条件 / Prerequisites
  • 原文:Naming conventions
  • 原文:PR template discovery
  • 工作流程 / Workflow
  • 原文:Determining the PR
  • 原文:PR Title
  • 示例 / Example
  • 原文:PR Body Contents
  • 原文:Suggested PR Body Shape
前置条件 / Prerequisites

- Require GitHub CLI `gh`. Check `gh --version`. If missing, ask the user to install `gh` and stop. - Require authenticated `gh` session. Run `gh auth status`. If not authenticated, ask the user to run `gh auth login` (and re-run `gh auth status`) before continuing.

原文:Naming conventions

- Branch: `{description}` when starting from main/master/default. - Commit: `{description}` (terse). - PR title: `{description}` summarizing the full diff.

原文:PR template discovery

Before creating the PR, resolve the repository root and look for the active GitHub PR template from there: ```shell repo_root="$(git rev-parse --show-toplevel)" ``` Template candidates, in order: - `.github/pull_request_template.md` - `.github/PULL_REQUEST_TEMPLATE.md` - One `*.md` file under `.github/pull_request_template/` - One `*.md` file under `.github/PULL_REQUEST_TEMPLATE/` Use paths as emitted from the repository root, such as `.github/pull_request_template.md`, not `./.github/pull_request_template.md`. If exactly one template is found, read it before composing the final PR body and pass it to `gh pr create` with `--template "$template"`. If multiple template files are found, stop before PR creation and ask which template to use. If no template exists, use the fallback body shape in this skill.

工作流程 / Workflow

- If on main/master/default, create a branch: `git checkout -b "{description}"` - Otherwise stay on the current branch. - Confirm status, then stage everything: `git status -sb` then `git add -A`. - Commit tersely with the description: `git commit -m "{description}"` - Run checks if not already. If checks fail due to missing deps/tools, install dependencies and rerun once. - Push with tracking: `git push -u origin $(git branch --show-current)` - If git push fails due to workflow auth errors, pull from master and retry the push. - Discover and read the repository PR template, if any. - Check whether the current branch already has a PR: `gh pr view "$(git branch --show-current)" --json number,isDraft,url` - If a PR already exists, update that PR in place. Do not create another PR, and do not change whether the existing PR is draft or ready for review. - If no PR exists, open a new draft PR: - With one template: `GH_PROMPT_DISABLED=1 GIT_TERMINAL_PROMPT=0 gh pr create --draft --fill --template "$template" --head "$(git branch --show-current)"` - Without a template: `GH_PROMPT_DISABLED=1 GIT_TERMINAL_PROMPT=0 gh pr create --draft --fill --head "$(git branch --show-current)"` - Edit the PR title and body so they reflect the actual net change in the diff. - Write the PR description to a temp file with real newlines and pass it via `--body-file` or `gh pr edit --body-file` to avoid `\n`-escaped markdown.

原文:Determining the PR

When updating a PR created earlier in the flow, infer the PR from the current branch when possible: ```shell git branch --show-current gh pr view "$(git branch --show-current)" --json number --jq '.number' ``` If this finds an existing PR, preserve its current review state. Never convert an existing ready-for-review PR back to draft as part of `yeet`; only new PRs created by this flow should start as draft.

原文:PR Title

Format: `<type>(<scope>): <subject>` `<scope>` is optional. A scope consist of a noun describing a section of the codebase (component, service or subsytem).

文件 SHA256:4829d4909081e1abf91507fb581e6f566ce7064001892414f32191895b08a595

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/yeet/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源