一键导入
pr
Create a pull request from the current branch, matching the repo's PR conventions (What/Why/Testing for features, Summary/Test-plan for small PRs).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a pull request from the current branch, matching the repo's PR conventions (What/Why/Testing for features, Summary/Test-plan for small PRs).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep analysis of current changes before committing. Goes beyond lint — catches logic bugs, architectural violations, security, and performance issues.
Review staged or unstaged changes before committing. Catches bugs, style drift, and missing coverage.
Cut a release — promote Unreleased → versioned in CHANGELOG, bump version, commit. CI auto-tags and publishes from the version-bump commit.
Create a release-tracking issue that organizes open issues into a phased roadmap. Pass a target version (e.g., `0.5.0`) to scope the plan.
Run the full quality gate — format, lint, tests, types. Use after changes to verify nothing is broken.
Check GitHub Actions CI status. Shows recent runs, and if there are failures, reads the logs and suggests fixes.
| name | pr |
| description | Create a pull request from the current branch, matching the repo's PR conventions (What/Why/Testing for features, Summary/Test-plan for small PRs). |
Open a PR for the current branch.
Pre-flight
/check. Warn (don't block); the user may want a draft anyway.uv lock --check. If it fails, the lock drifted from pyproject.toml (common after a version bump or a dependency edit without re-locking). Run uv lock to refresh, stage uv.lock, and include it — as its own commit when it's housekeeping, folded into the feature commit when it's a direct consequence of a dependency change in the same branch. A stale lock causes CI reproducibility failures downstream, so do not skip.Gather context
git log main..HEAD --onelinegit diff main...HEAD --statgit diff main...HEAD — read the actual diffgh pr list --state merged --limit 5 --json number,title,labelsTitle — Conventional Commits with scope (matches the commit-message convention enforced in CLAUDE.md / CONTRIBUTING.md):
<type>(<scope>): <imperative lowercase description>
feat, fix, chore, ci, test, docs, refactor, perf, build, style.core, cli, providers, observability, steps, resilience, tools, webhooks, checkpointing, record-replay, release, deps, version, meta, examples, infrastructure. Pick the most representative scope of the PR — for cross-cutting work, meta (docs/skills) or the dominant area.main, so consistency with the commit-message style matters.(#<issue>) — e.g. feat(webhooks): add approval-gate notifications (#42).Body — pick the format by PR size:
Feature / substantive PRs (new functionality, non-trivial refactor):
## What
<1–2 sentence summary>
- <bullet describing change 1>
- <bullet describing change 2>
## Why
<motivation, link to related issues/PRs>
Closes #<issue>
## Testing
- [x] `uv run pytest` passes (<N> tests)
- [x] `uv run ruff check src/ tests/` clean
- [x] `uv run mypy src/` clean
- [x] <any manual / docker / k8s validation actually run>
## Notes
<caveats, follow-ups, implementation choices worth calling out>
Small PRs (docs, single-file fixes, coverage bumps):
## Summary
- <1–3 behavior-focused bullets>
## Test plan
- [x] <auto-check if /check passed, else manual>
No emojis.
Labels — pr-labeler auto-applies labels from .github/labeler.yml based on changed paths (core, cli, providers, observability, resilience, infrastructure, ci, dependencies, release). Add general categories (enhancement, bug, breaking, e2e) explicitly via --label because the labeler does not infer them from paths.
Push (ask authorization first)
git push --set-upstream origin <branch>git pushCreate
gh pr create --title "..." --body "$(cat <<'EOF'
...
EOF
)" --label "..."
Add --draft if $ARGUMENTS contains "draft".
Report the PR URL. Don't poll CI — let the user run /ci-status.