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

commit

Skill này làm gì

Skill này tạo một commit git với message ngắn gọn một dòng theo định dạng quy ước, như feat hoặc fix. Nó dành cho bất kỳ ai lưu thay đổi vào một dự án git.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent lưu hoặc commit thay đổi trong git.
  • ✓Khi bạn muốn một commit message ngắn theo kiểu feat, fix hoặc docs.
  • ✓Khi bạn chỉ muốn thêm các file đã thay đổi vào commit.

Liên kết skill

https://github.com/windmill-labs/windmill/blob/main/.agents/skills/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/windmill-labs/windmill/blob/main/.agents/skills/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

“Commit các thay đổi của tôi với một message rõ ràng, phù hợp với phong cách dự án của chúng tôi.”

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

Cách hoạt động

Skill yêu cầu agent kiểm tra trạng thái và khác biệt, thêm các file đã thay đổi theo tên, rồi viết một dòng message gồm loại và mô tả ngắn.

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.

Git Commit Skill

Create a focused, single-line commit following conventional commit conventions.

Instructions

  1. Analyze changes: Run git status and git diff to understand what was modified
  2. Stage only modified files: Add files individually by name. NEVER use git add -A or git add .
  3. Write commit message: Follow the conventional commit format as a single line

Conventional Commit Format

<type>: <description>

Types

  • feat: New feature or capability
  • fix: Bug fix
  • refactor: Code change that neither fixes a bug nor adds a feature
  • docs: Documentation only changes
  • style: Formatting, missing semicolons, etc (no code change)
  • test: Adding or correcting tests
  • chore: Maintenance tasks, dependency updates, etc
  • perf: Performance improvement

Rules

  • Message MUST be a single line (no multi-line messages)
  • Description should be lowercase, imperative mood ("add" not "added")
  • No period at the end
  • Keep under 72 characters total

Examples

feat: add token usage tracking for AI providers
fix: resolve null pointer in job executor
refactor: extract common validation logic
docs: update API endpoint documentation
chore: upgrade sqlx to 0.7

Execution Steps

  1. Run git status to see all changes
  2. Run git diff to understand the changes in detail
  3. Run git log --oneline -5 to see recent commit style
  4. Stage ONLY the modified/relevant files: git add <file1> <file2> ...
  5. Create the commit with conventional format:
    git commit -m "<type>: <description>"
    
  6. Run git status to verify the commit succeeded
Câu hỏi thường gặp

Định dạng quy ước nghĩa là gì?

Đó là một tiền tố ngắn như feat, fix hoặc docs, theo sau là dấu hai chấm và mô tả đơn giản.

Tại sao không thêm tất cả file cùng lúc?

Skill thêm từng file theo tên, nên các file thừa không vô tình được đưa vào commit.

Message có giới hạn độ dài không?

Có. Skill yêu cầu message dưới 72 ký tự trên một dòng.

Chi tiết

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

Create a git commit with conventional commit format. MUST use anytime you want to commit changes.

repo: windmill-labs/windmill

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10625
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ự