Skip to content
Development
Command

/acp

Stage changes, generate conventional commit message, commit, and push to current branch. One-shot git add-commit-push.

From plugin
claude-night-market
325163 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

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/acp

Context preview

What this command does when you run it.

Stage changes, generate conventional commit message, commit, and push to current branch. One-shot git add-commit-push.

Command definition

acp.md
description: Stage changes, generate conventional commit message, commit, and push to current branch. One-shot git add-commit-push.
model_hint: fast

Add, Commit, Push

Stage all changes, generate a conventional commit message, commit, and push to the current branch. One-shot workflow for when changes are ready to go.

Steps

1. **Gather context** (run in parallel):

  • `git status -sb`
  • `git diff --stat` (unstaged and staged)
  • `git diff` (full diff for commit message)
  • `git log --oneline -5`
  • `git branch --show-current`
  • `git rev-parse --abbrev-ref @{upstream} 2>/dev/null` (check if tracking remote)

2. **If no changes exist** (nothing staged or unstaged), tell the user and stop.

3. **Stage all changes**:

  • `git add` each changed and untracked file by name
  • Do NOT use `git add -A` or `git add .`
  • Do NOT stage `.env`, credentials, or secrets files
  • Do NOT stage `.claude/state/` directory

4. **Draft a conventional commit message** following the same rules as `/commit-msg`:

  • Type: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`,

`style`, `perf`, `ci`

  • Scope: from the changed directory or module
  • Summary: imperative mood, 50 chars max
  • Body: what and why, wrapped at 72 chars
  • No AI attribution, no emojis, no slop

5. **Commit** with the drafted message. Use a HEREDOC:

   git commit -m "$(cat <<'EOF'
   <message>
   EOF
   )"

6. **If the commit fails** due to pre-commit hooks, fix the issues and create a new commit. Do NOT use `--no-verify`.

7. **Push** to the current branch:

  • If tracking a remote branch: `git push`
  • If no upstream set: `git push -u origin <branch>`

8. **Report** the commit hash, branch, and remote URL.

Read more
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market