一键导入
prepare-commit-changes
Stage specific code hunks using git hunks for selective commit preparation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stage specific code hunks using git hunks for selective commit preparation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing code changes, bug fixes, refactors, or multi-step edits that may sprawl; keeps work split into atomic, independently verifiable changes.
Helm chart development patterns for packaging and deploying Kubernetes applications. Use when creating reusable Helm charts, managing multi-environment deployments, or building application catalogs for Kubernetes.
Generate commit messages following conventional commit format.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation. Use when implementing GitLab CI/CD, optimizing pipeline performance, or setting up automated testing and deployment.
Use when building Go-based Kubernetes agents/controllers, reconcile loops, or cloud-native systems. Invoke for controller-runtime, CRDs, leader election, and Go concurrency.
| name | prepare-commit-changes |
| description | Stage specific code hunks using git hunks for selective commit preparation |
Use this when the user asks to stage changes to git.
file:@-old,len+new,len - derived from diff @@ headers, stable across reordering
git hunks list - List all unstaged hunks with unique IDsgit hunks list --staged - List already staged hunksgit hunks add <hunk-id> [<hunk-id> ...] - Stage specific hunks by their IDgit hunks list to show all unstaged hunksgit hunks list --staged to show already staged hunksgit hunks add with all selected hunk IDsList hunks and stage selected ones:
$ git hunks list
1. src/main.c:@-10,6+10,7
2. src/utils.c:@-25,3+25,4
3. tests/api.test.js:@-50,10+50,12
$ git hunks list --staged
A. src/config.c:@-5,2+5,3
Select hunks to stage (e.g., "1,3" or "1-2" or "all"): 1,3
$ git hunks add 'src/main.c:@-10,6+10,7' 'tests/api.test.js:@-50,10+50,12'
Staged: src/main.c:@-10,6+10,7, tests/api.test.js:@-50,10+50,12
Stage from already staged hunks:
$ git hunks list --staged
1. src/auth.c:@-100,5+100,6
Select hunks to stage (or press Enter to skip): 1
$ git hunks add 'src/auth.c:@-100,5+100,6'
Staged: src/auth.c:@-100,5+100,6