happier-commit-worktree
Skill1.9k starsChanged 59 days agoMITView on GitHub
Reconnoiter, classify, validate, group, and commit a large or continuously changing Happier worktree as coherent, human-understandable commits while preserving concurrent work and excluding temporary, generated, QA, evidence, build, and other unwanted artifacts. Use when the user asks to commit many existing uncommitted changes, continue a long-running commit campaign, explain what remains, recover that campaign after compaction or interruption, or safely process newly landed changes in a shared dirty checkout. Do not use for an ordinary single-purpose commit whose scope is already known.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about happier-dev/happier
- slopus/happy“Not Dead Yet Release”GitHub · Jan 27, 2026 · 9 reactions
- @kaidav.is“github.com/happier-dev/...”Bluesky · Jul 19, 2026 · 6 likes
- @future-beginner.bsky.social“github.com/happier-dev/... memo”Bluesky · Sep 28, 2026 · 3 likes
- sudosubin/agents.nix“agent-skills.github.happier-dev.happier: 0-unstable-2026-09-22 → 0-unstable-2026-10-02”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.happier-dev.happier: init at 0-unstable-2026-09-22”GitHub · Sep 27, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 12
- Jan 27, 2026Not Dead Yet Release — slopus/happy9 reactions · 12 comments
- Oct 3, 2026agent-skills.github.happier-dev.happier: 0-unstable-2026-09-22 → 0-unstable-2026-10-02 — sudosubin/agents.nix0 reactions
- Sep 27, 2026agent-skills.github.happier-dev.happier: init at 0-unstable-2026-09-22 — sudosubin/agents.nix0 reactions
- Sep 17, 2026Investigate and enable Copilot ACP mid-turn steering after live compatibility validation — cuihuibot/happier0 reactions
- Aug 8, 2026Add report: happier-dev/happier — SeeyeeTech/github-explorer0 reactions
7 more on GitHub
- Aug 8, 2026[Analyze] happier-dev/happier — SeeyeeTech/github-explorer0 reactions · 2 comments
- May 22, 2026Node builtins: classify node:sqlite as a platform module — fallow-rs/fallow0 reactions · 1 comment
- May 7, 2026happier: init at 0.2.1 — NixOS/nixpkgs0 reactions
- Apr 18, 2026Audit candidate: happier-dev/happier — xiaolai/nlpm0 reactions · 1 comment
- Apr 12, 2026byobu/tmux session support for terminal sessions (project → tmux session, task → tmux window), helps allow remote ssh access — debuglebowski/slayzone0 reactions · 1 comment
- Apr 10, 2026replacing or modifying the cli ai launch command? — debuglebowski/slayzone0 reactions · 1 comment
- Feb 28, 2026CRITICAL BUGFIX (daemon,app): Session spawning via tmux always fails — PID mismatch timeout, hidden errors, orphaned windows (#272) — slopus/happy0 reactions
On Bluesky · 2
- Jul 19, 2026github.com/happier-dev/... — @kaidav.is6 likes and reposts
- Sep 28, 2026github.com/happier-dev/... memo — @future-beginner.bsky.social3 likes and reposts · 1 reply
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/context.mdcCursor rule
- .cursor/rules/delegation.mdcCursor rule
- .cursor/rules/edison.mdcCursor rule
- .cursor/rules/implementation.mdcCursor rule
- .cursor/rules/validation.mdcCursor rule
- attack-conclusionSkill
- decompose-gatesSkill
- handoff-reportSkill
- happier-ci-stabilizeSkill
- happier-compatibilitySkill
- happier-diagnoseSkill
- happier-docsSkill
- happier-github-opsSkill
- happier-implement-planSkill
- happier-implementSkill
- happier-instruction-evalSkill
- happier-issue-diagnoseSkill
- happier-issue-triageSkill
- happier-planSkill
- happier-port-0-2-to-0-3Skill
- happier-profile-and-optimizeSkill
- happier-pr-stewardSkill
- happier-release-notesSkill
- happier-release-promoteSkill
- happier-releaseSkill
- happier-release-validation-reviewSkill
- happier-release-validationSkill
- happier-reviewSkill
- happier-session-controlSkill
- happier-testingSkill
- verify-claimsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 19 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Never run git reset, git restore, git clean, git checkout, git switch, or an equivalent destructive operation.
- Distinctive: line 19
Never overwrite, delete, or normalize unrelated work merely to make status clean.
- Distinctive: line 20
Never trust or wholesale-commit the shared index.
- Distinctive: line 21
Treat the checkout as live.
- Distinctive: line 23
Use Conventional Commit subjects and explanatory bodies.
- Distinctive: line 24
Commit only changes whose intent, ownership, and suitability are understood.
- Distinctive: line 25
Use the checkout's existing current-user git config user.name and git config user.email for every ordinary commit.
- Distinctive: line 28
Read private-index-protocol.md before the first commit in a campaign.
- Distinctive: line 42
Do not equate a clean shared index with a clean worktree.
- Distinctive: line 48
Use maximum useful parallelism where it shortens the critical path.
- Distinctive: line 63
Read campaign-throughput.md before orchestrating a large or continuing campaign.
- Distinctive: line 67
Keep the serial commit authority supplied with prepared work:
- Distinctive: line 97
Before staging an unfamiliar path, determine what produced it and whether it belongs in source control.
- Distinctive: line 122
Check for accidental secrets and objects that violate the remote's file-size policy before committing large or binary material.
- Distinctive: line 128
Follow private-index-protocol.md exactly.
- Distinctive: line 134
create a commit object with git commit-tree.
- Distinctive: line 137
verify the shared index and selected worktree paths.
- Distinctive: line 161
When no clear candidate group remains:
- Distinctive: line 165
verify no candidate group was lost between reconnaissance and commit.
- Very specific: line 175
Before handoff, run .agents/skills/attack-conclusion: challenge grouping coherence, missing siblings, artifact provenance, index …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Happier Commit Worktree
Turn an existing moving worktree into a sequence of reviewable commits without treating file count, directory boundaries, or the current index as truth. Preserve all bytes on disk, prove what each commit contains, and leave uncertain material uncommitted with a specific reason.
A large-worktree request is a campaign, not a request for one commit or one analysis wave. Continue recon, packet preparation, committing, and residual classification until every current path is committed or has an evidence-backed exclusion or blocker. Producing a few commits while commit-ready paths remain is incomplete execution unless the user explicitly pauses the campaign.
1. Establish authority and safety
Require an explicit user request to commit. Analysis alone does not authorize staging or commits.
Apply these invariants throughout:
- Never run
git reset,git restore,git clean,git checkout,git switch, or an equivalent destructive operation. - Never overwrite, delete, or normalize unrelated work merely to make status clean.
- Never trust or wholesale-commit the shared index. Stage every commit from explicit paths or hunks in a fresh private index.
- Treat the checkout as live. A path can change before, during, or after a commit.
- Serialize HEAD mutations even when reconnaissance and validation run in parallel.
- Use Conventional Commit subjects and explanatory bodies.
- Commit only changes whose intent, ownership, and suitability are understood.
- Use the checkout's existing current-user
git config user.nameandgit config user.emailfor every ordinary commit. Verify both before the first commit; never rewrite them to a bot, PR author, issue author, or other contributor, and stop rather than inventing a missing identity. - Evaluate
Co-authored-by:attribution per packet. Add a verified contributor only when that packet materially incorporates their code, patch, design, causal diagnosis, decisive reproduction, or substantially adopted fix direction; never infer attribution from PR/issue authorship or participation alone.
Read private-index-protocol.md before the first commit in a campaign. Read recovery-and-audit.md whenever the index is unusual, a process was interrupted, HEAD moved, a lock appeared, or the user asks whether everything was preserved.
2. Snapshot the current basis
Record compact observed evidence before grouping:
git rev-parse HEAD
git status --short
git diff --cached --name-status
git diff --stat
git ls-files --others --exclude-standardDo not equate a clean shared index with a clean worktree. Do not equate an untracked path with source code. If the shared index is non-empty, inspect it before proceeding; never clear inherited staging by assumption.
Build a resumable inventory grouped by package, domain, change kind, and likely provenance. Snapshot at wave boundaries and refresh paths that overlap a completed commit or changed during analysis; do not repeat repository-wide recon after every commit when independent inventory remains valid.
3. Run reconnaissance before committing
Use maximum useful parallelism where it shortens the critical path. Give each lane an exact, preferably disjoint path inventory and require:
- candidate groups with exact paths and any hunk-level splits;
- the user or system behavior each group establishes;
- canonical owner, coupled tests, fixtures, schemas, docs, and generated contracts;
- suspected artifacts or uncertain paths and the evidence for exclusion;
- dependency ordering and validation commands;
- a proposed Conventional Commit subject and explanatory body.
The lane must account for every assigned path as part of a commit-ready packet, an evidence-backed exclusion, or an unresolved item with the exact missing fact. It does not finish after finding representative groups or the first few commits. Sampling is not successful reconnaissance.
Reconnaissance lanes do not stage or mutate Git unless explicitly assigned commit authority. A single orchestrator should normally perform HEAD updates. If multiple agents must commit, each uses a private index and compare-and-swap update from its observed parent; a stale agent rebuilds from the new HEAD rather than forcing or replaying blindly.
Follow the active subagent context policy. Default to no inherited transcript and provide a self-contained brief with exact scope, evidence, paths, checks, output, and stop conditions. Do not let lanes create ad hoc review files or use path "custody" as a substitute for checking current bytes and actual hunk collisions.
Read campaign-throughput.md before orchestrating a large or continuing campaign. It defines rolling waves, confidence lanes, packet queues, parallel topology, validation reuse, progress gates, compaction anchors, and valid stopping conditions. Read grouping-and-messages.md for the classification rubric, artifact policy, commit sizing, and message standard.
4. Operate a rolling commit campaign
Keep the serial commit authority supplied with prepared work:
- classify current paths into green, yellow, and red confidence lanes;
- prepare several coherent packets ahead, commonly 5-15 when scope permits;
- validate independent packets concurrently and drain ready packets through serial HEAD updates;
- re-snapshot after the wave and refresh only overlapping, newly landed, or invalidated paths;
- repeat while any commit-ready or safely investigable source work remains.
Green packets proceed immediately. Yellow investigation and red exclusions must not idle unrelated green work. Maintain a compact in-memory queue containing each packet's intent, owner, exact paths/hunks, dependencies, message, validation, and confidence. If many valid paths remain but the ready queue is empty, reconnaissance has failed and must resume rather than ending the campaign.
Parallelize reconnaissance, history/provenance checks, message preparation, and independent validation. Keep final packet adjudication, private-index creation, CAS HEAD updates, and shared-index synchronization under one serial authority by default. Parallel commit writers are exceptional: private indexes isolate staging but not history, so CAS retries and overlap recovery can cost more than they save.
5. Form coherent change packets
Group by one reviewable intent, invariant, migration, or user outcome, not by arbitrary path count. Include the complete slice needed to understand and verify that intent:
- canonical implementation and its directly coupled adapters;
- tests that define the behavior;
- required fixtures, types, schemas, migrations, and compatibility handling;
- consumed wiring and narrowly coupled documentation;
- tracked generated output only when the repository contract requires it.
Prefer useful batches, commonly 5-50 files and sometimes larger for uniform mechanical migrations, provider matrices, icon replacements, snapshots, or generated-contract updates. File count is a throughput heuristic, never permission to mix unrelated work. Avoid one-file commits when nearby changes complete the same idea, but keep a truly self-contained one-file correction separate.
Split a file by hunk when its changes serve different intents. Do not force an entire mixed file into the first convenient group.
Order packets by dependency: contracts and shared owners before consumers, implementation with defining tests, migrations before cleanup, and mechanical follow-ups after behavior is established.
6. Reject dumping grounds and unwanted material
Before staging an unfamiliar path, determine what produced it and whether it belongs in source control. Use current bytes, repository references, ignore rules, tracked history, build scripts, test harnesses, and timestamps as evidence. Typical exclusions include:
- build products, caches, compiler output, vendored downloads, archives, and oversized binaries;
.tmp*,.vite-node, probes, logs, screenshots, recordings, coverage, evidence, and QA captures;- local credentials, machine state, private diagnostics, and uploads;
- semantic no-ops, accidental formatting, obsolete scratch code, and speculative dormant mechanisms;
- tests or helpers whose production owner was removed unless the deletion itself is intentional and coherent.
Do not delete uncertain paths as part of committing. Leave them uncommitted and report why. Add a narrow ignore rule when the producer is legitimate, recurrence is likely, and the path class is never source material. Do not hide a tracked source path or broad directory merely to make status disappear.
7. Validate packets without serializing avoidable work
Inspect the exact private-index diff before creating a commit:
GIT_INDEX_FILE="$idx" git diff --cached --stat
GIT_INDEX_FILE="$idx" git diff --cached --check
GIT_INDEX_FILE="$idx" git diff --cached --name-status
GIT_INDEX_FILE="$idx" git diff --cachedRun the narrowest deciding tests appropriate to each packet. Batch compatible package-wide typechecks, builds, and broader suites once per wave rather than repeating an identical expensive check after every commit. Record which packets a shared check covers and invalidate that evidence only when later bytes touch its deciding corridor. For pre-existing behavior changes, inspect whether tests and implementation agree rather than automatically changing whichever fails. Classify failures as a real defect, test drift, harness/environment failure, external-contract change, resource saturation, or unrelated concurrent failure.
git commit-tree does not run ordinary pre-commit, prepare-commit-msg, commit-msg, or post-commit hooks. Before the campaign's first commit, inspect repository hook policy and run the required hook-equivalent checks explicitly for every applicable packet and message. Preserve required signing policy rather than silently creating unsigned commits.
Check for accidental secrets and objects that violate the remote's file-size policy before committing large or binary material. Never solve a source-control size failure by assuming Git LFS or committing a vendor/build tree without establishing that repository policy requires it.
Do not claim a test or typecheck passed unless it ran. A coherent commit may proceed with a known unrelated failing check or unavailable saturated test environment only when the limitation is evidenced, unaffected, and disclosed. Do not repeatedly launch checks known to be infrastructure-blocked; continue independent packets and retry at a useful wave boundary.
8. Commit from a private index
Follow private-index-protocol.md exactly. The essential transaction is:
- capture the current
HEADas the intended parent; - initialize a unique temporary index from that parent;
- stage only the packet's explicit current paths and selected hunks;
- inspect and validate the private staged diff;
- create a commit object with
git commit-tree; - advance
HEADwithgit update-ref HEAD <commit> <expected-parent>; - synchronize only committed paths in the shared index to the new HEAD;
- verify the shared index and selected worktree paths.
Compare-and-swap is mandatory. If HEAD moved, discard only the temporary index and rebuild the packet from the new HEAD and current worktree bytes. Never force the ref and never assume the previously built tree can simply be attached to a different parent.
This transaction never rewrites the worktree. If new bytes land in a committed file after private staging, the committed snapshot becomes HEAD and the newer bytes remain visible as an uncommitted modification. That is the required behavior.
9. Reconcile after every commit and measure the wave
Immediately verify:
git show --stat --oneline --decorate -1
git diff --cached --name-status
git status --short -- <committed-paths...>An M after the commit can be correct: compare HEAD, index, and worktree to determine whether later bytes remain. A staged deletion after a successful commit is usually an index-synchronization defect; explicitly remove the deleted path from the shared index as documented in the protocol.
Maintain a compact campaign ledger in the conversation or an already-approved tracking document, not a new ad hoc report file. Track completed commit ids, domain coverage, validation, residual groups, exclusions, and blockers. This is the anchor after compaction or interruption; always inspect live Git state before trusting it.
At each wave boundary record the starting and remaining path counts, paths consumed, commits created, ready queue depth, exclusions, unresolved count, current HEAD, next prepared packets, and validation constraints. Progress is reduced unresolved work, not merely commit count. Preserve this anchor in every compaction or continuation handoff so the next agent resumes instead of restarting recon.
10. Close only after an exhaustive residual audit
When no clear candidate group remains:
- re-snapshot HEAD, shared index, tracked modifications, deletions, and untracked paths;
- classify every residual path as newly landed source work, intentional artifact/exclusion, uncertain material, or an index anomaly;
- verify no candidate group was lost between reconnaissance and commit;
- inspect recent commits and aggregate their file/change statistics when requested;
- report what was committed, checks run, failures or skipped checks, and every intentional residual category.
"Uncertain" is not a convenient stopping label. Before using it, inspect the current diff, references/callers, relevant history, owner/test relationship, and provenance evidence appropriate to the path. State the exact decision that remains unresolved and the observation that would decide it. Continue all independent work that cannot prejudge that decision.
Do not stop because one wave completed, one domain is exhausted, an agent returned partial results, a preferred test environment is saturated, or some red paths remain. Stop only when every current path is committed or classified, no commit-ready packet remains, and safely obtainable evidence cannot resolve the remaining blockers; or when the user explicitly pauses.
Say "everything appropriate is committed" only when every current residual path has an observed reason not to commit. Never shorten that to "everything is committed" when artifacts, uncertainty, later changes, or blockers remain.
Before handoff, run .agents/skills/attack-conclusion: challenge grouping coherence, missing siblings, artifact provenance, index cleanliness, concurrent-byte preservation, dependency ordering, and the possibility that a passing check did not exercise the changed contract.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

