open-skills:preview-commit
Show the change summary and proposed commit message for selected current changes without committing.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- open-skills:preview-commit
- description
- Show the change summary and proposed commit message for selected current changes without committing.
03 SKILL.md 正文
Commit Preview
Reply in {{response_language}}.
Preview the commit for the changes the user selects. Do not modify files, stage, unstage, or commit.
-
Run
git status --short,git status,git diff, andgit diff --cached. If a merge, rebase, cherry-pick, or revert is in progress, report a conflict then stop. -
If there are no changes, say so and stop.
-
If there are unstaged or untracked changes, ask the user which changes to base the preview on. Do not stage or unstage anything. Offer the following options:
- preview only the changes already staged;
- preview all detected changes, including unstaged and untracked files;
- cancel the preview.
Wait for the user's choice before counting or writing the message. If there are no unstaged or untracked changes, preview the staged changes.
-
Count each file once, across all its changes, for the chosen set: tracked files against HEAD, untracked files against
/dev/null. Sum additions and deletions; count binary files without line totals. -
Write one short imperative message in {{commit_language}}. No body. Apply the
{{task_prefix_regexp}}prefix as increate-commit; a project-defined format wins. -
Report:
Changes: <file count> files, +<added lines> lines, -<removed lines> lines
Summary: <short description of what was done>
Commit: <short imperative message in {{commit_language}}>
Guards
- Never edit file contents, stage, unstage, reset, or stash.
- Do not undo user edits to restore a previous agent result.
04 同仓库更多 Skills
open-skills:track-changes
Report key changes in watched modules or files for the last day, or since Friday on Mondays, with authors and commits, in plain language.
open-skills:say-hello
A minimal test skill that greets the user.
open-skills:investigate-error
Investigate crashes from a stack trace or an error-monitoring MCP reference; use diagnostic red/green tests and report evidence, root cause, impact, counts, and fix priority without applying production fixes.
open-skills:implement-task
Start implementing the current task on the current branch right away.
open-skills:explain-task
Find a task by reference through the connected MCP tracker and explain it in clear, plain language.
open-skills:create-hotfix-branch
Create a new hotfix branch with an optional Gitflow prefix from an updated hotfix base branch using a task from the task tracker.