Git

From Esposter/Esposter · View interactive version

Git is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when running git operations, merging a branch, resolving a lockfile conflict, or advising on source control workflows. Esposter's git workflow in a shared checkout, from commit messages to the queue and the lockfile.

How to use this skill

Skill file

Git Conventions

Commit Message Format

Conventional-commits format and the type list are in CONTRIBUTING.md ("Commit Conventions").

A count in a subject or body is written as its magnitude — "a handful of proposals", never the number — for the same reason a spec does (the openspec skill, references/repo-owned-facts.md).

Every commit ends with the Co-Authored-By trailer the session's attribution reminder gives, written as the message's last line and never stripped: it is what names the model pnpm ai:sweep:status prints beside a ledger unit's date (the sweeps skill, references/ledger-files.md).

Multi-line Commit Messages — Tool-Specific Syntax

A heredoc piped to -F - from Bash, a single-quoted here-string from PowerShell — never one tool's syntax in the other — then git log -1 --format='%B' (references/commit-messages.md).

Safety Rules

Pushing

Landing commits on ai/queue is the review-queue skill's loop (its pull, push and worktree).

Branch Hygiene

The session's checked-out branch is ai/queue; there are no per-chunk feature branches. The review and the nightly release move main; the review brings a diverged main back into the queue itself (openspec/specs/infra/review/design.md, step 2). Otherwise main moves only by the owner's fast-forward of main to ai/queue after a review (review-queue skill). A branch's name says whose it is and the rulesets hold it to that — ai/ the pipeline's, renovate/ the bot's, external/ the one prefix a collaborator may create, anything else the maintainer's (openspec/specs/infra/branch-namespaces/design.md). Cut a branch only when the work genuinely cannot land incrementally (a spike — in a git worktree rather than checked out over work in progress), and delete it after merging.

Merging `main` and the Lockfile

Resolve pnpm-workspace.yaml first, keeping the higher version on every conflict — no pnpm runs while its markers stand — then delete pnpm-lock.yaml and pnpm i; never hand-resolve the lock, and never merge main into ai/queue by hand — the review's diverged-main step is the one merge (references/lockfile-merges.md).

Commit Chunks

Commits stay per coherent chunk, and a fix is its own commit behind the unit. The touched tests' timing is the running-checks skill's.

Reference pages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.