commit
Commits staged changes with an appropriate commit message using the git-operations-specialist skill.
Core Guidelines
Before starting any task, read and follow /key-guidelines
Dependencies
- use git-operations-specialist skill
Instructions
IMPORTANT: Use the git-operations-specialist skill (via Skill tool) for ALL git-related operations in this command.
Analyze the staged changes and safely commit them with an appropriate commit message.
Required Execution Items
-
Check Staging Status: Run
git statusto confirm what changes are staged -
Review Staged Changes: Use
git diff --stagedto review the content of staged changes -
Create Commit: Commit the staged changes with an appropriate commit message
-
Verify Commit: Run
git statusafter committing to confirm the commit was successful
Commit Message Guidelines
- Follow the
.gitmessagetemplate format - Use appropriate commit type prefixes:
feat,fix,refactor,docs,style,test,chore - Write clear, concise messages that describe the change
⚠️ Important Constraints
- Never use any
git addcommands – Only commit what is already staged - Use HEREDOC – Maintain proper formatting of commit messages
- Stage verification first – Always check what's staged before committing
- Single commit – Create one commit for all currently staged changes
Example Usage
If you have already staged changes:
# Staged files:
- apps/api/src/routes/timeline.ts
- apps/api/src/types/timeline.ts
This command will create a single commit containing both files with an appropriate message like:
feat: タイムラインAPIのルートと型定義を追加