AeroTools
Home AI Prompts Claude Code Skill (Slash Comma...

Claude Code Skill (Slash Command): push-and-pull-request.md

chatgpt • development • 16 uses
Free
What is this prompt for?

Turns a coding request into a specification the model can actually work from, rather than a general description that comes back not compiling.

What it actually does: allowed-tools, Bash(git add, ), Bash(git status, ), Bash(git commit, ), Bash(git push, ), Bash(gh pr create, ) description, Commit and push everything then open a PR request to main --- Context - Current git status, !

Main use cases:
  • Generating clean, readable code
  • Spotting security flaws and fixing bugs
  • Explaining complex code and documenting it clearly
Benefits and results:
  • Less time spent on review inside the team
  • Clearer documentation, so the project stays maintainable
  • Faster development and higher output
Prompt length: 115 words Reading time: ~1 min Best with: Claude Sonnet (recommended for code), GPT-4o, GitHub Copilot

Prompt

---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*)
description: Commit and push everything then open a PR request to main
---

## Context

- Current git status: !`git status`
- Current git diff (staged and unstaged changes): !`git diff HEAD`
- Current branch: !`git branch --show-current`
- Recent commits: !`git log --oneline -10`

## Your task

1. Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits. If there are no outstanding changes proceed to 2.
2. Push all commits.
3. Open a PR to main following the conventional formats.

Related Prompts

AeroTools

AeroAssistant

Online AI
Hello! I am your official AeroTools AI Assistant. How can I help you use our tools today?