Files
leo-claude-mktplace/plugins/git-flow/commands/gitflow-commit.md
lmiranda 2d51df7a42 feat(marketplace): command consolidation + 8 new plugins (v8.1.0 → v9.0.0) [BREAKING]
Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action>
sub-command pattern. Git-flow consolidated from 8→5 commands (commit
variants absorbed into --push/--merge/--sync flags). Dispatch files,
name: frontmatter, and cross-reference updates for all plugins.

Phase 2: Design documents for 8 new plugins in docs/designs/.

Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate,
saas-react-platform, saas-test-pilot, data-seed, ops-release-manager,
ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents,
skills, README, and claude-md-integration. Marketplace grows from 12→20.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:52:11 -05:00

3.0 KiB

name, description, agent
name description agent
gitflow commit Create a git commit with auto-generated conventional commit message. Supports --push, --merge, --sync flags. git-assistant

/gitflow commit - Smart Commit

Skills

  • skills/visual-header.md
  • skills/git-safety.md
  • skills/commit-conventions.md
  • skills/sync-workflow.md
  • skills/merge-workflow.md
  • skills/environment-variables.md

Purpose

Create a git commit with an auto-generated conventional commit message. Optionally push, merge, or sync in the same operation.

Parameters

Parameter Description
--message, -m Override auto-generated message
--all, -a Stage all changes before commit
--push After commit: push to remote (replaces former /git-commit-push)
--merge [target] After commit: merge into target branch (replaces former /git-commit-merge)
--sync After commit: push and sync with base branch (replaces former /git-commit-sync)
--force Force push (with --push or --sync, requires confirmation)
--squash Squash commits on merge (with --merge)
--no-delete Keep branch after merge (with --merge)
--base Override default base branch (with --sync)
--no-rebase Use merge instead of rebase (with --sync)

Workflow

Base: Commit

  1. Display header — GIT-FLOW Smart Commit
  2. Check protected branch — per git-safety.md
  3. Analyze changesgit status and git diff --staged
  4. Handle unstaged — Prompt to stage if nothing staged
  5. Generate message — Create conventional commit (per commit-conventions.md)
  6. Confirm or edit — Present message with options
  7. Execute commit

Flag: --push

  1. Check upstream — Set up tracking if needed
  2. Push to remote
  3. Handle conflicts — Offer rebase/merge/force if push fails

Flag: --merge

  1. Identify target — Prompt for target branch if not specified
  2. Select strategy — Merge commit, squash, or rebase (per merge-workflow.md)
  3. Execute merge — Switch to target, pull, merge, push
  4. Handle conflicts — Guide resolution
  5. Cleanup — Offer to delete merged branch

Flag: --sync

  1. Push committed changes
  2. Fetch with prunegit fetch --all --prune
  3. Sync with base — Rebase on base branch (per sync-workflow.md)
  4. Handle conflicts — Guide resolution (per merge-workflow.md)
  5. Push againgit push --force-with-lease if rebased
  6. Report stale branches

Flag Mutual Exclusivity

--push, --merge, and --sync are mutually exclusive. If multiple are provided, error with: "Only one of --push, --merge, or --sync may be specified."

Output

Base commit:

Committed: abc1234
feat(auth): add password reset functionality

With --push:

Committed: abc1234
Pushed to: origin/feat/password-reset

With --merge:

Committed: abc1234
Merged feat/password-reset -> development

With --sync:

Committed: abc1234
Pushed to: origin/feat/password-reset
Synced with: development