基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/genlayerlabs/genlayer-studio --skill create-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | create-pr |
| description | Create GitHub pull requests by analyzing branch diff and following the project template |
Create GitHub pull requests by analyzing branch diff and following the project template.
gh) authenticated# Get current branch name
git branch --show-current
# Check if branch is pushed
git status
# Get diff against main
git diff main...HEAD --stat
git diff main...HEAD
# Get commit history for this branch
git log main..HEAD --oneline
Review the diff to understand:
Use gh pr create with the project template structure:
gh pr create --title "<type>: <description>" --body "$(cat <<'EOF'
Fixes #issue-number-here
# What
- [Describe specific changes made]
- [List modified components/files]
# Why
- [Explain the motivation]
- [Reference related issues]
# Testing done
- [List tests run]
- [Describe manual testing]
# Decisions made
- [Document any non-obvious choices]
# Checks
- [x] I have tested this code
- [x] I have reviewed my own PR
- [ ] I have created an issue for this PR
- [x] I have set a descriptive PR title compliant with conventional commits
# Reviewing tips
- [Guidance for reviewers]
# User facing release notes
- [Changes visible to end users, if any]
EOF
)"
| Type | Use Case |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation only |
| style | Formatting, no code change |
| refactor | Code change, no feature/fix |
| perf | Performance improvement |
| test | Adding/fixing tests |
| chore | Maintenance, deps, config |
gh pr create --title "feat: add user authentication" --body "..."
gh pr create --title "fix: resolve timeout in consensus worker" --body "..."
gh pr create --title "fix: handle empty contract data" --body "Fixes #123..."
Fixes #N or Closes #N for auto-closegh pr create --draftgit push -u origin $(git branch --show-current)