一键导入
gh-pr
Create Pull Request with structured description. Use when creating PR, opening pull request. Triggers on "/gh-pr", "create pr", "建立 PR", "開 PR".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create Pull Request with structured description. Use when creating PR, opening pull request. Triggers on "/gh-pr", "create pr", "建立 PR", "開 PR".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Comprehensive health check of Claude Code skill ecosystem — cross-check registry.yaml, disk, symlinks, INDEX.md, and frontmatter validation. Use after skill restructuring or periodically.
Audit Claude Code settings.json for security vulnerabilities — detect allow-bypasses-deny, missing sensitive file denies, and overly broad permissions. Use after any settings.json change.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
Toggle peon-ping sound notifications on/off. Use when user wants to mute, unmute, pause, or resume peon sounds during a Claude Code session.
Use when installing packages, adding dependencies, or running package manager commands. Triggers on npm install, npm add, package installation, dependency management.
| name | gh-pr |
| description | Create Pull Request with structured description. Use when creating PR, opening pull request. Triggers on "/gh-pr", "create pr", "建立 PR", "開 PR". |
| allowed-tools | Bash, Read, Glob, Grep |
| version | 1.0.0 |
| scope | public |
| evolution | {"enabled":true,"version":"1.0.0","stability":"stable","auto_evolve":"patch","created":"2026-01-18T00:00:00.000Z","updated":"2026-01-18T00:00:00.000Z","history":[]} |
Automatically analyze changes on the current branch, generate a structured PR description, and create a Pull Request.
Methodology:
upstream:
- skill: gh-commit-and-push
receives: Pushed branch changes
- skill: auto-cycle (COMMIT phase)
receives: Completed development tasks
downstream:
- output: GitHub Pull Request
produces: Reviewable PR
Use cases:
Not suitable for:
Confirm current branch
git branch --show-current
Check remote status
git fetch origin
git status -sb
Check if PR already exists
gh pr list --head $(git branch --show-current)
Get diff statistics
# Find base branch (main or master)
BASE_BRANCH=$(git remote show origin | grep 'HEAD branch' | cut -d: -f2 | xargs)
# Get diff
git diff ${BASE_BRANCH}...HEAD --stat
git log ${BASE_BRANCH}...HEAD --oneline
Classify changes
Determine PR type based on files and commit messages:
| Indicator | PR Type |
|---|---|
Commits contain feat: | feature |
Commits contain fix: | bugfix |
Commits contain docs: | documentation |
Commits contain refactor: | refactor |
| Mixed types | Use the most prominent type |
Generate title
Format: [type] short description
Examples:
[feat] Add user login feature[fix] Fix API timeout issue[refactor] Restructure database connection poolGenerate content
## Summary
- Change 1
- Change 2
- Change 3
## Changes
| File | Change |
|------|------|
| src/auth/login.ts | Add login logic |
| src/app.ts | Register auth routes |
## Test Plan
- [ ] Unit tests pass
- [ ] Manually test XXX feature
- [ ] Confirm XXX scenario
---
Generated with Claude Code
Run gh pr create
gh pr create \
--title "[type] title" \
--body "$(cat <<'EOF'
## Summary
...
EOF
)" \
--base main
Display results and suggest reviewers
# Look for CODEOWNERS in standard locations
cat CODEOWNERS 2>/dev/null || cat .github/CODEOWNERS 2>/dev/null || cat docs/CODEOWNERS 2>/dev/null
Pre-execution checks:
Analysis phase:
Generate PR:
gh pr createCompletion confirmation:
PR Description Quality:
Git Operation Success:
gh pr create executed successfully# Confirm PR has been created
gh pr list --author @me
# View PR details
gh pr view
# Open in browser
gh pr view --web
| Situation | Reason | Action |
|---|---|---|
| On main/master branch | Should not create PR from main | Prompt to create a feature branch first |
| Unpushed commits exist | Remote doesn't have latest code | Prompt to push first |
| PR already exists | Avoid duplicate creation | Show existing PR link |
| gh not logged in | Cannot operate | Prompt to run gh auth login |
| No network connection | Cannot reach GitHub | Display error |
## Summary
Add [feature name], implementing [goal].
- Implement XXX
- Support YYY
- Integrate ZZZ
## Changes
| File | Change |
|------|------|
| `src/feature.ts` | Add feature implementation |
| `src/feature.test.ts` | Add tests |
## Test Plan
- [ ] Unit tests pass (`npm test`)
- [ ] Manually test feature A
- [ ] Confirm edge case B
---
Generated with Claude Code
## Summary
Fix [problem description].
**Root cause**: [explain root cause]
**Solution**: [explain fix method]
## Changes
| File | Change |
|------|------|
| `src/utils.ts` | Fix XXX logic |
## Test Plan
- [ ] Original issue no longer occurs
- [ ] Related tests pass
- [ ] No regressions
---
Generated with Claude Code
# On feature/user-auth branch
/gh-pr
# Output:
# PR created successfully
# https://github.com/owner/repo/pull/123
#
# [feat] Add user authentication module
#
# Summary:
# - Implement email + password login
# - Support JWT tokens
# - Add auth middleware
/gh-pr
# Output:
# PR #123 already exists
# https://github.com/owner/repo/pull/123
#
# Update PR description? [y/N]
# Run on a feature branch
/gh-pr
# The skill will automatically:
# 1. Check branch status
# 2. Analyze changes
# 3. Generate PR description
# 4. Create PR
# 5. Display PR URL