跳到正文
Skillpedia
部署与云(DevOps)33k · #9117

yeet

它能做什么

这个技能指导智能体完整走完从本地修改到发起拉取请求的全过程。适合希望一步完成这些操作的开发者。

适用场景

  • ✓当你希望把当前修改提交、推送并发起一个拉取请求时。
  • ✓当你位于主分支,需要为修改新建一个分支时。
  • ✓当你需要一个标题和描述都与完整修改相符的拉取请求时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/yeet/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/yeet/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我一步完成这些修改:提交、推送分支,并发起拉取请求。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体先检查 GitHub CLI 是否已安装并已登录,必要时新建分支,然后提交、推送,并发起一个草稿拉取请求。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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: 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 -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.
  • 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`).

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#9117
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能