pr

โดย tldraw

สร้างหรืออัปเดต pull request สำหรับ branch ปัจจุบันใน repository tldraw ใช้เมื่อผู้ใช้เรียก pr, ขอให้สร้าง PR, อัปเดต PR ที่มีอยู่, push…

npx skills add https://github.com/tldraw/tldraw --skill pr

PR

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

  1. 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
  2. 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.
  3. If no PR exists, create one with gh pr create.
  4. If a PR exists, read it with gh pr view --json title,body,labels,number and inspect the changed-file summary with gh pr diff --stat.
  5. Update the title or body with gh pr edit if the existing PR does not match the current diff or the write-pr standards.
  6. Search for related issues and link them in the PR description with Closes #123 or Relates to #123 where appropriate.
  7. 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.md for 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.

Skills เพิ่มเติมจาก tldraw

write-example
tldraw
เขียนตัวอย่างสำหรับแอปพลิเคชันตัวอย่าง tldraw SDK ใช้เมื่อสร้างตัวอย่างใหม่ เพิ่มการสาธิต SDK หรือเขียนโค้ดตัวอย่างใน apps/examples
official
write-issue
tldraw
มาตรฐานอ้างอิงสำหรับการเขียนและบำรุงรักษา GitHub issues ในคลัง tldraw ใช้เป็นแนวทางสนับสนุนเมื่อทักษะหรือเวิร์กโฟลว์อื่นต้องการ issue…
official
write-pr
tldraw
มาตรฐานอ้างอิงสำหรับการเขียนหัวเรื่องและคำอธิบายของ pull request ในคลังเก็บ tldraw ใช้เป็นแนวทางสนับสนุนเมื่อทักษะหรือขั้นตอนการทำงานอื่นต้องการ...
official
write-release-notes
tldraw
การเขียนบทความบันทึกการเผยแพร่สำหรับการปล่อย SDK ของ tldraw ใช้เมื่อสร้างเอกสารการเผยแพร่ใหม่ ร่างบันทึกการเผยแพร่ตั้งแต่ต้น หรือตรวจสอบการเผยแพร่…
official
write-tbp
tldraw
การเขียนบล็อกโพสต์ทางเทคนิคเกี่ยวกับฟีเจอร์และรายละเอียดการใช้งานของ tldraw ใช้เมื่อสร้างเนื้อหาบล็อกเกี่ยวกับวิธีที่ tldraw แก้ปัญหาที่น่าสนใจ
official
write-unit-tests
tldraw
การเขียน unit tests และ integration tests สำหรับ tldraw SDK ใช้เมื่อสร้าง tests ใหม่ เพิ่ม test coverage หรือแก้ไข tests ที่ล้มเหลวใน packages/editor หรือ…
official
clean-copy
tldraw
สร้างสาขาใหม่จากสาขาปัจจุบันด้วยประวัติการคอมมิต git ที่สะอาดและมีคุณภาพแบบเล่าเรื่อง ใช้เมื่อถูกขอให้สร้างสาขาสำเนาที่สะอาด ทำความสะอาดคอมมิต…
official
commit-changes
tldraw
สร้าง git commit สำหรับการเปลี่ยนแปลงปัจจุบัน ใช้เมื่อถูกขอให้ commit การเปลี่ยนแปลง, ทำการ commit, สร้างข้อความ commit, หรือ commit worktree ปัจจุบันด้วย…
official