commit-changes

bởi 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…

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

Commit changes

Create a focused git commit for the current changes.

Workflow

  1. Gather context:
    • User notes, if provided.
    • Current branch: git branch --show-current.
    • Working tree: git status --short.
    • Staged changes: git diff --cached --stat.
    • Unstaged changes: git diff --stat.
    • Recent commits for style reference: git log -5 --oneline.
  2. Review the changed files.
  3. If there are no changes to commit, tell the user and stop.
  4. If there are unstaged changes, stage the relevant files with git add.
  5. Do not stage files that look like secrets, credentials, API keys, or private environment files.
  6. Write a conventional commit message:
type(scope): brief description

Optional longer explanation if the changes are complex.

Allowed types: feat, fix, refactor, test, docs, chore, perf, style, build, ci.

Message guidelines

  • Keep the first line under 72 characters.
  • Use imperative mood, for example add feature, not added feature.
  • Be specific about what changed and why.
  • Incorporate user-provided context when it clarifies intent.

Commit rules

  • Use git commit -m "message".
  • Do not push.
  • Do not amend unless explicitly requested.
  • Do not use --no-verify.
  • Do not include AI attribution.

If the commit fails because of hooks, fix mechanical formatting, lint, or import issues and retry. If the hook failure reveals a meaningful product or implementation issue, stop and ask the user how to proceed.

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
clean-copy
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…
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