commit-staged
Commits the staged changes with a one-line message. Use when the user asks to commit.
SKILL.mdbench/judge/corpus/units/q08-b/.claude/skills/commit-staged/SKILL.md
GitHubCommit staged
Git is a distributed version control system. It records snapshots of your files as commits, and each commit points at its parent, which forms a history. A commit is created from the staging area, which holds the changes you chose.
Before you begin
Check git status. Make sure there are staged changes. If nothing is staged, tell the user and stop.
Steps
- Run
git diff --cached --stat. - Write a one-line message under 72 characters.
- Run
git commit -m "<message>".
Before you begin
Check git status. Make sure there are staged changes. If nothing is staged, tell the user and stop.