commit
Installation
SKILL.md
Commit
You are assisting with creating a git commit. Follow these steps:
1. Initial State Assessment
- Run
git statusto see uncommitted changes - Run
git fetch originto get latest remote updates - Detect the default branch:
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' - Identify current branch (default branch or feature branch)
- If on a feature branch, show commits with
git log origin/<default>..HEAD --oneline
2. Branch Handling
If on the default branch:
- Derive the most descriptive branch name from the staged changes
Related skills
More from yusuke-suzuki/dotfiles
resolve-comments
Resolve PR review comments
21fixup
Create a fixup commit and autosquash rebase
19publish
Push commits and create/update pull request
19sync
Sync feature branch with main via rebase
18lint-doc
Check documents against style rules and fix violations. Use after writing or editing documents to ensure compliance with document-writing and text-formatting-ja rules.
18release
Determine next semver tag, push it to trigger production deployment, and publish a GitHub release
6