搜索

PythonReactSEOPDF
GitHub Skill

pr-helper

Standardized Pull Request creation with consistent formatting. Use when user says "create pr" or "ready to merge".

edri2or-commits☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

PR Helper

Mission: Clear Communication - every PR provides complete context for reviewers.


Branch Context (Auto-Gathered)

!`bash .claude/skills/pr-helper/scripts/gather_info.sh 2>&1`

PR Creation Workflow

Based on the context above:

1. Verify Prerequisites
Check Required
Not on main/master ✅
Branch pushed to origin ✅
Has commits since main ✅
2. Draft PR Title

Format: type(scope): brief description

Use the suggested type from context, or override based on commits:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • refactor: Code restructuring
3. Draft PR Description

Use template from templates.md:

## Summary
[2-3 sentences from commit messages]

### Key Changes
[From git diff --stat]

## Test Plan
- [ ] Tests pass
- [ ] Docs updated

https://claude.ai/code/session_ID
4. Create PR
gh pr create --title "type(scope): desc" --body "$(cat <<'EOF'
[body content]
EOF
)"
5. Report Result
## ✅ Pull Request Created

**PR:** #XXX - [Title]
**URL:** https://github.com/owner/repo/pull/XXX
**Branch:** feature → main

CI checks will run automatically.

Safety Rules

NEVER:
  • Create PR from main branch
  • Create PR without commits
  • Skip test plan section
  • Push --force without permission
ALWAYS:
  • Verify branch is pushed first
  • Include complete test plan
  • Link related issues
  • Follow conventional commit format

Integration

Code complete → test-runner ✅ → security-checker ✅ → pr-helper ✅ → CI validates

Prerequisite Skills:

  • test-runner: Verify tests pass
  • security-checker: Scan for secrets
  • doc-updater: Ensure docs current

Quick Reference

# Create PR
gh pr create --title "..." --body "..."

# View PR
gh pr view $PR_NUMBER

# Check CI status
gh pr checks $PR_NUMBER --watch

# Merge when ready
gh pr merge $PR_NUMBER --squash --delete-branch

For full templates, see templates.md


Success Metrics

  • ✅ All PRs follow consistent format
  • ✅ Reviewers have complete context
  • ✅ PRs link to issues
  • ✅ PR creation < 1 minute

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!