Skip to content
Back to skills

701 Pr 4cd6fc20

ASecurity

Complete workflow: commit, push, and create Pull Request

  • 11 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 11, 2026
toolsbashtestinggit

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 701-pr_4cd6fc20 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 701 Pr 4cd6fc20?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 701 Pr 4cd6fc20
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-701-pr-4cd6fc20/badge)](https://www.skillsdirectory.com/skills/tools-only-701-pr-4cd6fc20)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
description: "Complete workflow: commit, push, and create Pull Request"
argument-hint: Optional PR title or target branch
allowed-tools: Bash, Read, Grep, Glob, TodoWrite, AskUserQuestion
---

# Git PR

Complete git workflow from local changes to Pull Request.

## Phase 1: Pre-flight Check

**Actions**:
1. `git status` - check for changes
2. `git branch --show-current` - get current branch
3. Warn if on main/master branch
4. Check remote tracking: `git rev-parse --abbrev-ref @{u}`

## Phase 2: Commit Changes

**If uncommitted changes exist**:
- Follow `/git:commit` workflow
- Skip if no changes

## Phase 3: Push to Remote

**Actions**:
1. Check remote branch: `git ls-remote --heads origin <branch>`
2. If not exists: `git push -u origin <branch>`
3. If exists: `git push`
4. Handle push conflicts (suggest `git pull --rebase`)

## Phase 4: Create Pull Request

**Actions**:
1. Determine target branch (default: main, or from `$ARGUMENTS`)
2. Get commits: `git log main..<branch> --oneline`
3. Generate PR content:
   ```markdown
   ## Summary
   - Key changes description

   ## Changes
   - List based on commits

   ## Testing
   - How to verify
   ```
4. Create PR:
   ```bash
   gh pr create --title "<title>" --body "<body>" --base <target>
   ```
5. Return PR URL

## Error Handling

| Situation | Action |
|-----------|--------|
| No `gh` CLI | Provide manual instructions |
| Push rejected | Suggest `git pull --rebase` |
| On main branch | Ask to create feature branch first |

## Output Language

- Status messages: Chinese
- PR title/body: English

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.