agentleFS
jisuzzzzjisuzzzz/haechi/skills/commit/SKILL.md

commit

Skill17 starsChanged 14 days agoMITView on GitHub

Commits the current task's changes locally — stages only owned files, writes the message in the repo's format, lets pre-commit hooks run. Use for /haechi:commit, when a unit of work is done and needs its local commit, or when the user asks to commit.

  • Reads credentials

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 2

    Distinctive

    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
  1. Distinctive:

    No changes: say so and stop.

    line 23
  2. Very specific:

    Never stage secrets: .env files, keys, tokens, credentials.

    line 28
  3. Distinctive:

    Never amend a commit that is already pushed.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Commit

Works with git on any host. Settings come from .haechi.json → git. The ask list and the DONE rules are in the session rules; this file adds only what is specific to committing.

Missing Git settings do not require setup. Resolve the current branch with git branch --show-current; take base/protected branches from explicit settings and repository instructions, then the local remote HEAD (git symbolic-ref --short refs/remotes/origin/HEAD) for the default branch. Do not infer branch rules from history. Before committing on a base or protected branch, create a task branch using the session's naming rule. If branch safety remains unclear, ask only about that choice. A local commit needs no Git host login.

1. Review

Run these together:

git status
git diff --staged
git diff
git log --oneline -10

No changes: say so and stop.

2. Stage

  • Stage only the files the current task owns, by name: git add src/orders/formatDate.ts test/orders/formatDate.test.ts. Never git add -A or git add . without reading the status first — the tree can hold another session's work.
  • Never stage secrets: .env files, keys, tokens, credentials. If one shows up in the diff, leave it out and tell the user.
  • Files already staged that the task does not own may be another session's: do not unstage them. Commit only your paths instead (git commit -F - -- <your files>) and say so.
  • Note every changed file you leave unstaged and the reason. You report it at the end.

3. Message

  • Honor explicit repository instructions and the optional git.commit setting. Example: en: type(scope): summary gives fix(orders): keep the time zone when formatting due dates. If neither defines a format, use the recent log already collected in Review. With no history, use a concise imperative subject describing the change. Resolve this here; missing format settings do not require setup.
  • The subject says what changed. The body is optional and says why.
  • One commit per unit of work. Split only when the kinds of diff differ — a file move and a behavior change go in separate commits, as the refactor playbook says (/haechi:refactor).
  • End with the attribution trailer the environment asks for, if any.
  • Pass the message through a single-quoted heredoc in a POSIX shell. PowerShell can corrupt non-ASCII arguments to native programs.
git commit -F - <<'EOF'
fix(orders): keep the time zone when formatting due dates

formatDate dropped the offset, so orders due at 23:30 showed the next day.
EOF

4. Hooks

  • pre-commit hooks run. Never pass --no-verify.
  • A hook fails: read its output, fix the cause, stage the fix and commit again. The commit did not happen, so this is a new commit, not an amend.
  • A hook changes files (a formatter, for example) and the commit stops: stage those files and commit again.
  • Never amend a commit that is already pushed.

5. After the commit

  • Push only with user authorization. Reuse authorization already given for this push; otherwise ask first.
  • Merging into the base or a protected branch is not part of this skill. Merge requests go through /haechi:mr.

Report

  • The commit hash and subject, one line per commit.
  • What stayed uncommitted, each file with the reason (another task's file, a secret, generated output).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.