Skip to content
Development
Command

/commit-push-pr

建立一個 Git 提交、推送到遠端,並開啟一個 Pull Request

From plugin
claude-plugin-marketplace
2614 skills18 agents14 commands
Install
$ npx -y skills add DennisLiuCk/claude-plugin-marketplace --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit-push-pr

Context preview

What this command does when you run it.

建立一個 Git 提交、推送到遠端,並開啟一個 Pull Request

Command definition

commit-push-pr.md
description: 建立一個 Git 提交、推送到遠端,並開啟一個 Pull Request
allowedTools:
  - 'Bash(git checkout --branch:*)'
  - 'Bash(git add:*)'
  - 'Bash(git status:*)'
  - 'Bash(git push:*)'
  - 'Bash(git commit:*)'
  - 'Bash(gh pr create:*)'

背景資訊

以下是目前的 Git 狀態:

${GIT_STATUS}

以下是目前的 Git 差異(包括已暫存和未暫存的變更):

${GIT_DIFF}

目前分支:${GIT_BRANCH}

指示

執行以下步驟:

1. 如果目前在 main 分支上,建立一個新分支 2. 暫存相關變更 3. 建立一個提交並附上適當的訊息 4. 推送分支到 origin 5. 使用 GitHub CLI 開啟一個 Pull Request

**重要提示**:

  • 您有能力在單一回應中呼叫多個工具
  • 您必須在單一訊息中完成以上所有步驟
  • 不要使用其他工具
  • 不要輸出額外的溝通內容
Ships withclaude-plugin-marketplace

專為繁體中文使用者設計的 Claude Code 插件集合,提供開發、生產力、安全與學習等工具。

Get the whole plugin, auto-invoked
Stats
26
Stars
1
Views
5
Forks
Maintained
Maintenance
Python
Language
5mo ago
Last commit
8mo ago
Created

Repo: DennisLiuCk/claude-plugin-marketplace