prepare-pull-request
Installation
SKILL.md
Prepare Pull Request Workflow
Complete workflow for preparing PR branches: analyze changes first, stash with readable message, sync main branch, create/switch branch, review changes, run quality checks, commit, and push.
Workflow Steps
1. Repository State Detection
First step: Detect current state before any operation.
git rev-parse --abbrev-ref HEAD # Returns branch name, or "HEAD" when detached
git symbolic-ref -q HEAD # Exit 0 if on branch, 128 if detached HEAD
States:
- On branch:
git rev-parse --abbrev-ref HEADreturns branch name (e.g.main,feat/foo) - Detached HEAD: Returns
HEAD. Check withgit symbolic-ref -q HEAD(non-zero exit = detached)
Related skills
More from curev/skills
up-deps
Update project dependencies using taze, a modern CLI tool that keeps deps fresh. Supports monorepos, version range updates, and automatic installation. Use when updating dependencies, upgrading packages, or keeping packages up-to-date.
8vue-jsx-best-practices
Exclusive style guide for writing Vue 3 JSX using SFC with <script lang="tsx">, defineComponent, and render functions. Use when working with Vue 3 JSX/TSX components.
2