一键导入
default-pr
Create a pull request. Follows PR templates if present. Validates checklist items via sub-agents before submitting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a pull request. Follows PR templates if present. Validates checklist items via sub-agents before submitting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
nix-darwin の flake update + switch を実行。キャッシュミスで重いソースビルドが発生するパッケージは自動で pin し、過去の pin はキャッシュが追いつけば自動解除する。
プロジェクトの用語一貫性チェック。diff・PR・実装計画に登場する用語(識別子・コメント・テストタイトル)を、リポジトリ別の用語集(glossary)と既存コードの語彙(inventory)に照らしてチェックし、新出概念の命名を確定して glossary を育てる。用語チェック・命名の相談・表記揺れの確認で発動。
Control herdr from inside it. Manage workspaces and tabs, split panes, spawn agents, read output, and wait for state changes — all via CLI commands that talk to the running herdr instance over a local unix socket. Use when running inside herdr (HERDR_ENV=1).
Create, list, switch, or delete git worktrees for parallel branch work. Use when the user wants to work on multiple branches simultaneously.
GitHub に画像をアップロードし Markdown 画像リンクを返す。PR 作成や Issue 作成時に画像を添付したい場合に使用。
Commit changes by splitting into logical units. Defaults to Conventional Commits but adapts to the repo's existing format if consistently different. Auto-detects commit message language from git history.
| name | default-pr |
| description | Create a pull request. Follows PR templates if present. Validates checklist items via sub-agents before submitting. |
| argument-hint | [draft] [base=BRANCH] |
| disable-model-invocation | true |
Create a pull request for the current branch.
User directive: $ARGUMENTS
| Keyword | Rule |
|---|---|
| draft | Create as a draft PR. |
| base=BRANCH | Specify the base branch (default: auto-detect). |
Determine the base branch using the same resolution order as gh pr create:
base=BRANCH argument — use it directly.git config branch.<current-branch>.gh-merge-base — per-branch config.gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' — repo default.Show the resolved base branch to the user and ask for confirmation before proceeding.
Run the following in parallel:
git status — check for uncommitted changesgit log --oneline <base>..HEAD — list commits to be includedgit diff <base>...HEAD --stat — summarize changed filesIf there are uncommitted changes, warn the user and ask whether to proceed or commit first.
If there are no commits ahead of base, abort with a message.
Run the following command to find PR templates:
root=$(git rev-parse --show-toplevel)
# Single templates
find "$root" "$root/docs" "$root/.github" \
-maxdepth 1 -iname "pull_request_template.md" 2>/dev/null
# Multiple templates directories
find "$root/PULL_REQUEST_TEMPLATE" \
"$root/docs/PULL_REQUEST_TEMPLATE" \
"$root/.github/PULL_REQUEST_TEMPLATE" \
-maxdepth 1 -iname "*.md" 2>/dev/null
If multiple templates are found, select the most appropriate one based on the branch name, commit contents, and changed files. If the appropriate template cannot be determined, ask the user to choose.
If the template contains a checklist (- [ ] items), spawn parallel sub-agents to verify each item against the actual code and commits. Each agent should:
Present the results to the user as a table before proceeding. If any item fails, ask the user whether to continue anyway.
- [x].## Summary
<1-3 bullet points describing the change>
## Test plan
<How to verify the change>
Analyze the commits:
Follow the same language and format conventions as the commit messages.
gh pr create --title "TITLE" --body "$(cat <<'EOF'
BODY
EOF
)" --base <resolved-base>
Add --draft if the draft option was specified.
Always pass --base with the resolved base branch from step 1.
Print the resulting PR URL so the user can open it.