一键导入
github-create-pr
Create GitHub PRs using templates. Use when "crear pr", "create pr", "abrir pr", "open pr", "submit pr".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create GitHub PRs using templates. Use when "crear pr", "create pr", "abrir pr", "open pr", "submit pr".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Developer portal and SDK for the Syner ecosystem. Hosts skill registry, documentation, and agent scaffolding tools.
Slack integration agent — receives messages, routes through orchestrator, delivers results
Orchestrate the ideas system. Mine vaults for ideas, analyze maturity, and route to the right skill or agent. The entry point for idea discovery that connects find-links, grow-note, track-idea, and cross-app routing.
Load your full life + work state. Discovers and reads all notes across all app vaults, building a unified context of your knowledge, projects, goals, and current thinking. Use when starting a new session or when you need the AI to understand your complete situation.
Create skills for the syner ecosystem. Scaffolds the file, sets up symlinks, and iterates until the skill works when invoked.
Improve an existing skill by auditing and applying fixes. Use when asked to "enhance skill", "improve skill", "fix skill issues", or when code-reviewer detects skill file changes. Delegates to syner-skill-reviewer for audit, then proposes and applies fixes with user confirmation.
| name | github-create-pr |
| description | Create GitHub PRs using templates. Use when "crear pr", "create pr", "abrir pr", "open pr", "submit pr". |
| tools | ["Read","Glob","Bash"] |
| skills | ["syner-gh-auth"] |
| metadata | {"author":"syner","version":"0.0.3"} |
Create pull requests using project templates. Handles auth, template selection, and PR creation via gh.
Run /syner-gh-auth before any gh command.
git status
git diff --stat origin/main...HEAD
git log --oneline origin/main...HEAD
Select template based on branch name or explicit argument.
| Priority | Source | Example |
|---|---|---|
| 1 | Explicit arg | /github-create-pr --template=skill |
| 2 | Branch prefix | feat/ → feature, fix/ → fix, skill/ → skill |
| 3 | Default | default.md |
feat/* → feature.md (if exists) → default.md
fix/* → fix.md (if exists) → default.md
hotfix/* → fix.md (if exists) → default.md
skill/* → skill.md (if exists) → default.md
agent/* → agent.md (if exists) → default.md
docs/* → default.md
chore/* → default.md
* → default.md
Check if specific template exists:
ls .github/PULL_REQUEST_TEMPLATE/{template}.md
If not found, fallback to default:
ls .github/PULL_REQUEST_TEMPLATE/default.md
If no templates exist, use inline format (see Fallback section).
# Template path determined in step 3
Read .github/PULL_REQUEST_TEMPLATE/{selected}.md
Replace placeholders in template with actual values:
| Placeholder | Source |
|---|---|
{{title}} | First commit message or branch name |
{{summary}} | Generated from diff analysis |
{{type}} | Detected from branch prefix |
{{breaking}} | Check for BREAKING in commits |
{{issue}} | Extract from branch name if issue-123 pattern |
gh pr create \
--title "{{title}}" \
--body "$(cat <<'EOF'
{{filled_template}}
EOF
)" \
--base main
--watch or --auto-merge)If --watch or --auto-merge flag is passed, wait for checks to complete:
gh pr checks {{pr_number}} --watch
Blocks until all checks complete, then reports pass/fail.
If --auto-merge flag is passed, merge after checks pass:
gh pr merge {{pr_number}} --squash
This runs AFTER --watch completes successfully. If checks failed, skip merge and report the failure.
Output the PR URL and number.
.github/PULL_REQUEST_TEMPLATE/
default.md # General purpose (required)
feature.md # New features (optional)
fix.md # Bug fixes (optional)
skill.md # New skills (optional)
agent.md # New agents (optional)
GitHub also uses these templates in the web UI when creating PRs.
| Arg | Description | Example |
|---|---|---|
--template | Force specific template | --template=skill |
--title | Override title | --title="Add feature X" |
--draft | Create as draft | --draft |
--auto-merge | Watch checks, then squash merge | --auto-merge |
--watch | Watch checks after creation | --watch |
--base | Target branch | --base=develop |
✓ PR created: #123
https://github.com/owner/repo/pull/123
Title: feat: add new skill
Base: main ← feat/new-skill
Template: default.md
If no template files exist, use this structure:
## Summary
{1-3 bullet points from commits}
## Changes
{Files changed with brief description}
## Test Plan
- [ ] {How to verify}
---
🤖 Generated with [Claude Code](https://claude.ai/code)
git checkout -b feat/test-pr
/github-create-pr --draft
# Expected: Uses default.md, creates draft PR
# Cleanup: gh pr close --delete-branch
/github-create-pr --template=skill --draft
# Expected: Tries skill.md, falls back to default.md
mv .github/PULL_REQUEST_TEMPLATE /tmp/
/github-create-pr --draft
# Expected: Uses inline fallback format
# Cleanup: mv /tmp/PULL_REQUEST_TEMPLATE .github/
/syner-gh-auth before gh commands