Skip to content
Development
Command

/commit

Create a git commit

From plugin
ccexp
2713 skills3 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Create a git commit

Command definition

commit.md
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
denied-tools: Bash(git push:*), Bash(git commit -n:*), Bash(git commit --no-verify:*)
argument-hint: [additional instructions]
description: Create a git commit

Create a git commit with the following additional instructions: $ARGUMENTS

Context

  • Current git status: `!git status`
  • Current git diff (staged and unstaged changes): `!git diff HEAD`
  • Current branch: `!git branch --show-current`
  • Recent commits: `!git log --oneline -10`

Your task

Based on the above changes, create a single git commit.

Important Notes

  • **Selective staging**: Only stage files that are directly related to the task. Do not use `git add .` as it may include temporary notes or unrelated work-in-progress files
  • **Commit messages**: Use the same language as the repository's existing commits (check recent commit history)
Ships withccexp

Interactive CLI tool for exploring and managing Claude Code settings and slash commands

Get the whole plugin
Stats
271
Stars
9
Forks
Active
Maintenance
TypeScript
Language
MIT
License
2d ago
Last commit
1y ago
Created

Repo: nyatinte/ccexp