Skip to main content

commit-push-pr

Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.

来源信息

仓库
meleantonio/ChernyCode
最近来源活动
2026年2月1日 11:23
检测到的 SKILL.md 语言
英语
星标
517
Forks
108

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
commit-push-pr
description
Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.
disable-model-invocation
true
# Commit, Push, and Create PR Automate the git workflow for completing a feature or fix. ## Pre-computed Context Before proceeding, gather this information: - Current branch: `!git branch --show-current` - Git status: `!git status --short` - Recent commits on this branch: `!git log --oneline -5` - Diff summary: `!git diff --stat` ## Workflow 1. **Review Changes** - Check `git status` for all modified/added files - Review the diff to understand what's being committed - Ensure no sensitive files are staged (.env, credentials, etc.) 2. **Run Pre-commit Checks** - Format code: `ruff format .` (if Python files changed) - Lint code: `ruff check .` (if Python files changed) - Run tests: `pytest` (if tests exist) 3. **Stage and Commit** - Stage relevant files: `git add <files>` - Create a commit with Conventional Commits format: - `feat:` for new features - `fix:` for bug fixes - `docs:` for documentation - `refactor:` for refactoring - `test:` for tests - `chore:` for maintenance - Write a clear, concise commit message focusing on "why" 4. **Push to Remote** - Push the branch: `git push -u origin HEAD` - If branch doesn't exist on remote, create it 5. **Create Pull Request** - Use GitHub CLI: `gh pr create` - Include: - Clear title summarizing the change - Description with summary and context - Reference any related issues - Add appropriate labels if applicable ## Arguments Pass a commit message or leave empty for auto-generated message based on changes. Usage: `/commit-push-pr [optional commit message]` Example: `/commit-push-pr feat: add user authentication` ## Output Return the PR URL when complete.
在 GitHub 查看