Stage and commit changes with conventional commit format.
Stages all changes and commits them with conventional commit format.
/plugin marketplace add GGPrompts/TabzChrome/plugin install conductor@tabz-chromeStage all changes and commit with conventional commit format. This is a standalone atomic command.
/conductor:commit-changes
/conductor:commit-changes <issue-id>
/conductor:commit-changes <issue-id> <commit-type>
Commit types: feat, fix, docs, refactor, test, chore
Run these first:
/conductor:verify-build - Ensure build passes/conductor:run-tests - Ensure tests pass/conductor:code-review or /conductor:codex-review - Ensure review passesecho "=== Commit Changes ==="
# Check if there are changes to commit
if git diff --quiet && git diff --cached --quiet; then
echo "No changes to commit"
echo '{"committed": false, "reason": "no changes"}'
exit 0
fi
git status --short
echo ""
# Stage all changes
git add .
echo "Staged files:"
git diff --cached --name-only
echo ""
Analyze changes to determine appropriate commit type:
| Change Pattern | Type |
|---|---|
| New files/features | feat |
| Bug fixes | fix |
| Documentation only | docs |
| Code restructuring | refactor |
| Test additions | test |
| Build/config changes | chore |
Use the conventional commit format with Claude Code signature:
# Variables (set these based on context)
TYPE="${COMMIT_TYPE:-feat}" # feat, fix, docs, refactor, test, chore
SCOPE="${SCOPE:-}" # Optional: component/area affected
DESCRIPTION="${DESCRIPTION:-}" # Brief description
ISSUE_ID="${ISSUE_ID:-}" # Optional: beads issue ID
# Build commit message
if [ -n "$SCOPE" ]; then
HEADER="$TYPE($SCOPE): $DESCRIPTION"
else
HEADER="$TYPE: $DESCRIPTION"
fi
# Create commit with heredoc (unquoted EOF for variable expansion)
git commit -m "$(cat <<EOF
$HEADER
${ISSUE_ID:+Implements $ISSUE_ID}
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
Note: Claude should construct the actual commit message based on the changes. The heredoc uses unquoted EOF to enable variable expansion.
echo ""
echo "Commit created:"
git log -1 --oneline
echo ""
echo '{"committed": true, "sha": "'$(git rev-parse --short HEAD)'"}'
Returns JSON on last line:
{"committed": true, "sha": "abc1234"}
{"committed": false, "reason": "no changes"}
If commit fails:
git status for issues/conductor:commit-changes/conductor:verify-build - Run before commit/conductor:run-tests - Run before commit/conductor:code-review - Run before commit/conductor:close-issue - Run after commit/conductor:worker-done - Full pipeline that includes this