Automate the Git commit process by intelligently analyzing file changes, generating semantic commit messages with file paths, and providing an interactive command execution workflow. The workflow opens a new terminal, checks Git status, analyzes changes to create descriptive commit messages, lists commands for user review, and executes Git operations step by step with user confirmation.
execute_command tool to open a new terminal session.Use the execute_command tool to run git pull . if there is something wrong or conflict , prompt the user to interupt to fix
Use the execute_command tool to execute git status to check current repository state.
Analyze the output to understand the scope of changes in the current working directory. you should ignore dev.ts file.
For each changed file identified in git status:
read_file tool to examine the content of modified files if needed for context , you should use 'git diff' command to check the file modification detail ,not simplely read all the file contents, focus on the diff which is really important !Based on the file changes and any user-provided context information:
feat (1.22.1 -> 1.23.0): add new workflow creation process in .clinerules/workflows/create-new-workflow.mdfix (1.22.1 -> 1.23.0): resolve authentication issue in src/API/security/userActions.tsdocs: update README.md with installation instructionsBased on the file changes , a new changelog item should be appended in the changelog.md file ,and the new content should be put at the top to ensuer it is the first changelog item , as to the content , you can refer the changelog.md file , and make sure the title should contain date and time such as ## [1.8.0] - 2025-12-15 16:14
Based on the commmit message type ,such as feat , or fix .etc. you should change the version in the package.json file which is located in the project directory
Ensure the commit message is descriptive and includes relevant file paths for clarity.
Ensure the commit message contains modified files which are changed or new added files . the commit message should be in Chinese . the files list locates below the commit message and contribute to the commit messsage. Examplse : `feat (1.22.1 -> 1.23.0): 实现曝光模式切换功能并集成设备API下发
改动文件:
Use the ask_followup_question tool to ask the user for confirmation with clickable options:
Handle user response:
Execute git add .
execute_command tool to run git add .Execute git commit
execute_command tool to run git commit -m "final commit message"Final Confirmation
attempt_completion tool to present the final resultsgit commit -m) and ignore user-defined git aliases