claude-configs/commands/commit-push.md
Cal Corum 17b0e37ad1 Sync: new commit commands, cognitive-memory uv fix, major-domo CLI split, statusline plugin
- Add commit.md and commit-push-pr.md commands
- Update cognitive-memory SKILL.md to use claude-memory wrapper
- Split major-domo CLI into cli.py + cli_admin.py
- Add claude-statusline scripts and plugins dir
- Remove deprecated claude-pulse script
- Update settings.json and claude-researcher agent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 16:14:44 -06:00

27 lines
1.3 KiB
Markdown

---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git push:*), Bash(git commit:*), Bash(git branch:*), Bash(git remote:*)
description: Commit and push to remote
---
**This command IS explicit approval to commit and push — no need to ask for confirmation.**
## 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:
1. If there are no changes, say "Nothing to commit" and stop
2. Stage all relevant changed files (prefer specific files over `git add -A` — avoid secrets, .env, credentials)
3. Draft a concise commit message following the repo's existing style (focus on "why" not "what")
4. Create the commit with `Co-Authored-By: Claude <model> <noreply@anthropic.com>` where `<model>` is the model currently in use (e.g., Opus 4.6, Sonnet 4.6, Haiku 4.5)
5. Push to the remote with `-u` flag: `git push -u origin <branch>`
6. Confirm success with the commit hash
You have the capability to call multiple tools in a single response. Stage, commit, and push using a single message. Do not use any other tools or do anything else. Do not send any other text or messages besides these tool calls.