Agent skill

pr

PR workflow - validate, branch, commit, push, PR, checkout main, rebase, squash merge. Use when submitting changes.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-ahmadawais-skills

Metadata

Additional technical details for this skill

author
ahmadawais
version
0.0.1

SKILL.md

PR Workflow

Steps

  1. Validate: pnpm build

  2. Branch: Ask user or suggest (fix/, feat/, refactor/, docs/)

    bash
    git checkout -b {branch-name}
    
  3. Commit: Stage specific files, use emoji-log format

    • FIX: | NEW: | IMPROVE: | DOC:
    bash
    git add {files} && git commit -m "$(cat <<'EOF'
    FIX: Description
    EOF
    )"
    
  4. Push: git push -u origin {branch}

  5. PR:

    bash
    gh pr create --title "FIX: Description" --body "$(cat <<'EOF'
    ## Summary
    - Changes
    
    ## Test plan
    - [ ] Tests
    EOF
    )"
    
  6. Main: git checkout main && git pull --rebase origin main

  7. Merge: Ask user, then:

    bash
    gh pr merge {number} --squash --delete-branch
    git pull --rebase origin main
    

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results