From 1f2b50a59d445f60858ae4a47c9e9f72b39086a9 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 29 Sep 2025 16:04:00 -0400 Subject: [PATCH] Add /c command documentation for Claude Code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- modules/home/claude-code/commands/c.md | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/home/claude-code/commands/c.md diff --git a/modules/home/claude-code/commands/c.md b/modules/home/claude-code/commands/c.md new file mode 100644 index 0000000..282be3d --- /dev/null +++ b/modules/home/claude-code/commands/c.md @@ -0,0 +1,38 @@ +--- +name: c +description: Commit current changes +--- + +This command commits the current changes to git. + +**Usage**: `/c` + +**What it does**: +1. Runs `git add` on individual modified/new files (never on directories or '.') +2. Runs `git commit` to commit the staged changes +3. Never runs `git push` automatically + +**Important constraints**: +- Claude should NEVER automatically commit changes unless this command is explicitly invoked +- Only adds individual files, never uses `git add .` or `git add ` +- Never automatically pushes changes +- Never rewrites git history (no rebase, amend, reset --hard, etc.) +- Only commits when user explicitly runs this command + +**Workflow**: +1. Check git status to identify modified and new files +2. Add each file individually using `git add ` +3. Prompt for commit message or use a descriptive default +4. Run `git commit` with the message +5. Confirm successful commit + +**Prerequisites**: +- Must be in a git repository +- Must have changes to commit + +**Example**: +``` +/c +``` + +This will stage individual files and commit all current changes. \ No newline at end of file