git-staged-commit-message

根据已暂存(通过 git add)的文件生成 Git 提交信息草稿。仅在用户要求基于暂存更改或索引差异来起草或建议提交信息时使用;不代表用户执行提交操作。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "git-staged-commit-message":https://skillpi.com/zh/skills/deepskill-19b6c1d259c661390980e6a0c154e3abf21b35a7ada797a0b23efd63da1cf4c9。安装前核对上游来源和版本:https://skillhub.cn/skills/user_c971495e/git-staged-commit-message。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

根据已暂存(通过 git add)的文件生成 Git 提交信息草稿。仅在用户要求基于暂存更改或索引差异来起草或建议提交信息时使用;不代表用户执行提交操作。

0 下载

介绍来源: third_party · user_c971495e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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

  1. Work from the current repository unless the user names another path.
  2. 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.
  3. 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 with git add before using the skill again.
  4. Inspect staged changes only:
    • Prefer git diff --cached --stat for scope.
    • Use git diff --cached --name-status to 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.
  5. 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 totals or feat: 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 生成提交信息。

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 解决开发者日常高频刚需——根据暂存文件生成合适的提交信息,显著提升 Git 工作流效率
触发精准95/100

亮点

  • 触发词精准完整,覆盖多种变体(write/draft/create/suggest),边界清晰
结构规范95/100

亮点

  • Phase/步骤清晰(Workflow 5步),有出口条件,含端到端示例,frontmatter 完整
执行可靠95/100

亮点

  • 工具来源明确(git 命令),参数正确,覆盖主要异常,不可逆操作明确声明不执行
证据可验 (前四项均值)95/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。