con un clic
draft-pr
// Push current changes and create a draft Pull Request on GitHub. This skill should be used when the user asks to create a PR, draft PR, or invokes /draft-pr.
// Push current changes and create a draft Pull Request on GitHub. This skill should be used when the user asks to create a PR, draft PR, or invokes /draft-pr.
Build and run the Jetpack Android app on a device or emulator. This skill should be used when the user asks to run the app, launch the app, or invokes /run-app.
Run all three code quality checks (detekt, checkstyle, lint), read the reports, and propose fixes for any issues found.
| name | draft-pr |
| description | Push current changes and create a draft Pull Request on GitHub. This skill should be used when the user asks to create a PR, draft PR, or invokes /draft-pr. |
Push current changes and create a draft Pull Request on GitHub.
Run git status and git diff to understand what is staged, unstaged,
and untracked. Run git log to review recent commit messages and the
repository's commit message style.
Before committing or pushing, present a summary of the changes and ask the user for explicit permission to proceed with the commit and push.
If there are uncommitted changes:
git add -A or git add . to
prevent accidentally including secrets or large binaries)..env,
credentials.json, etc.). Warn the user if they specifically request
to commit those files.Push the current branch to the remote with the -u flag to set up
tracking if needed.
Identify the base branch (typically trunk). Run git merge-base to
find the common ancestor. Then run:
git log <merge-base>..HEAD --oneline
git diff <merge-base>..HEAD
Review ALL commits on the branch (not just the latest) to understand the full scope of changes.
For each file changed on the branch, read the full file to understand the surrounding context beyond just the diff hunks.
Follow these rules:
cmm-1234 from feature/cmm-1234-some-description). If found,
prefix the PR title with it in uppercase: CMM-1234: Title here. If
the branch name does not contain a recognizable Linear identifier,
omit the prefix..github/PULL_REQUEST_TEMPLATE.md and follow its structure and
formatting instructions for the PR body.Output the PR title and full description as raw markdown inside a code block so the user can review and copy it. Ask the user to confirm or request changes before creating the PR.
Once approved, create the PR using gh pr create --draft with a HEREDOC
for the body:
gh pr create --draft --title "the pr title" --body "$(cat <<'EOF'
## Description
...
## Testing instructions
...
EOF
)"
Output the PR URL and, if running in a local GUI environment, attempt to open it in the user's browser.
push --force, reset --hard,
etc.) unless the user explicitly requests them.--no-verify) unless the user explicitly requests
it.main or trunk directly.--draft flag).