Skip to content
Back to skills

415 Commit Push Pr B2b3d4bf

ASecurity

Commit staged changes, push to remote, and create a pull request

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbashgit

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 415-commit-push-pr_b2b3d4bf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 415 Commit Push Pr B2b3d4bf?

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

Security grade badge for 415 Commit Push Pr B2b3d4bf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-415-commit-push-pr-b2b3d4bf/badge)](https://www.skillsdirectory.com/skills/tools-only-415-commit-push-pr-b2b3d4bf)

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

SKILL.md
---
allowed-tools: Bash(git:*), Bash(gh:*)
description: Commit staged changes, push to remote, and create a pull request
argument-hint: [optional PR title or description hint]
---

## Context

- Current branch: !`git branch --show-current`
- Default branch: !`git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d' ' -f5 || echo "main"`
- Git status: !`git status --short`
- Staged diff: !`git diff --cached`
- Unstaged diff: !`git diff`
- Commits ahead of origin: !`git log @{u}..HEAD --oneline 2>/dev/null || echo "No upstream branch"`
- Recent commits for style: !`git log --oneline -5`

## Task

Execute the full git workflow:

1. **Commit**: If there are staged changes, create a conventional commit
2. **Push**: Push the current branch to origin (set upstream if needed)
3. **PR**: Create a pull request using `gh pr create`
   - Auto-generate title from commits
   - Include a summary of changes in the PR body
   - Link any related issues mentioned in commits

If any step fails, stop and report the issue.

$ARGUMENTS

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.

Comments

Loading comments…