一键导入
split-commits-by-diff
Split Git commits by diff hunks to create clean, scoped changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Split Git commits by diff hunks to create clean, scoped changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
YouTube Titles and Descriptions specialist for Azion tech videos. Creates optimized titles, descriptions, keywords, and timestamps to drive clicks and search rankings. Use this skill when the user asks for YouTube metadata, video titles, video descriptions, YouTube SEO, or shares a video concept that needs packaging for YouTube. Output is always in English.
Clean up local git branches that have been removed from the remote repository. Use when the user wants to tidy up their local git branches, remove stale branches, clean up after merging PRs, or mentions 'cleanup branches', 'remove old branches', 'prune local branches', 'git branch cleanup'. Safely handles uncommitted changes, preserves local-only branches, and provides a detailed report.
Extreme Programming adapted for AI-human pair development. Use whenever the user wants to work in a structured, iterative way with their AI agent — mentions XP, extreme programming, pair programming, agile, YAGNI, simple design, continuous refactoring, or wants to plan before coding. Also use when the user wants to build features incrementally with tests, feedback loops, and clear role division between human and AI. This skill is the AI-era evolution of pair programming.
Create a GitHub Pull Request with gh CLI and prefer repository PR templates automatically. Use this whenever the user asks to open/create a PR, especially when template compliance is needed. If multiple templates exist, ask the user which template to use.
基于 SOC 职业分类
| name | split-commits-by-diff |
| description | Split Git commits by diff hunks to create clean, scoped changes. |
Use this skill to turn a mixed working tree into clean, scoped commits.
reset --hard, checkout --, force push) unless the user explicitly asks.commit --amend, rebase) unless the user explicitly asks..env, key files, token dumps).Run these first:
git status --short
git diff
git diff --cached
git log -n 12 --pretty=format:"%h %s"
Understand:
Create a grouping proposal before staging:
For each proposed group, define:
If one hunk belongs to a different intent than the rest of the file, use patch staging.
Default staging strategy:
git add <file>git add -p <file>If interactive hunk selection is unavailable in the runtime, use this fallback:
git restore --staged for specific files.git diff --cached matches the current group exactly.Commit with a concise message aligned to repo style.
Message guidance:
Example styles:
fix(auth): avoid duplicate refresh token writesrefactor(blog): extract locale normalization helperdocs: clarify cache invalidation workflowAfter each commit:
git show --stat --oneline -1
git status --short
Then repeat staging and commit for the next group until complete.
At the end, run:
git log --oneline -n <number_of_new_commits>
git status
Report:
When splitting is ambiguous, prioritize in this order:
Do not force perfect atomicity if it causes fragile or misleading commits.
When invoked, communicate in this sequence:
Be decisive. Only ask for user input when there are multiple equally valid split strategies that materially change history.