git-staged-commit-message
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "git-staged-commit-message" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-19b6c1d259c661390980e6a0c154e3abf21b35a7ada797a0b23efd63da1cf4c9. Verify the upstream source and version against https://skillhub.cn/skills/user_c971495e/git-staged-commit-message before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate Git commit message drafts based on staged files (added via git add). Used only when the user requests drafting or suggesting commit messages based on staged changes or index diffs; does not perform commits on the user's behalf.
Introduction source: third_party · user_c971495e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Generate a Git commit message from the repository's staged files only. Use when the user asks Codex to write, draft, create, or suggest a commit message based on staged changes, cached diffs, the Git index, or files already added with git add; never commit on the user's behalf.
- Inputs and outputs
- Return the commit message in a code block so the user can use it directly. If there are no staged files, return a short Chinese prompt:
- Testing
- Not tested
Browse files
Frontmatter
name: git-staged-commit-message
description: Generate a Git commit message from the repository's staged files only. Use when the user asks Codex to write, draft, create, or suggest a commit message based on staged changes, cached diffs, the Git index, or files already added with git add; never commit on the user's behalf.Git Staged Commit Message
Workflow
- Work from the current repository unless the user names another path.
- Check that the directory is inside a Git worktree:
- Run
git rev-parse --show-toplevel. - If it is not a Git repository, tell the user that no commit message can be generated from staged files there.
- Run
- Check whether staged changes exist:
- Run
git diff --cached --quiet --exit-code. - If the exit code is
0, say there are no staged files and ask the user to stage files withgit addbefore using the skill again.
- Run
- Inspect staged changes only:
- Prefer
git diff --cached --statfor scope. - Use
git diff --cached --name-statusto understand file-level actions. - Use
git diff --cached --or focused path diffs to understand intent. - Do not use unstaged diffs, untracked files, or working tree changes unless the user explicitly asks for separate context, and never mix them into the commit message as if they were staged.
- Prefer
- Generate a commit message only. Do not run
git commit.
Message Style
- Match the repository's existing commit style when it is easy to inspect with
git log -5 --pretty=format:%s. - If no style is obvious, use a concise Conventional Commits-style subject such as
fix: correct payment summary totalsorfeat: add staged commit message skill. - Keep the subject under about 72 characters when practical.
- Add a short body only when the staged changes need context, migration notes, risk notes, or multiple related bullets.
- Mention tests or verification only if that information is visible from staged changes or the user explicitly provides it.
Output
Return the commit message in a code block so the user can use it directly.
If there are no staged files, return a short Chinese prompt:
当前没有暂存文件。请先使用 git add 暂存需要提交的文件后,再重新使用这个 skill 生成提交信息。Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决开发者日常高频刚需——根据暂存文件生成合适的提交信息,显著提升 Git 工作流效率
Highlights
- 触发词精准完整,覆盖多种变体(write/draft/create/suggest),边界清晰
Highlights
- Phase/步骤清晰(Workflow 5步),有出口条件,含端到端示例,frontmatter 完整
Highlights
- 工具来源明确(git 命令),参数正确,覆盖主要异常,不可逆操作明确声明不执行
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.