Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.02 KB

File metadata and controls

55 lines (40 loc) · 1.02 KB
name commit
description Stage, commit, and optionally push changes with conventional commit format. Use after completing a task.
disable-model-invocation true
argument-hint [optional message]

Commit Changes

Workflow

1. Review Changes

git status
git diff --staged
git diff

2. Stage Files

Stage specific files (never git add . or git add -A):

git add <specific-files>

3. Create Conventional Commit

Format: type(scope): description

Types: feat, fix, chore, refactor, docs, test, style, perf

git commit -m "$(cat <<'EOF'
feat(orders): add position size calculator
EOF
)"

4. Push (if requested)

git push

Rules

  • Conventional commits enforced
  • Scope should be the module/feature name
  • Keep the first line under 72 characters
  • Add body for complex changes
  • Do NOT include Co-Authored-By trailer — user is sole author
  • Never commit .env, credentials, or secrets
  • Never use --no-verify unless explicitly asked