home / skills / openai / skills / yeet
This skill orchestrates staging, committing, pushing, and PR creation via gh in one fluent flow for Git workflows.
npx playbooks add skill openai/skills --skill yeetReview the files below or copy the command above to add this skill to your agents.
---
name: "yeet"
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`)."
---
## 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.
This skill automates a single flow to stage, commit, push, and open a GitHub pull request using the GitHub CLI (gh). It enforces repository conventions for branch names, commit messages, and PR content so changes are consistent and review-ready. Use it only when you explicitly ask to perform the full staging-to-PR flow in one command sequence.
The skill first verifies that the GitHub CLI is installed and that the user is authenticated with gh. It creates a codex-style branch when starting from the default branch, stages all changes, makes a terse commit, runs checks, pushes the branch with tracking, and opens a draft pull request via gh. The PR body is composed as real markdown with full newlines and detailed prose describing the issue, root cause, fix, and validation steps.
What if gh is not installed or I am not authenticated?
The skill will stop and prompt you to install gh (gh --version) or run gh auth login, and to re-run gh auth status before continuing.
How are branch names, commits, and PR titles formed?
Branches follow codex/{description} when starting from default; commits use the terse description; PR titles use the pattern [codex] {description} and the body is detailed markdown covering issue, root cause, fix, and validation.