How this command is triggered — by the user, by Claude, or both
Slash command
/commit-commands:commitThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
<!--
GIẢI THÍCH CHO NGƯỜI MỚI:
File này là một "command definition" - định nghĩa lệnh slash /commit
Phần "---" ở trên gọi là "frontmatter" (metadata):
- allowed-tools: Các công cụ (lệnh bash) mà Claude được phép sử dụng
+ git add: Thêm file vào staging area
+ git status: Xem trạng thái hiện tại
+ git commit: Tạo commit
- description: Mô tả ngắn về lệnh
Phần "!`lệnh`" là cú pháp đặc biệt:
- Khi Claude đọc file này, nó sẽ CHẠY lệnh trong backtick
- Kết quả được dùng làm ngữ cảnh (context) cho Claude
Ví dụ: !`git status` → Claude chạy "git status" và đ...git statusgit diff HEADgit branch --show-currentgit log --oneline -10Dựa trên các thay đổi ở trên, tạo một git commit duy nhất.
Bạn có khả năng gọi nhiều công cụ trong một phản hồi. Stage và tạo commit sử dụng một message duy nhất. Không sử dụng công cụ khác hoặc làm bất cứ điều gì khác. Không gửi bất kỳ văn bản hoặc tin nhắn nào ngoài các tool call này.
npx claudepluginhub trannguyenthanhthao2024-art/claude-code --plugin commit-commands/commitStages unstaged changes based on git status and diff analysis, then creates a commit with a generated message. Uses current branch and recent commit history for context.
/commitStages changes and commits locally using Conventional Commits format. Analyzes git status/diffs, drafts typed message with scope, confirms with user before git add and commit.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitRuns pre-commit git checks, quality gates (lint, typecheck, tests), code review for issues; drafts conventional commit message; stages specific files and commits. Supports --no-verify, --amend, --push options.
/commitAnalyzes current git diff, generates 3 conventional commit message options (concise, detailed, comprehensive), presents for user selection, and executes git commit.