agentleFS
gtappsgtapps/claude-code-hermit/.agents/skills/commit/SKILL.md

commit

Skill84 starsChanged 5 days agoMITView on GitHub

Changelog and commit — lightweight motion for day-to-day plugin dev work in the monorepo. One commit per plugin scope; CHANGELOG and staging routed by detected slug. Trigger when the user says "commit", "commit this", "save this", "wrap this up", "let's commit", or finishes a change and wants to capture it. NOT for releases, version bumps, or pushing — defer to /release for those.

  • Reads credentials

189 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

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Never --amend, --no-verify, force-push, or create tags here.

    line 14
  2. Distinctive:

    Never use git add -A or git add .

    line 15
  3. Distinctive:

    If a pre-commit hook fails, fix the root cause and create a new commit — don't bypass the hook.

    line 16
  4. Distinctive:

    Run git status --porcelain and partition the changed paths:

    line 23
  5. Distinctive:

    Run git status and git diff HEAD (or git diff if nothing staged yet).

    line 39
  6. Distinctive:

    If anything suspicious appears, pause and ask the user before continuing.

    line 44
  7. Very specific:

    Do not create a new version header (## [X.Y.Z]).

    line 56
  8. Distinctive:

    Write a short imperative first line (≤72 chars).

    line 60

“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

Detect which plugin's scope this change belongs to, append a changelog line in that plugin's CHANGELOG, then commit. No push, no tag, no version bump — that's /release's job.

Guardrails (check before starting)

  • Clean tree (git status shows nothing) → stop and say so, nothing to commit.
  • Detached HEAD, mid-rebase, or mid-merge → stop and ask the user to resolve that first.
  • Never --amend, --no-verify, force-push, or create tags here.
  • Never use git add -A or git add . — staging is path-scoped per step 0.
  • If a pre-commit hook fails, fix the root cause and create a new commit — don't bypass the hook.
  • main is the default base for everyday work. Claude Code's /plugin update only fires when version in plugin.json changes, so commits merged to main between releases are invisible to operators on the standard install path — [Unreleased] accumulates until /release ships them.

Steps

0. Detect scope

Run git status --porcelain and partition the changed paths:

  • Paths matching plugins/<X>/... → group by <X> (the slug).
  • Paths outside plugins/ (root README, .github/, .claude/, .claude-plugin/marketplace.json, root configs) → "root-scope" paths.

Then decide:

  • Single plugin slug, no root-scope paths → set $PLUGIN_DIR = plugins/<slug>/, set $SCOPE = plugin. Continue.
  • Multiple plugin slugs touched → stop. Print the per-slug file groups and ask the user to split the change into separate /commit runs (one per plugin). Do not stage anything.
  • Single plugin slug + a few root-scope paths → ask the user via AskUserQuestion: "Bundle the root-scope files (<list>) into the <slug> commit, or split them out as a separate root-scope commit?" Default to splitting if uncertain.
  • Root-scope only (no plugins/<X>/...) → set $SCOPE = root, $PLUGIN_DIR = none. Continue.

The rest of this skill branches on $SCOPE.

1. Review the diff

Run git status and git diff HEAD (or git diff if nothing staged yet). Scan for:

  • Secrets or credentials (.env, API keys, tokens)
  • Large binaries or generated files that shouldn't be versioned
  • Unrelated files that shouldn't be bundled in this commit

If anything suspicious appears, pause and ask the user before continuing.

2. Update CHANGELOG.md (skip for $SCOPE = root)

For $SCOPE = root: skip this step entirely. Root-scope edits (CI tweaks, root README, .github/) never ship to operators, so there is no operator-facing changelog to update.

For $SCOPE = plugin: open $PLUGIN_DIR/CHANGELOG.md. Find the ## [Unreleased] section at the top. Under the correct sub-section (### Added, ### Changed, or ### Fixed), append one or more bullets that describe what changed and why. Create the sub-section header if it's missing. If [Unreleased] itself is missing, prepend it immediately after the # Changelog header.

Follow the changelog-bullet format defined canonically in root AGENTS.md §Commits and releases: a plain sentence-case line under the category header (### Added/### Changed/### Fixed), with no **component:** prefix and no leading Fixed/Added verb, since the header carries the category. Backticks for commands/paths/flags; 1–2 lines each. Content that doesn't obviously affect operator behavior belongs in the commit message body, not here. The verbose form is reserved for ### Upgrade Instructions (added by /release, not here), which hermit-evolve reads imperative-step-by-step.

One header per section. [Unreleased] contains at most one each of ### Added, ### Changed, ### Fixed (and ### Removed/### Security when used). Append bullets under the existing header — never create a second copy of a header that already exists. Parallel worktree branches each adding their own headers is how the section fragments at merge time; if you find duplicate headers already present (left by earlier merges), consolidate them into one while you're in the file — same for a duplicated ### Upgrade Instructions list (merge, dedupe, renumber). /release-status flags this as fragmented changelog.

Do not create a new version header (## [X.Y.Z]). That belongs to /release.

3. Draft the commit message

Write a short imperative first line (≤72 chars). Add a body only if the why isn't obvious from the diff. Show the proposed message to the user and wait for approval.

4. Commit

Once approved, stage path-scoped (never -A):

  • $SCOPE = plugin: git add $PLUGIN_DIR (plus any root-scope paths the user opted to bundle in step 0).
  • $SCOPE = root: git add each root-scope path explicitly enumerated from step 0.

Then commit:

git commit -m "$(cat <<'EOF'
<message here>
EOF
)"

Report the resulting commit hash. Do not push, do not tag.

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.