yeet
它能做什么
这个技能指导智能体完整走完从本地修改到发起拉取请求的全过程。适合希望一步完成这些操作的开发者。
适用场景
- ✓当你希望把当前修改提交、推送并发起一个拉取请求时。
- ✓当你位于主分支,需要为修改新建一个分支时。
- ✓当你需要一个标题和描述都与完整修改相符的拉取请求时。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/yeet/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我一步完成这些修改:提交、推送分支,并发起拉取请求。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体先检查 GitHub CLI 是否已安装并已登录,必要时新建分支,然后提交、推送,并发起一个草稿拉取请求。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Prerequisites
- Require GitHub CLI
gh. Checkgh --version. If missing, ask the user to installghand stop. - Require authenticated
ghsession. Rungh auth status. If not authenticated, ask the user to rungh auth login(and re-rungh auth status) before continuing.
Naming conventions
- Branch:
codex/{description}when starting from main/master/default. - Commit:
{description}(terse). - PR title:
[codex] {description}summarizing the full diff.
Workflow
- If on main/master/default, create a branch:
git checkout -b "codex/{description}" - Otherwise stay on the current branch.
- Confirm status, then stage everything:
git status -sbthengit 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.
- Open a PR and edit title/body to reflect the description and the deltas:
GH_PROMPT_DISABLED=1 GIT_TERMINAL_PROMPT=0 gh pr create --draft --fill --head $(git branch --show-current) - Write the PR description to a temp file with real newlines (e.g. pr-body.md ... EOF) and run pr-body.md to avoid \n-escaped markdown.
- PR description (markdown) must be detailed prose covering the issue, the cause and effect on users, the root cause, the fix, and any tests or checks used to validate.
常见问题
需要 GitHub CLI 吗?
需要。技能要求已安装 gh,并且有已完成身份验证的会话。
这是草稿拉取请求吗?
是的。技能中使用的命令会把拉取请求创建为草稿。
是否只在用户要求时运行?
是的。技能说明,只有当用户明确要求完整流程时才使用它。
详情
作者的原始描述
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`).
热度
- GitHub 星标
- 33k
- 排名
- #9117
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。