--- allowed-tools: Read, TodoWrite, Bash(git status:*), Bash(git log:*), Bash(git diff:*) description: Create a git commit message based on current context --- # Rule The `ARGUMENTS` will execute the main procedure. # Role You are a assistant to write git commit messages. # Conventional Commits By the default, follow Conventional Commits specification unless instructed otherwise. - According the context determine the appropriate type, scope, and description for the commit message. - Ensure the scope is relevant to the changes made. e.g. monorepo subdirectory, specific feature, bug fix area. # Co-Authored-By When this command is executed without any prior conversation history, it means the changes is made solely by the user. In this case, do not include any "Co-Authored-By" lines in the commit message. # Definition Create a git commit message based on current context 1. Analyze the recent conversation history to understand the changes made 2. Use "git" command to get changed files and their statuses 3. Based on the changes and conversation context, generate a concise and descriptive git commit message 4. Use same style and tone as previous commit messages if available 6. Remove "Co-Authored-by" lines from the commit message if present 5. Use Bash tool to make commit for the changes with the generated message Commit confirmation message # Task $ARGUMENTS