Chuyển đến nội dung
Skillpedia
Lập trình chung20k · #10372

commit-dis

Skill này làm gì

Skill này để AI commit đúng các file nó đã thay đổi trong cuộc trò chuyện hiện tại lên nhánh bạn đang dùng. Skill dành cho người muốn lưu công việc của mình trong Git một cách nhanh chóng.

Khi nào nên dùng

  • ✓Khi bạn nói commit cái này, lưu công việc của tôi, hoặc commit những gì chúng ta đã làm trong cuộc trò chuyện này.
  • ✓Khi bạn chỉ muốn commit các file từ cuộc trò chuyện này, không đụng tới thay đổi không liên quan.
  • ✓Khi bạn muốn commit được giữ trên nhánh hiện tại, không push và không mở pull request.

Liên kết skill

https://github.com/kortix-ai/suna/blob/dev/.agents/skills/commit-dis/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/kortix-ai/suna/blob/dev/.agents/skills/commit-dis/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Commit các thay đổi vừa làm trong cuộc trò chuyện này lên nhánh hiện tại của tôi, và giữ nguyên mọi thứ khác.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI kiểm tra nhánh hiện tại và danh sách file đã thay đổi, thêm riêng các file của phiên này theo tên, rồi tạo một commit. AI không push và không mở pull request.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

commit-dis — commit this session's work, here, now

Stage and commit the changes produced during this conversation onto the current branch. Nothing more. This is the quick "save what we just did" button.

THE RULES

  1. Stay on the current branch. Do NOT create, switch, or rename a branch. Commit wherever HEAD already points — even if that's main. Never run git checkout -b, git switch -c, or git branch.
  2. Only commit what this session changed. Stage the specific files you created or edited in this thread by path. Do NOT git add -A / git add . blindly — that risks sweeping in unrelated working-tree changes, untracked scratch files, or another task's edits. No overcommitting.
  3. No push, no PR. Stop after the commit unless the user explicitly asks to push or open a PR.
  4. One commit for the session's work unless the user asks otherwise.

Steps

  1. Confirm the branch and see what's changed:
    git rev-parse --abbrev-ref HEAD
    git status --short
    
  2. Identify the exact files this session touched. If anything in git status was NOT changed by this session, leave it unstaged. If it's ambiguous whether a dirty file belongs to this session, ask the user rather than guessing.
  3. Stage by explicit path (never -A/.):
    git add <file1> <file2> ...
    
  4. Commit with a clear message describing what this session did. End the message with the standard trailer:
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    
  5. Confirm:
    git log --oneline -1
    

Don't

  • Don't create or switch branches.
  • Don't git add -A, git add ., or git commit -a.
  • Don't push or open a PR.
  • Don't amend or rebase prior commits.
  • Don't stage files you didn't touch this session (build artifacts, other in-flight work, untracked scratch).
Câu hỏi thường gặp

Nó có tạo nhánh mới không?

Không. Nó commit trên nhánh đang checkout, kể cả khi đó là main.

Nếu có file đã đổi không thuộc cuộc trò chuyện này thì sao?

Skill nói sẽ để file đó chưa stage, và hỏi bạn khi không rõ file có thuộc phiên này không.

Nó có push commit không?

Không. Skill dừng sau khi commit, trừ khi bạn yêu cầu push hoặc mở pull request.

Chi tiết

Mô tả gốc của tác giả

Stage and commit ONLY the work done in this session, on the CURRENT branch — no new branch, no PR, no push. Load whenever the user says 'commit this', 'commit-dis', 'git add commit what we did', 'commit dis', 'save my work', or otherwise asks to commit the changes from the current thread. Enforces: stay on the already-checked-out branch, never overcommit unrelated files.

repo: kortix-ai/suna

Độ phổ biến

Sao GitHub
20k
Vị trí xếp hạng
#10372
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự