When committing and pushing code, always include:
Modification summary: Concisely summarize the changes in the current workspace (such as feature development, bug fixes, document updates, file additions/deletions, etc.), no more than 50 characters for the brief summary, with detailed descriptions if necessary.
Local Git author email: Sign with the author email configured in the local Git, using the format "Signed-off-by: [local-git-user-email]". The email must be obtained from the local Git configuration (command: git config user.email), not manually entered.
Co-Author information: Fixed format "Co-Authored-By: noreply@anthropic.com", where must be replaced with the name of the currently used model (e.g., Claude 3.5 Sonnet, Claude 3 Opus).
Execution steps (in order):
Scan the workspace changes (git status, git diff --name-only) and generate a modification summary.
Extract the local Git author email via the command "git config user.email".
Replace in the co-author format with the current model name.
Execute git add ., then git commit with the standard format, and finally git push to the remote repository.
Commit message template (mandatory):
type: concise modification summary
Detailed changes (optional):
Change 1
Change 2
Signed-off-by: local-git-user@example.com
Co-Authored-By: noreply@anthropic.com