--- name: commit description: Generates Conventional Commits messages and can stage/commit changes. Use when asked to create git commit messages or perform a commit. --- # Commit Message Generator (Conventional Commits) Generate commit messages following [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). ## Execution Style - Be concise and direct; avoid preambles or long plans. - Use explicit formatting and exact output requirements. - Infer type, scope, and breaking from the changes when possible; ask only if truly ambiguous. - Prefer tool-driven git commands over manual edits. ## Workflow 1. Run `git status` and `git diff HEAD`. 2. Stage only user-specified files; if user requests "all", use `git add -A`. 3. Infer type/scope/breaking from the diff when possible; ask only if needed. 4. Draft subject, body, and footers. 5. Commit using HEREDOC: ```bash git commit -m "$(cat <<'EOF' ():