commit-tidy
CLAWHUB · Unverified
Analyze staged/committed changes and recommend split, squash, or commit-message strategy. Topics — conflict-commit-review (per-chunk review gate for conflict-residue commit messages), hunk-split (single-hunk staging via git apply --cached), interactive-amend (worktree-based amend+rebase loop), soft-reset-amend (soft-reset top N + selective re-commit), staging-discipline (staged-set audit + sensitive-dir gate), security-scan (PUBLIC repo secret pattern check), message-discipline (Conventional Commit tags, PUBLIC English, --amend refresh). Use when: "commit split", "squash commits", "tidy commits", "amend earlier", "interactive amend", "soft reset", "rewrite commits", "PUBLIC repo commit", "secret in commit", "commit message", "commit author identity", "commit message English", "staging discipline", "hunk split", "stage one hunk", "git apply --cached", "non-interactive git add -p", "conflict commit", "Conflicts message", "review conflict resolution", "bad merge resolution".
- 62
- Rank
- 84
- Safety
- 2.3k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 2.3K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 9, 2026
- Adoption signal
- 2.3K downloadsadoption · Oct 9, 2026
- Latest release
- 0.7.2release · Oct 6, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 0.7.2release
commit-tidy 0.7.2 - Added mandatory `commit-tidy` invocation before first push on branches with two or more Red→Green (test-fail→pass) cycles, even if only one file is affected. - Expanded "Mandatory Invocation Gate" documentation to clarify process for repeated test-driven development cycles. - Removed the file: skill-card.md. - General editorial updates for consistency in skill documentation.
Observed Oct 6, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:commit-tidy- Install using `clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:commit-tidy` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/drumrobot/commit-tidy before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-commit-tidy/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
151,582 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- metadata: author: es6kr version: "0.1.1" name: commit-tidy depends-on: - cleanup - git-repo description: | Analyze staged/committed changes and recommend split, squash, or commit-message strategy. Topics — conflict-commit-review (per-chunk review gate for conflict-residue commit messages), hunk-split (single-hunk staging via git apply --cached), interactive-amend (worktree-based amend+rebase loop), soft-reset-amend (soft-reset top N + selective re-commit), staging-discipline (staged-set audit + sensitive-dir gate), security-scan (PUBLIC repo secret pattern check), message-discipline (Conventional Commit tags, PUBLIC English, --amend refresh). Use when: "commit split", "squash commits", "tidy commits", "amend earlier", "interactive amend", "soft reset", "rewrite commits", "PUBLIC repo commit", "secret in commit", "commit message", "commit author identity", "commit message English", "staging discipline", "hunk split", "stage one hunk", "git apply --cached", "non-interactive git add -p", "conflict commit", "Conflicts message", "review conflict resolution", "bad merge resolution". --- # Commit Tidy ## Topics | Topic | Description | Guide | |-------|-------------|-------| | conflict-commit-review | Per-chunk review gate for commits whose message carries conflict residue — scope, decide by evidence, group by trade-off, ask per group | [conflict-commit-review.md](./conflict-commit-review.md) | | hunk-split | Non-interactive single-hunk staging via `git apply --cached` when `git add -p` isn't usable | [hunk-split.md](./hunk-split.md) | | interactive-amend | Worktree-based amend+rebase loop for earlier/multiple commits | [interactive-amend.md](./interactive-amend.md) | | message-discipline | Commit message conventions — Conventional Commit tags, PUBLIC English enforcement, --amend refresh, source-code .md behavior verbs, operation-type continuity | [message-discipline.md](./message-discipline.md) | | security-scan | PUBLIC repo commit body 4-grep secret pattern check (PAT/Vault/API key/Base64) before commit | [security-scan.md](./security-scan.md) | | soft-reset-amend | Soft-reset top N commits and selectively re-commit (simpler than worktree rebase) | [soft-reset-amend.md](./soft-reset-amend.md) | | staging-discipline | `git diff --cached --name-only` audit + sensitive-dir gate (rules/agents/docs) before commit | [staging-discipline.md](./staging-discipline.md) | Analyze staged/unstaged changes and recommend whether to split into multiple commits. ## When to use - Before committing large changesets - User asks "should I split this commit?" - Reviewing changes that touch many files - Ensuring atomic, reviewable commits ## Mandatory Invocation Gate (HARD STOP) - **5+ Files / Large-Scale Modification Gate**: Whenever 5+ files are modified/added/deleted, or a broad cross-directory refactoring, skill renaming, or multi-component edit occurs, invoking `commit-tidy` before committing is **MANDATORY** (`HARD STOP`).
_meta.json
{
"ownerId": "kn74k8yfvftx6f062qa8fzyd8h8373jd",
"slug": "commit-tidy",
"version": "0.7.2",
"publishedAt": 1791273335834
}CHANGELOG.md
# Changelog ## [0.7.2](https://github.com/es6kr/skills/compare/commit-tidy-v0.7.1...commit-tidy-v0.7.2) (2026-10-04) ### Bug Fixes * **commit-tidy:** require the skill when a branch stacks repeated Red→Green pairs ([#581](https://github.com/es6kr/skills/issues/581)) ([73015af](https://github.com/es6kr/skills/commit/73015af8b350029bfa0db96ed26733358fa71534)) ## [0.7.1](https://github.com/es6kr/skills/compare/commit-tidy-v0.7.0...commit-tidy-v0.7.1) (2026-09-18) ### Bug Fixes * **cleanup:** make the session-end report table self-sufficient ([#487](https://github.com/es6kr/skills/issues/487)) ([c4a0255](https://github.com/es6kr/skills/commit/c4a02557fb8de3b32cf337c549f62535dabf824b)) ## [0.7.0](https://github.com/es6kr/skills/compare/commit-tidy-v0.6.0...commit-tidy-v0.7.0) (2026-09-01) ### Features * staging branch next-feat sync into main ([e582ea2](https://github.com/es6kr/skills/commit/e582ea248beefa70886716741b8965d91cfb7414)) ## [0.6.0](https://github.com/es6kr/skills/compare/commit-tidy-v0.5.5...commit-tidy-v0.6.0) (2026-08-29) ### Features * **works-config:** implement v0.2.0 role-based resolution & neutral SSOT guards config ([e22e117](https://github.com/es6kr/skills/commit/e22e117371370c59b18b77c72bdb926dcb1897cb)) ### Bug Fixes * **hook-kit:** scope PR-URL bare-ref check to per-number match, allow force-push in worktrees ([dd50dce](https://github.com/es6kr/skills/commit/dd50dced989eed4847daaf9a0cd4be12a04426e1)) ## [0.5.5](https://github.com/es6kr/skills/compare/commit-tidy-v0.5.4...commit-tidy-v0.5.5) (2026-08-20) ### Bug Fixes * **commit-tidy:** add 5+ files large-scale modification mandatory gate ([2eca0a0](https://github.com/es6kr/skills/commit/2eca0a085295dae3707bd4447f2ec1996023e1bf)) * **hooks:** correct ghost path for block-wip-register-before-execute.sh ([d5875a2](https://github.com/es6kr/skills/commit/d5875a2e624eeb4a3dce9beba5d96a4365a8f950)) * promote next-fix batch (hook path repair, topic-dispatch scoping, conflict diagnosis) ([eb7ecb6](https://github.com/es6kr/skills/commit/eb7ecb61dda9701d78f12dc810781dc7cb687caa)) ## [0.5.4](https://github.com/es6kr/skills/compare/commit-tidy-v0.5.3...commit-tidy-v0.5.4) (2026-08-17) ### Bug Fixes * **commit-tidy:** cross-reference hunk-split from staging-discipline ([1ef05f3](https://github.com/es6kr/skills/commit/1ef05f31e40fe48c53f1b87ab3d4238db506d2cd)) * promote next-fix staging (30 fixes across 14 skills) ([ee467c0](https://github.com/es6kr/skills/commit/ee467c045d779d7b80d30f160763ec3534a9742b)) * wip single-item ask skip + hunk-split cross-ref ([0c4007a](https://github.com/es6kr/skills/commit/0c4007a18ae65b31ac7d308ea7d96a68b76b9ca4)) * **wip:** cross-ref PR-URL and TaskCreate subject repo-qualifier rules ([#186](https://github.com/es6kr/skills/issues/186)) ([4982364](https://github.com/es6kr/skills/commit/49823641a7b08123ebd0325273892bee41bc3280)) ## [0.5.3](https://github.com/es6kr/skills/compare/commit-tidy-v0.5.2...commit-tidy-v0.5.3) (2026-08-11)
conflict-commit-review.md
# Conflict Commit Review
A commit whose **message carries conflict residue** — `Conflicts:`, a pasted conflict file
list, or any variation of the merge/rebase conflict template — is never eligible for the
fast paths this skill otherwise offers. It must not be squashed, reworded, reordered, or
pushed on the strength of a clean-looking tree. Its diff is reviewed **hunk by hunk, with an
explicit ask per chunk group**, before any other tidy operation touches it.
## When to Use
- Inspecting or tidying a range of commits (`squash`, `soft-reset-amend`, `interactive-amend`)
- Deciding whether a branch is safe to push
- Any time `git log` over the range shows a message matching the detection pattern below
## Why
A conflict resolution can be **syntactically clean and semantically wrong**. The resolver
picked one of two versions under time pressure; nothing in the resulting tree records that a
choice was made, and a tree with zero `<<<<<<<` markers proves only that the *markers* were
removed — not that the surviving side was the right one.
The commit message is usually the only durable signal that such a choice happened. Treating
that signal as cosmetic ("just a bad message, I'll reword it during the squash") destroys
the one breadcrumb pointing at an unreviewed decision, and the discarded side's absence
rides silently into the push.
The failure is quiet by construction: the branch builds, the file reads plausibly, and the
regression only surfaces where the dropped side was load-bearing.
## Detection
```bash
# conflict residue in commit messages across the push range
git log --oneline <base>..<branch> | grep -iE 'conflict'
# related smell: placeholder / junk messages that also mark an unreviewed commit
git log --oneline <base>..<branch> | grep -iE '^[0-9a-f]{7,} .{0,3}$|^[0-9a-f]{7,} (wip|tmp|test)$'
# rarer, separate failure: markers that survived into the tree
git grep -lE '^(<<<<<<<|=======$|>>>>>>>)' <branch>
```
A marker scan returning zero files does **not** clear a conflict commit. The two checks
answer different questions: markers detect an *abandoned* resolution, the message detects a
*completed but unreviewed* one. Only the second is common.
## Procedure
### Step 0. Scope each conflict commit before reading any diff
```bash
git branch --contains <sha> # which local branches carry it
git branch -r --contains <sha> # whether a remote already has it
git show --stat --format='' <sha>
```
| Result | Disposition |
|--------|-------------|
| Contained in no branch | Dangling — out of scope, no action |
| Contained only in branches outside the push set | Out of scope for this push; note it and move on |
| Already on a remote branch | Rewriting is a force-push decision — a separate ask, not part of this review |
| In the push set, local only | **Review target** — continue to Step 1 |
Scoping first avoids spending per-chunk asks on commits that cannot reach anyone.
### Step 1. Establish which side is correct by evidence, not by readhunk-split.md
# Hunk Split
Stage a subset of a file's unstaged hunks non-interactively, when `git add -p` cannot be scripted (headless tool sessions, automation contexts where interactive TTY input isn't available).
## When to Use
- A single file has 2+ unrelated diff hunks (e.g., a pre-existing unrelated change already sitting in the working tree, plus your own new change) and you need to commit only one of them
- `git add -p` is not usable — no interactive TTY, or the caller cannot answer `y`/`n`/`s` prompts
- The hunks are far enough apart in the file that `git diff -U0` shows them as separate `@@` blocks
## When NOT to Use
- The hunks are adjacent/overlapping (a single `@@` block covers both) — hunk splitting can't separate them; use `git add -p`'s `s` (split) + `e` (manual edit) interactively instead, or a real TTY
- `git add -p` is available and scriptable in the current environment — prefer it, it's the standard tool for this
## Procedure
### Step 0. Identify the target hunk
```bash
git diff -U0 -- <file>
```
`-U0` (zero context lines) prints each hunk as a separate `@@ -old,count +new,count @@` block — confirms your target change is isolated from the unrelated hunk(s).
### Step 1. Extract the base (HEAD) version
```bash
git show HEAD:<file> > /tmp/base.<ext>
```
### Step 2. Reconstruct the target state
Apply only your intended change to a copy of the base — not the working tree, which has both hunks mixed in.
```bash
cp /tmp/base.<ext> /tmp/target.<ext>
# apply only your change, e.g. an insertion after an anchor line:
awk '{print} /<anchor-line-regex>/{print "<your-inserted-line>"}' /tmp/base.<ext> > /tmp/target.<ext>
```
The exact reconstruction mechanism (awk/sed/manual edit) depends on the change shape — insertion, deletion, or modification.
### Step 3. Diff base vs target to get a clean single-purpose patch
```bash
git diff --no-index -- /tmp/base.<ext> /tmp/target.<ext> | \
sed 's|a/tmp/base.<ext>|a/<file>|; s|b/tmp/target.<ext>|b/<file>|' \
> /tmp/clean.patch
```
The `sed` rewrites the synthetic `/tmp/...` paths back to the real repo-relative path so `git apply` can target the actual file.
### Step 4. Apply to the index only, verify, commit
```bash
git apply --cached --check /tmp/clean.patch # dry-run — must exit 0
git apply --cached /tmp/clean.patch
git diff --cached -- <file> # confirm exactly your intended lines are staged
git diff -- <file> # confirm the OTHER hunk(s) remain unstaged
git commit -m "..."
```
`git apply --cached` writes the patch directly into the index without touching the working tree — the other unstaged hunk(s) stay exactly as they were, ready for a separate commit later.
## Don't / Do
| # | Don't | Do |
|---|-------|-----|
| 1 | `git add <file>` when the file has 2+ unrelated hunks | Isolate the target hunk first (Steps 0-3), then `git apply --cached` only that patch |
| 2 | Hand-write the patch's `@@` header by copying it from `git diff -U3`/`-U0`AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-drumrobot-commit-tidy. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about commit-tidy. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-drumrobot-commit-tidy, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/drumrobot/skills/commit-tidy",
"sourceUrl": "https://clawhub.ai/drumrobot/skills/commit-tidy",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T16:38:29.348Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-commit-tidy/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-commit-tidy/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T16:38:29.348Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "2.3K downloads",
"href": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceUrl": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T16:38:29.348Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "0.7.2",
"href": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceUrl": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-10-06T07:55:35.834Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-commit-tidy/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-commit-tidy/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 0.7.2",
"description": "commit-tidy 0.7.2 - Added mandatory `commit-tidy` invocation before first push on branches with two or more Red→Green (test-fail→pass) cycles, even if only one file is affected. - Expanded \"Mandatory Invocation Gate\" documentation to clarify process for repeated test-driven development cycles. - Removed the file: skill-card.md. - General editorial updates for consistency in skill documentation.",
"href": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceUrl": "https://clawhub.ai/drumrobot/commit-tidy",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-10-06T07:55:35.834Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-drumrobot-commit-tidy/run-check
