clean-copy

bởi tldraw

Triển khai lại nhánh hiện tại trên một nhánh mới với lịch sử commit git sạch sẽ, có chất lượng tường thuật. Sử dụng khi được yêu cầu tạo một nhánh sao chép sạch, dọn dẹp commit…

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

Clean copy

Reimplement the current branch on a new branch with a clean, narrative-quality commit history suitable for reviewer comprehension.

Workflow

  1. Gather context:
    • Source branch: git branch --show-current.
    • Working tree: git status --short.
    • Commits since main: git log main..HEAD --oneline.
    • Diff summary: git diff main...HEAD --stat.
  2. Validate the source branch:
    • Ensure there are no uncommitted changes or merge conflicts.
    • Confirm the source branch is up to date with main.
  3. Choose the new branch name:
    • Use the user's requested name when provided.
    • Otherwise use <source-branch>-clean.
  4. Analyze the diff:
    • Study all changes between the source branch and main.
    • Understand the final intended state before recreating it.
  5. Create the clean branch from main.
  6. Plan the commit storyline:
    • Break the implementation into self-contained logical steps.
    • Each step should read like a stage of development in a tutorial.
  7. Reimplement the work:
    • Recreate the final changes step by step.
    • Commit after each coherent idea.
    • Use clear commit subjects and descriptions.
    • Use git commit --no-verify for intermediate commits so hooks do not block temporarily incomplete states.
  8. Verify correctness:
    • Confirm the final clean branch state exactly matches the original source branch.
    • Run the final commit without --no-verify so normal checks run.
  9. Open a pull request using the pr skill.
    • Include a link to the original branch in the PR description.

Rules

  • Never add yourself or an AI tool as an author, contributor, or co-author.
  • Never include AI attribution in commits or PR content.
  • The final clean branch must be identical to the source branch.
  • Do not force push unless the user explicitly asks for it.

Thêm skills từ tldraw

write-example
tldraw
Viết các ví dụ cho ứng dụng ví dụ của tldraw SDK. Sử dụng khi tạo ví dụ mới, thêm minh họa SDK, hoặc viết mã ví dụ trong apps/examples.
official
write-issue
tldraw
Các tiêu chuẩn tham khảo để viết và duy trì các issue GitHub trong kho lưu trữ tldraw. Sử dụng như hướng dẫn hỗ trợ khi một kỹ năng hoặc quy trình làm việc khác cần issue…
official
write-pr
tldraw
Các tiêu chuẩn tham khảo để viết tiêu đề và mô tả pull request trong kho lưu trữ tldraw. Sử dụng như hướng dẫn hỗ trợ khi một kỹ năng hoặc quy trình làm việc khác cần…
official
write-release-notes
tldraw
Viết bài ghi chú phát hành cho các bản phát hành SDK tldraw. Sử dụng khi tạo tài liệu phát hành mới, soạn thảo ghi chú phát hành từ đầu, hoặc xem xét phát hành…
official
write-tbp
tldraw
Viết bài blog kỹ thuật về các tính năng và chi tiết triển khai của tldraw. Sử dụng khi tạo nội dung blog về cách tldraw giải quyết các vấn đề thú vị.
official
write-unit-tests
tldraw
Viết unit test và integration test cho tldraw SDK. Sử dụng khi tạo test mới, thêm phạm vi kiểm thử, hoặc sửa test lỗi trong packages/editor hoặc…
official
commit-changes
tldraw
Tạo một git commit cho các thay đổi hiện tại. Sử dụng khi được yêu cầu commit các thay đổi, tạo commit, tạo thông điệp commit, hoặc commit worktree hiện tại với…
official
issue
tldraw
Tạo và nghiên cứu một issue GitHub trong kho lưu trữ tldraw từ mô tả của người dùng. Sử dụng khi người dùng gọi issue, yêu cầu tạo issue, báo cáo lỗi,…
official