Skip to main content

github-pr

Create a well-formed draft PR for ts-libs. Covers changeset, commit check, PR body, and gh CLI invocation.

来源信息

仓库
LedgerHQ/ts-libs
最近来源活动
2026年7月17日 09:42
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
github-pr
description
Create a well-formed draft PR for ts-libs. Covers changeset, commit check, PR body, and gh CLI invocation.
disable-model-invocation
true
# Create PR ## Before Creating 1. Load `/git-workflow` — verify branch name and commit format 2. Run `git diff develop..HEAD --stat` — confirm scope of changes 3. Run `/create-changeset` — add a changeset if any `libs/*` package changed 4. Commit the changeset ## PR Body Template ```markdown ### ✅ Checklist - [x] Changeset attached (`pnpm changelog`) - [{{TEST_CHECKBOX}}] Covered by automatic tests{{TEST_NOTE}} - [x] Impact: {{IMPACT}} ### 📝 Description {{DESCRIPTION}} ### ❓ Context {{CONTEXT}} --- ### 🧐 For Reviewers - Code aligns with requirements described in context - No undocumented trade-offs or technical debt introduced - Tests cover the meaningful cases - Public API changes are intentional and backward-compatible (or breaking change documented) ``` ## Fill Rules - `TEST_CHECKBOX`: `x` if tests exist, ` ` if not (explain why in `TEST_NOTE`) - `IMPACT`: one-line description of what could regress - `DESCRIPTION`: problem → solution, include code examples for API changes - `CONTEXT`: Jira/GitHub link or plain description ## Create the PR ```bash git push -u origin HEAD gh pr create --draft \ --base develop \ --title "<type>(<scope>): <description>" \ --body "$(cat <<'EOF' <generated body> EOF )" ``` Always use `--draft`. Always target `develop`.
在 GitHub 查看