Index of every page on this site: llms.txt
All skills
eagerworks avatar

/commit

@4e2af20
by eagerworkseagerworks/skills16 stars
Run it yourself

Commits everything modified or new in the working tree by default, grouped into a series of coherent Conventional Commits — one commit per logical change, staged by path, with the type/scope vocabulary inferred from the repo's own git history — instead of sweeping everything into a single commit. Configurable per repo to ask before including new files. Use when asked to "commit this", "commit my changes", "commit everything", "make a commit", "split this into commits", or to write a commit message for work already staged.

Use this Skill: https://skilld.dev/gh/eagerworks/skills/commit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

commit

A portable agent skill that commits everything modified or new in the working tree by default — grouped into a series of well-formed Conventional Commits, one commit per logical change, staged by explicit path, instead of a single commit for everything that happens to be uncommitted. A repo that wants confirmation before new files get committed can turn that off in config. Works with Claude Code, Cursor, GitHub Copilot, Codex, Amp, and any agentic coding tool that can read markdown files.

What it covers

  • A grouping ladder that decides where commit boundaries go: an already-staged index first, then an explicit instruction, then change intent, then mechanical companions (lockfile with manifest, migration with schema dump), then everything else on its own — never git add -A and never git add -p (interactive, hangs an agent)
  • A default dependency-first ordering for the resulting series: config → schema → implementation → tests → docs
  • Message vocabulary inferred from the repo's own git log, falling back to the full Conventional Commits type set only when the repo's history doesn't already show a narrower one in use
  • A hard exclusion list — .env, credentials, node_modules, build output, screenshots, uncommented debug leftovers — disclosed in the report rather than silently dropped
  • Honest handling of git hooks: a rejection stops the series and reports the hook's output; a formatter that rewrites files gets one retry, never --no-verify
  • Commits untracked (new) files by default like any other change (commit.includeUntracked: "always") — a repo that wants a confirmation step instead, or wants new files left out entirely, sets "ask" or "never" in config
  • Optional per-repo configuration for allowed types/scopes, whether a scope is required, untracked-file handling, a per-run commit cap, and the language commit messages are written in (commit.language, English by default regardless of what language the conversation is in)

What it doesn't do

This skill stops at the commit. It never pushes, amends, rebases, resets, or creates a branch — see skills/create-pr/ for opening or updating a PR once the commits exist. create-pr's own workflow already hands off to this skill for the commit step (references/workflow.md → "Commit anything pending").

Layout

SKILL.md                     # hub: preflight, grouping, message format, gotchas (agent entrypoint)
references/
  grouping.md                # the grouping ladder, default ordering, the exclusion list
  message-format.md          # the Conventional Commits spec, vocabulary inference, body/footer rules
  workflow.md                # end-to-end flow: preflight, group, commit, hook handling, report
  config.md                  # .eagerworks/commit.json schema and resolution order
assets/
  commit.example.json        # copyable starter config

The agent loads SKILL.md up front and opens the matching references/ file on demand, so the entrypoint stays lean while the full knowledge base is always available.

Example

Six uncommitted files:

src/auth/refresh.ts
src/auth/routes.ts
spec/auth/refresh_spec.ts
package.json
package-lock.json
.env

become three commits and one disclosed exclusion:

feat(auth): add token refresh endpoint      src/auth/refresh.ts, src/auth/routes.ts
test(auth): cover token refresh expiry      spec/auth/refresh_spec.ts
chore: bump dependency for token rotation   package.json, package-lock.json

Excluded: .env (credential material, never committed)

Configuration

The skill works with zero configuration — it commits everything it safely can by default, infers the type/scope vocabulary from git log, and defaults to English commit messages. To pin a fixed type or scope list, require a scope, cap commits per run, have it ask before including new files (commit.includeUntracked: "ask"), or change the language messages are written in (commit.language), add .eagerworks/commit.json. See references/config.md for the full schema and assets/commit.example.json for a starter.

Install

See the collection README. In short:

npx skills add eagerworks/skills --skill commit

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides utility commands to create coherent git commits following the Conventional Commits specification. It handles preflight checks, grouping logic, and formatting conventions, and appropriately adheres to strict security rules by ensuring credential materials or sensitive paths are never staged or committed.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 4e2af20. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 3 months ago
metadata
{
  "author": "eagerworks",
  "version": "1.0.0"
}

README badge

README badge for eagerworks/skills/commit