pr
PR Skill
Structured PR workflow: verify branch → ensure issue exists → push → create PR.
Announce at start: "I'm using PR skill to create your pull request."
Workflow
Step 0: Branch & Change Verification
git branch --show-current
git log main..HEAD --oneline
git diff main...HEAD --stat
Rules:
- If on
mainormaster: STOP — create a new branch first (see commit skill Step 0) - If no commits ahead of main: STOP — nothing to submit
- If branch has uncommitted changes: ask user whether to commit first
Step 1: Analyze Changes
Review ALL commits between main and HEAD (not just the latest):
git log main..HEAD --oneline
git diff main...HEAD
Summarize:
- What the PR accomplishes (feature, fix, refactor, etc.)
- Which modules/areas are affected
- Any breaking changes or migration notes
Step 2: Issue Association
Check if the user mentioned an issue during the conversation (e.g., "fixes #123", "关联 issue #45", or a GitHub issue URL).
Case A: Issue was mentioned
- Note the issue number for PR body (e.g.,
Closes #123)
Case B: No issue mentioned
- Create a new issue using
gh issue create:
gh issue create --title "<concise title>" --body "$(cat <<'EOF'
## Description
<Brief description of what this change addresses>
## Context
<Why this change is needed>
EOF
)"
- Use the new issue number for PR body
- Title format: same convention as commit messages but in sentence case
- Label: add appropriate labels if available (
enhancement,bug,documentation, etc.)
Step 3: Push Branch
git push -u origin <branch-name>
If push fails due to remote rejection, inform user and do NOT force-push.
Step 4: Create Pull Request
gh pr create --title "<pr-title>" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points describing the changes>
## Changes
<List of key changes, grouped by area>
## Related Issue
Closes #<issue-number>
## Test Plan
- [ ] <test steps or verification items>
EOF
)"
PR Title rules:
- Under 70 characters
- Format:
<type>(<scope>): <description>(same as commit convention) - If single commit, reuse commit message as title
- If multiple commits, write a summary title
PR Body rules:
Closes #<number>to auto-close the linked issue on merge- Include test plan with actionable checklist
- If there are breaking changes, add a
## Breaking Changessection
Step 5: Post-PR
After creating the PR:
- Output the PR URL to user
- If the PR includes i18n changes, remind to verify all locales
- If the PR includes new files in feature areas, remind about coverage config
Issue Creation Guidelines
When creating issues automatically:
| Change Type | Issue Title Example | Labels |
|---|---|---|
| New feature | feat(webui): add file upload support |
enhancement |
| Bug fix | fix(cron): timezone offset causes missed jobs |
bug |
| Refactor | refactor(settings): decompose SkillsHubSettings |
refactor |
| Docs | docs: add architecture conventions |
documentation |
Mandatory Rules
No AI Signature
NEVER add any AI-related signatures. This includes:
Generated with <AI tool>in PR descriptionsCo-Authored-By: <any AI tool>in commits- Any AI-generated footer, byline, or emoji attribution
Always Link Issues
Every PR must reference an issue. No exceptions — create one if none exists.
No Force Push
NEVER force-push without explicit user approval.
Quick Reference
0. Verify branch (not main) and commits exist
1. Analyze all changes between main..HEAD
2. Find or create issue
3. git push -u origin <branch>
4. gh pr create --title "..." --body "..." with Closes #<issue>
5. Output PR URL
More from iofficeai/aionui
pptx
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
108docx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
102xiaohongshu-recruiter
用于在小红书上发布高质量的 AI 相关岗位招聘帖子。包含自动生成极客风格的招聘封面图和详情图,并提供自动化发布脚本。当用户需要发布招聘信息、寻找 Agent 设计师或其他 AI 领域人才时使用。
68xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
67i18n
|
65openclaw-setup
OpenClaw usage expert: Helps you install, deploy, configure, and use OpenClaw personal AI assistant. Can diagnose issues, create bots, execute automated tasks, etc. Use when users need to install OpenClaw, configure Gateway, set up Channels, create Agents, troubleshoot issues, or perform OpenClaw-related operations.
63