AGENT SKILL
commit
Commit the changes that has been worked on in this session
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- commit
- trigger
- auto
- description
- Commit the changes that has been worked on in this session
03 SKILL.md 正文
Prepare a git commit for the current task. User context: $ARGUMENTS
Workflow
- Inspect repository state.
- Run
git status --short. - Run
git diff --name-onlyandgit diff --cached --name-only.
- Build a candidate set from current-task work only.
- Include files and hunks created or edited for the current request.
- Exclude pre-existing, unrelated, or user-authored edits that were not part of this task.
- If confidence is not high for any file or hunk, mark it as uncertain.
- Resolve uncertainty before staging.
- If any file or hunk is uncertain, stop and ask the user exactly what to include.
- Ask with explicit paths/hunks so the user can approve or exclude each uncertain change.
- Do not commit until all uncertain items are resolved.
- Stage explicit paths/hunks only.
- Use
git add <file1> <file2> .... - Use
git add -p <file>when only part of a file belongs in this commit. - Do not use
git add .orgit add -Aunless the user explicitly asks to commit everything.
- Validate staged content.
- Run
git diff --cached. - Confirm staged hunks are only the current-task edits and do not include accidental or unrelated changes.
- Write a Conventional Commit message.
- Use one type:
feat,fix,chore,refactor,docs,test. - Optional scope format:
type(scope): summary. - Keep the subject concise and imperative.
- Commit non-interactively.
- Run
git commit -m "<message>". - Do not use interactive commit flows.
- Do not amend existing commits unless the user explicitly asks.
- Report completion.
- Provide commit hash, commit subject, and file list.
- Also report remaining modified or untracked files.
Safety rules
- Never revert user changes unless explicitly instructed.
- Never run destructive commands (
git reset --hard, force checkout) unless explicitly instructed. - Never include a change with unclear ownership; ask the user first.
- Prefer one focused commit per user request unless asked to split into multiple commits.
04 同仓库更多 Skills
sync-slay-skill
Read CLI command source files and regenerate the slay SKILL.md + init.ts command reference to match
★ 0
sustainable-solution-question
Asks if the implementation is a sustainable solution
★ 0
slay
Full CLI reference for slay — orchestrates all slay domain skills
★ 0
slay-tasks
Manage tasks, subtasks, tags, and templates via the slay CLI
★ 0
slay-pty
Interact with PTY terminal sessions via the slay CLI
★ 0
slay-projects
Manage projects via the slay CLI
★ 0