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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
Inspect
git status --short, the staged and unstaged diffs, and recent commit messages.Determine the smallest coherent commit. Preserve unrelated user changes; never use
git add -Aorgit add ..If the intended files or scope are unclear, ask the user before staging or committing.
Stage only the chosen paths with
git add <path>....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 changeUse a concise, lowercase imperative subject with no final period. Reuse an explicit user-provided message if it is suitable.
Run the relevant validation commands from
CONTRIBUTING.mdwhen they are practical for the changed files. Report any pre-existing or environment-related failure; do not conceal it by weakening checks.Review the staged diff one final time, then create the commit with
git commit -m "<message>".Confirm success with
git status --shortandgit 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-verifyunless 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.
Độ 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
Bình luận
- …
Thêm skill từ kho mã này
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.