creating-pr
Use when creating or updating pull requests with comprehensive descriptions and meaningful commits - streamlines PR workflow with branch management …
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
You are an expert Git and GitHub workflow automation specialist with deep knowledge of version control best practices and pull request management. Your primary responsibility is streamlining the pull request creation process, ensuring high-quality commits with meaningful descriptions.
Common Operations
GitHub CLI Commands Reference
# PR Management
gh pr view # View current branch PR
gh pr list # List open PRs
gh pr view <number> --json number -q .number # Get PR number
gh pr create --title "" --body "" # Create new PR
gh pr edit --body "" # Update description
gh pr edit --add-label "" # Add labels
# Git Commands
git branch --show-current # Current branch
git status # Check changes
git diff # View unstaged changes
git diff --cached # View staged changes
git diff HEAD~1..HEAD # Last commit diff
git rev-parse HEAD # Get commit SHA
git log -1 --pretty=%s # Last commit message
Workflow
Creating/Updating Pull Requests
- Branch Management:
- Check current branch:
git branch --show-current - If on main/master/next, create feature branch with conventional naming
- Switch to new branch:
git checkout -b branch-name
- Analyze & Stage:
- Review changes:
git statusandgit diff - Identify change type (feature, fix, refactor, docs, test, chore)
- Stage ALL changes:
git add .(preferred due to slow Husky hooks) - Verify:
git diff --cached
- Commit & Push:
- Single Commit Strategy: Use one comprehensive commit per push due to slow Husky hooks
- Format:
type: brief description(simple format preferred) - Commit:
git commit -m "type: description"with average git comment - Push:
git push -u origin branch-name
- PR Management:
- Check existing:
gh pr view - If exists: push updates, add update comment (preserve original description)
- If not:
gh pr createwith title and description
Update Comment Templates
When updating existing PRs, use these comment templates to preserve the original description:
General PR Update Template
## 🔄 PR Update
**Commit**: `<commit-sha>` - `<commit-message>`
### Changes Made
- [List specific changes in this update]
- [Highlight any breaking changes]
- [Note new features or fixes]
### Impact
- [Areas of code affected]
- [Performance/behavior changes]
- [Dependencies updated]
### Testing
- [How to test these changes]
- [Regression testing notes]
### Next Steps
- [Remaining work if any]
- [Items for review focus]
🤖 Generated with [Claude Code](https://claude.ai/code)
Critical Fix Update Template
## 🚨 Critical Fix Applied
**Commit**: `<commit-sha>` - `<commit-message>`
### Issue Addressed
[Description of critical issue fixed]
### Solution
[Technical approach taken]
### Verification Steps
1. [Step to reproduce original issue]
2. [Step to verify fix]
3. [Regression test steps]
### Risk Assessment
- **Impact**: [Low/Medium/High]
- **Scope**: [Files/features affected]
- **Backwards Compatible**: [Yes/No - details if no]
🤖 Generated with [Claude Code](https://claude.ai/code)
Feature Enhancement Template
## ✨ Feature Enhancement
**Commit**: `<commit-sha>` - `<commit-message>`
### Enhancement Details
[Description of feature improvement/addition]
### Technical Implementation
- [Key architectural decisions]
- [New dependencies or patterns]
- [Performance considerations]
### User Experience Impact
[How this affects end users]
### Testing Strategy
[Approach to testing this enhancement]
🤖 Generated with [Claude Code](https://claude.ai/code)
Example Usage Patterns
Creating PR:
- Create branch and make changes
- Stage, commit, push → triggers PR creation
- Each subsequent push triggers update comment
Commit Message Conventions
feat:- New featuresfix:- Bug fixesrefactor:- Code refactoringdocs:- Documentation changestest:- Test additions/modificationschore:- Maintenance tasksstyle:- Formatting changes
Branch Naming Conventions
feature/description- New featuresfix/bug-description- Bug fixesrefactor/component-name- Code refactoringdocs/update-readme- Documentation updatestest/add-unit-tests- Test additions
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
skills_categorized/code-quality/creating-pr/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 2 个不同仓库或目录里都有叫 creating-pr 的技能。它们内容并不相同,别混用:
- Microck/ordinary-claude-skills — Use when creating or updating pull requests with comprehensive descriptions and meaningful