tidy
Analyze all unpushed commits on the current branch and propose which ones belong together and should be squashed into the same commit. Use when the user says "tidy", "tidy commits", "which commits belong together", "clean up my commits", or "squash plan" before pushing.
- License 许可
- MIT
- 所属仓库
- ream88/dotfiles
- 最近更新
- 2026-09-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- tidy
- description
- Analyze all unpushed commits on the current branch and propose which ones belong together and should be squashed into the same commit. Use when the user says "tidy", "tidy commits", "which commits belong together", "clean up my commits", or "squash plan" before pushing.
02 资源文件 9
- 参考文档REFERENCE.md10.7 KB
- 参考文档references/agentic-optimizations.md886 B
- 参考文档references/interaction-mode.md582 B
- 参考文档references/prompts.md1.0 KB
- 参考文档references/sidecar-drain.md5.4 KB
- 参考文档references/summary-mode.md998 B
- 参考文档references/sync-core.md2.2 KB
- 脚本scripts/blueprint-feature-tracker-sync.sh11.8 KB
- 脚本scripts/tests/test-blueprint-feature-tracker-sync.sh10.3 KB
03 SKILL.md 正文
Tidy
Go through every commit on the checked-out branch that is not yet pushed to its upstream and think hard (ultrathink) about which of them are logically related and should probably have been the same commit in the first place.
Scope
- Only unpushed commits:
git log @{upstream}..HEAD(fall back to the branch's merge-base with the default branch if no upstream is set). - If there are no unpushed commits, say so and stop.
- Never touch pushed commits — they are immutable.
Procedure
- List the unpushed commits:
git log --oneline @{upstream}..HEAD. - For each commit inspect subject, body, and the files/hunks it touches
(
git show --stat, and the actual diff when the stat is ambiguous). - Reason deeply about relatedness. Signals that two commits belong together:
- One is a fixup/typo/formatting/review-feedback pass on the other.
- They touch the same feature across layers (schema + context + LiveView
- test for the same behavior).
- A later commit is only needed because of an earlier one (compile fix, test fix, forgotten file).
- The mirrored change in a sibling app (e.g. platform_web + verify_web versions of the same feature) — mirror pairs usually belong together. Signals they should stay separate: independent features, refactor vs. behavior change, deliberate stepping stones the history should show.
- Output a grouping plan: each group with its member commits (SHA + subject), a one-line reason, and a proposed subject for the combined commit. List commits that should stay standalone too.
- Do NOT rebase. Present the plan and wait; only perform the interactive rebase/squash if the user approves. When squashing, follow the commit skill rules for the new subjects.
04 同仓库更多 Skills
simple-english
Write responses in ASD-STE100 Simplified Technical English. Use when the user asks for simple English, plain English, simplified text, or easy language, or when writing for readers who are not native English speakers.
open
Open the file most recently worked on in this session with its default macOS app. Use when the user says "open", "open it", "open the file", or "show me the file" after a file was created or edited.
ical
Extract flight or train information from text, screenshots, PDFs, or other data sources and generate an iCalendar (.ics) file with properly formatted events. Supports flights (with IATA codes) and trains (e.g. ÖBB SCOTTY format).
elixir-deps-update
Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.
critic
Ruthlessly critical code review that questions every single line change. Enforces KISS (Keep It Simple, Stupid) and DRY (Don't Repeat Yourself) principles. Use this to ensure code changes are truly necessary and not over-engineered. Will challenge any unnecessary complexity, redundancy, or deviation from simplicity.
commit
暂无简介