Add and commit changes using conventional commits
Create a git commit for the current changes using the Conventional Commits standard.
Based on the conversation, determine what context is relevant for the commit message. If the user provided specific guidance about what to commit or the commit message, use that. Otherwise, analyze the changes to determine an appropriate commit message.
Analyze the changes by running:
git status to see all modified/untracked filesgit diff to see unstaged changesgit diff --staged to see already-staged changesgit log --oneline -5 to see recent commit styleStage appropriate files:
git addDetermine the commit type based on the changes:
feat: New feature or capabilityfix: Bug fixdocs: Documentation onlystyle: Formatting, whitespace (not CSS)refactor: Code restructuring without behavior changeperf: Performance improvementtest: Adding or updating testsbuild: Build system or dependenciesci: CI/CD configurationchore: Maintenance tasks, tooling, configDetermine the scope (optional):
feat(parser):, fix(api):Write the commit message:
<type>[optional scope]: <description><type>[scope]: <subject>
[optional body explaining WHY this change was made]
Simple change:
fix(parser): handle empty input without throwing
With body:
feat(api): add streaming response support
Large responses were causing memory issues in production.
Streaming allows processing chunks incrementally.
git commit --amend unless the user explicitly requests it--no-verify to skip hooksRun the git commands to analyze, stage, and commit the changes now.