Chuyển đến nội dung
Skillpedia
Lập trình chung8.2k · #12545

create-commit

Skill này làm gì

Skill này giúp AI của bạn lưu công việc đã xong vào Git thành một commit sạch và nhỏ. Dành cho lập trình viên muốn các commit cẩn thận chỉ chứa những file cần thiết.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu AI commit công việc đã hoàn thành.
  • ✓Khi thư mục làm việc có nhiều thay đổi và bạn chỉ muốn commit một số trong đó.
  • ✓Khi bạn muốn một thông điệp commit theo phong cách Conventional Commits.

Liên kết skill

https://github.com/DevCaress/guia-entrevistas-de-programacion/blob/main/.claude/skills/create-commit/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/DevCaress/guia-entrevistas-de-programacion/blob/main/.claude/skills/create-commit/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

“Chỉ commit chương bạn đã hoàn thành hôm nay với một thông điệp rõ ràng, và đừng push.”

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

Cách hoạt động

Skill kiểm tra các thay đổi và thông điệp gần đây, chọn tập file hợp lý nhỏ nhất, chạy các kiểm tra liên quan và tạo commit. Nó không push, amend hay đổi nhánh trừ khi bạn yêu cầu.

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.

Create Commit

Create small, reviewable commits that follow this repository's contribution rules. Do not push, amend, rebase, reset, or change branches unless the user explicitly asks.

Workflow

  1. Inspect git status --short, the staged and unstaged diffs, and recent commit messages.

  2. Determine the smallest coherent commit. Preserve unrelated user changes; never use git add -A or git add ..

  3. If the intended files or scope are unclear, ask the user before staging or committing.

  4. Stage only the chosen paths with git add <path>....

  5. Select a Conventional Commit message. Prefer a scoped type when useful:

    docs(scope): describe documentation change
    feat(scope): describe user-facing addition
    fix(scope): describe corrected behavior
    test(scope): describe test change
    chore(scope): describe maintenance work
    ci: describe workflow change
    

    Use a concise, lowercase imperative subject with no final period. Reuse an explicit user-provided message if it is suitable.

  6. Run the relevant validation commands from CONTRIBUTING.md when they are practical for the changed files. Report any pre-existing or environment-related failure; do not conceal it by weakening checks.

  7. Review the staged diff one final time, then create the commit with git commit -m "<message>".

  8. Confirm success with git status --short and git log -1 --oneline.

Safety rules

  • Do not commit secrets, generated output, local configuration, or unrelated files.
  • Do not modify existing commits, force-push, or push any branch as part of this skill.
  • Do not bypass hooks with --no-verify unless the user explicitly authorizes it after the failure is explained.
  • If validation fails because of the proposed change, fix it before committing when the user asked for a finished commit. If it is unrelated, report it clearly.
Câu hỏi thường gặp

Nó có push commit của tôi lên máy chủ không?

Không. Skill không push trừ khi bạn yêu cầu rõ ràng.

Nó có thể commit mọi thứ cùng lúc không?

Không. Skill tránh thêm mọi file một cách mù quáng và chỉ stage các đường dẫn cần thiết.

Nó có tự viết thông điệp không?

Có. Nó đề xuất thông điệp theo kiểu Conventional Commit, hoặc dùng lại thông điệp bạn cung cấp.

Chi tiết

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

Create a safe, focused Git commit for this repository. Use when the user asks to commit completed work, prepare a commit, or choose a Conventional Commit message. Inspect the working tree, stage only intended files, validate relevant changes, and create the commit without pushing.

repo: DevCaress/guia-entrevistas-de-programacion

Độ phổ biến

Sao GitHub
8.2k
Vị trí xếp hạng
#12545
Giấy phép
MIT
Cập nhật
8/8/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ự