---
name: create-commit-message
description: Generate a commit message
---

# Create Commit Message

Generate an appropriate and easy-to-understand commit message based on the changes currently staged in Git.

## Execution Steps

1.  **Get the diff**:
    -   Run the following command in the root directory of the workspace to get the diff of the staged changes.

        ```powershell
        git diff --cached
        ```

2.  **Analyze the changes**:
    -   Analyze what kind of changes (file addition, deletion, bug fix, feature addition, refactoring, document update, etc.) were made from the obtained diff.
3.  **Create the commit message**:
    -   Create a commit message that clearly communicates the intent of the changes.
    -   Follow the rules below (compliant with Conventional Commits) for the format:
        -   **First line (summary)**: `<type>(<scope>): <summary of changes>`
            -   **Types**:
                -   `feat`: Addition of a new feature
                -   `fix`: Bug fix
                -   `docs`: Documentation-only changes
                -   `improve`: Changes that do not affect the meaning of the code (whitespace, formatting, missing semi-colons, refactoring, performance improvements)
                -   `test`: Addition or modification of tests
                -   `chore`: Changes to the build process, document generation tools, libraries, etc.
            -   **Scope**: Affected component or folder name (e.g. `aiagent`, `dev`, etc.)
            -   **Example**: `docs(aiagent): Create new guidelines`
        -   **Second line**: Blank line
        -   **Third line and after (details)**: If necessary, write the background of the change or detailed fix details in bullet points.
    -   Output both in English and Japanese
