commit
Commit current work by reviewing diffs, splitting into logical commits, and writing standardized messages. Use when the user says "commit", "commit this", "commit current work", or asks to create a git commit.
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-15
- Stars
- ★ 15
- Forks
- 1
01 前言 Front Matter
- name
- commit
- description
- Commit current work by reviewing diffs, splitting into logical commits, and writing standardized messages. Use when the user says "commit", "commit this", "commit current work", or asks to create a git commit.
- disable-model-invocation
- true
03 SKILL.md 正文
Commit Current Work
Workflow
-
Review all uncommitted changes
git status git diff git diff --cachedRead every changed file's diff to understand the full scope of changes.
-
Group changes into logical commits
If diffs are unrelated, split into multiple commits. Each commit should cover one logical unit of work.
Example — two unrelated changes in the working tree:
- Modified
src/components/reply-modal.tsx(UI fix) - Modified
src/stores/use-settings-store.ts(new setting)
These should be two separate commits, not one.
- Modified
-
Stage and commit each group
For each logical group:
git add <relevant files> git commit -m "title here" -
Display the commit title to the user wrapped in backticks (inline code).
Commit Message Rules
-
Title format: Conventional Commits with a required scope. The scope should be a short, human-readable name for the area of the codebase affected.
Pattern Example type(scope): descriptionfeat(reply modal): add textarea -
Never omit the scope.
feat: add textareais wrong.feat(reply modal): add textareais correct. -
Keep titles short. If more context is needed, add a commit body — but don't repeat the title.
-
Use
perf:for performance optimizations, notfix:.
Constraints
- Only commit when instructed. Do not commit subsequent changes unless explicitly told to.
- Never push — only commit locally.
- Never amend commits that have been pushed to a remote.
04 同仓库更多 Skills
deploy-app
Deploy the application to staging or production environments.
deploy
Deploy the application to environments.
building-native-ui
Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.
create-section
Use when creating a new section for the AI Workshop presentation. Guides through title slide setup, layout choices, and content gathering. Activates when user wants to add a new topic section to the slideshow.
ship-checker
Run a full pre-ship review for this repo. Use when asked if a change is ready to deploy, publish, or ship.
lint-check
Run repository linters and report failures.