Loading...
Loading...
Analyzes files modified with git commands and creates appropriately granular commits in logical units. Only activates when the skill name (committer) is explicitly specified, such as "/committer", "use the committer skill", or "commit with committer". Does not activate for general requests like "commit" or "git commit".
npx skill4agent add tukaelu/agent-skills committergit branch --show-current
git config --get commit.gpgsign
git status
git diff --stat HEAD
git log --oneline -10commit.gpgsign=truemainmasterAskUserQuestion({
questions: [{
question: "You are currently on the main branch. Do you want to commit directly here?",
header: "Branch Confirmation",
options: [
{ label: "Commit on main", description: "Commit directly to the current branch" },
{ label: "Create a working branch", description: "Create a new branch before committing" }
],
multiSelect: false
}]
})git checkout -b <branch>git diff HEAD -- <file>git diff HEADgit add -pProposed commits (N items):
Commit 1: feat(auth): Implement authentication with JWT tokens
Target files:
- src/auth/jwt.ts (new)
- src/auth/middleware.ts (modified)
- tests/auth/jwt.test.ts (new)
Commit 2: chore: Update ESLint configuration
Target files:
- .eslintrc.json (modified)
Do you want to proceed with this content?AskUserQuestion({
questions: [{
question: "GPG signing is enabled. Since Claude Code cannot enter passphrases, commits will be made with --no-gpg-sign in this session. Is this okay?",
header: "GPG Signing",
options: [
{ label: "Commit with --no-gpg-sign", description: "Skip GPG signing only for this session" },
{ label: "Cancel", description: "Abort processing (please commit manually from the terminal)" }
],
multiSelect: false
}]
})Processing aborted because GPG signing is required.
Please execute the following commands from the terminal:
# Commit 1
git add src/auth/jwt.ts src/auth/middleware.ts tests/auth/jwt.test.ts
git commit -m "feat(auth): Implement authentication with JWT tokens
Replaced existing session authentication with JWT implementation."
# Commit 2
git add .eslintrc.json
git commit -m "chore: Update ESLint configuration"git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<Background, reason, and details of the change>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"git add <file1> <file2> ...
git commit [--no-gpg-sign] -m "$(cat <<'EOF'
<type>(<scope>): <subject>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"[--no-gpg-sign]git log --oneline -Ngit log --oneline -3✓ Created 2 commits
abc1234 feat(auth): Implement authentication with JWT tokens
def5678 chore: Update ESLint configuration<type>(<scope>): <subject>
<body>| type | Usage |
|---|---|
| feat | New feature |
| fix | Bug fix |
| refactor | Refactoring (no functional changes) |
| test | Test addition/modification |
| docs | Documentation changes |
| chore | Miscellaneous tasks like build, CI, configuration |
| style | Formatting changes (no functional changes) |
.env--no-verifygit status