commit
Stage all changes and create or amend conventional commits. Use when asked to commit work, amend a commit, prepare a commit after implementation, or summarize committed changes. Trigger phrases: commit changes; amend commit; stage all changes; conventional commit; git add all.
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-23
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- commit
- license
- Apache-2.0
- description
- Stage all changes and create or amend conventional commits. Use when asked to commit work, amend a commit, prepare a commit after implementation, or summarize committed changes. Trigger phrases: commit changes; amend commit; stage all changes; conventional commit; git add all.
- allowed-tools
- Read Bash(git status:*) Bash(git add -A:*) Bash(git commit:*) Bash(git log:*)
- argument-hint
- [conventional-message]
- compatibility
- Requires git in a local repository.
02 资源文件 1
- 参考文档agents/openai.yaml175 B
03 SKILL.md 正文
Commit
Purpose
Stage the full worktree with git add -A and create or amend a conventional
commit, unless the user explicitly requests committing only specific files.
When the user asks to commit without narrowing scope, treat that as consent to
include every current worktree change.
Inputs
Required
worktree_state: the current repository state to be committed
Optional
conventional_message: the intended conventional commit messagechange_summary: a short summary to turn into a conventional commit message when one is not providedstaging_scope: specific files or paths to stage when the user explicitly requests a partial commit
Outputs
- A commit or amended commit
- The final commit hash and a short summary of what was included
Critical Rules
- Stage with
git add -Aby default - Always include untracked files
- Do not stop or narrow the commit because some changes were unexpected, unrelated, or user-authored when the user asked for the default full-worktree commit
- Only use partial staging when the user explicitly asks to commit only specific files or paths
- Always use conventional commit messages
- Amend only when the user explicitly asks
Workflow
- Review
worktree_stateso the commit contents are understood before staging. - If the user did not request partial staging, proceed with the default full-worktree commit even when the worktree contains unrelated or unexpected changes.
- Stage everything with
git add -Aunless the user explicitly asked for a partial commit, in which case stage only the requested files or paths. - Create or amend the commit using
conventional_messagewhen provided; otherwise derive a conventional message fromchange_summaryin the formtype(scope): summaryortype: summary. - Summarize the committed contents and provide the resulting commit hash.
Completion Criteria
- The correct staging scope was used: full worktree by default, or only the user-requested files for an explicit partial commit
- A default commit request included all current worktree changes without pausing over unrelated modifications
- The commit message uses a conventional format
- The user receives the resulting commit hash and a concise content summary
04 同仓库更多 Skills
good-skill
A valid skill alongside a malformed one.
bad-skill
Missing name field on purpose.
actual-skill-name
Fixture for testing mismatched folder and skill names
bad-skill
Missing required name field.
grouped-skill
Grouped skill boundary fixture.
boundary-skill
Skill boundary fixture.