Install any skill in seconds. Free to start, no credit card required.
Get Started Free →laolaoshiren/git-workflow
安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。
Passed 17 of 19 test cases with the skill, and 14 of 19 without it.
and 4 more in the full report
5 fixed15 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I just executed a commit in the CLI. What command should be run immediately after to verify the commit hash and file diff stats for HEAD?
| Checked | Without skill | With skill |
|---|---|---|
| The response uses git show --stat --oneline HEAD. | Missed | Passed |
The instructions your model reads when the skill loads.
先阅读适用的 AGENTS.md、CONTRIBUTING.md、README、提交规范和 CI 说明,再检查:
git status --short --branch
git diff
git diff --cached
git log --oneline -10
git remote -v
git branch -vv
同时识别未跟踪文件、当前分支、upstream、远程差异和已有失败。不得只看 staged diff。
把用户请求拆成独立授权:
| 动作 | 默认权限 |
|---|---|
| 分析状态、生成 commit message 或 PR 文案 | 只读 |
| 暂存、commit | 仅用户要求后执行,只选本轮相关文件 |
| 创建或切换分支 | 仅用户明确要求时执行;实现流程需要但未获授权时,先说明原因并取得同意 |
| fetch、push、创建 PR | 分别确认在请求范围内,不互相推导 |
| merge、关闭 Issue、发布 Release | 必须有明确授权 |
| rebase、修改已发布历史、强制更新远程 | 高风险,必须明确授权并满足额外条件 |
存在无关改动时不得使用 git add . 或 git add -A。逐个暂存目标文件,并用 git diff --cached 复核。
test cases passed, vs 14 / 19 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.