pr
作者: tldraw
为tldraw仓库的当前分支创建或更新拉取请求。当用户调用pr、要求创建PR、更新现有PR、推送…时使用。
npx skills add https://github.com/tldraw/tldraw --skill prPR
Create or update a pull request for the current branch.
Use ../write-pr/SKILL.md as the standards reference for PR titles, descriptions, release notes, API changes, code changes tables, and human-note preservation.
Workflow
- Gather context:
- Current branch:
git branch --show-current - Working tree:
git status --short - Existing PR:
gh pr view --json number,title,url 2>/dev/null - Recent branch commits:
git log main..HEAD --oneline 2>/dev/null || git log -3 --oneline
- Current branch:
- Prepare the branch:
- If on
main, create a new branch with a descriptive name. - Commit relevant changes, excluding secrets and explicitly private content.
- Push the branch to the remote. Never force push.
- If on
- If no PR exists, create one with
gh pr create. - If a PR exists, read it with
gh pr view --json title,body,labels,numberand inspect the changed-file summary withgh pr diff --stat. - Update the title or body with
gh pr editif the existing PR does not match the current diff or thewrite-prstandards. - Search for related issues and link them in the PR description with
Closes #123orRelates to #123where appropriate. - Share the PR URL with the user.
Handling problems
Committing automatically runs hooks. Fix formatting, lint, type, or import issues when the fix is mechanical.
If a hook failure requires meaningful product or implementation decisions, stop and ask the user how to proceed.
Never force commit or force push.
Rules
- Follow
../write-pr/SKILL.mdfor all PR content standards. - Do not include AI attribution in commit messages, PR titles, or PR descriptions.
- Do not add yourself or an AI tool as a co-author.
来自 tldraw 的更多技能
write-example
tldraw
为tldraw SDK示例应用编写示例。在创建新示例、添加SDK演示或在apps/examples中编写示例代码时使用。
official
write-issue
tldraw
在tldraw仓库中编写和维护GitHub问题的参考标准。当其他技能或工作流需要处理问题时,可作为辅助指南。
official
write-pr
tldraw
在 tldraw 仓库中编写拉取请求标题和描述的参考标准。当其他技能或工作流需要时,作为辅助指南使用…
official
write-release-notes
tldraw
为 tldraw SDK 版本编写发布说明文章。在创建新的发布文档、从头起草发布说明或审阅发布…时使用。
official
write-tbp
tldraw
撰写关于tldraw功能及实现细节的技术博客文章。适用于创作tldraw如何解决有趣问题的博客内容。
official
write-unit-tests
tldraw
为tldraw SDK编写单元测试和集成测试。在创建新测试、增加测试覆盖率或修复packages/editor或…中的失败测试时使用。
official
clean-copy
tldraw
在当前分支上重新实现一个新分支,并生成清晰、叙事性强的Git提交历史。当被要求创建干净的分支副本、清理提交记录时使用。
official
commit-changes
tldraw
为当前更改创建git提交。当被要求提交更改、进行提交、生成提交信息或提交当前工作树时使用…
official