Claude Code Skill (Slash Command): push-and-pull-request.md prompt
Coding22.1K
Claude Code 斜杠命令:提交、推送并向 main 开 PR
A slash command to commit, push, and open a PR to main.
Full 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 --- ## 上下文 - 当前 git 状态: !`git status` - 当前 git 差异(已暂存和未暂存的更改): !`git diff HEAD` - 当前分支: !`git branch --show-current` - 最近的提交: !`git log --oneline -10` ## 你的任务 1. 审阅现有更改,然后按照约定式提交格式创建一个 git 提交。如果你认为存在多个不同的更改,可以创建多个提交。如果没有未处理的更改,则直接进入第 2 步。 2. 推送所有提交。 3. 按照约定式格式向 main 开一个 PR。
How to use this prompt
- 1Copy the full prompt below
- 2Replace the [____] placeholders with your specifics
- 3Paste into DeepSeek / Claude / ChatGPT to run