git-commit-ja
Purpose
Section titled “Purpose”Analyzes the changes in the working tree, creates one commit message, and commits. The commit covers all changes in the working tree, including staged, unstaged, and untracked files. If the current branch is main or master, it creates a new branch before committing.
It does not review or recheck the changes, and does not run git push.
How to start it
Section titled “How to start it”Put /skill:git-commit-ja at the start of your input and send it. It takes no arguments.
This skill is not manual-start only. The Agent may start it on its own judgment based on your request. Its description says to use it when you explicitly ask for a commit.
Pressing the “Commit” button at the top of the Changes Pane also sends /skill:git-commit-ja to the chat.
When to use it
Section titled “When to use it”- Use it when you want to leave everything from writing the commit message to committing the changes in the working tree to the Agent.
- This skill does not review or recheck the changes. If you want the changes reviewed, use a review skill such as double-check before committing.
Example input and result
Section titled “Example input and result”Example input:
/skill:git-commit-ja
According to the skill’s instructions, the result is as follows.
- If there are no changes, it reports “変更なし” (no changes) and ends.
- From the changes, it creates one commit message in the form
<type>: <description>. The type is chosen fromfeat,fix,docs, and others. The description part of the commit message is in Japanese, within 50 characters. - If the current branch is main or master, it creates a branch named
<type>/<description in English kebab-case>and commits on that branch. - It stages all changes in the working tree with
git add -Aand commits them. It does not pick only some of the files to commit. - When it ends, it reports one of “変更なし” (no changes), “コミット成功” (commit succeeded), or “未完了” (not completed). When the commit succeeds, it reports the branch name, the commit ID, the commit message, the number of changed files and the main changes, and whether any changes remain.
- If changes remain after the commit, it reports “未完了” (not completed) instead of “コミット成功” (commit succeeded), with what remains and why.
- It does not run
git push. It does not add an AI agent’s signature or attribution to the commit message.
Position in the AI-driven development workflow
Section titled “Position in the AI-driven development workflow”It is the 8th of the 11 steps in the AI-driven development workflow. The previous step is git-branch-code-review-ja, and the next step is git-push-and-create-merge-request-ja. For the order of the steps, see “Order in the AI-driven development workflow” in Bundled skills.