/blake-os:git-commitfrom blake-os
Stages explicit file paths and creates atomic commits matching the repo's existing message style. Scans for secrets before staging and checks remote state without blocking.
Ships in blake-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create one or more atomic commits from the working tree. Autonomous by default — execute without asking unless the user says "show plan first" or "confirm before commit".
Run from repo root:
node "${CLAUDE_PLUGIN_ROOT}/skills/git-commit/scripts/git-changes.mjs"
echo "---recent-subjects---"
git log --pretty=%s -n 20 2>/dev/null || true
If in_repo: no, stop: "This directory is not a git repository."
If status shows clean working tree, stop: "Nothing to commit."
Measure whether the remote moved while work was in progress. This is informational — it never stops the commit. Committing while behind is fine; the merge happens later in git-sync.
git fetch origin 2>/dev/null || true
git rev-list --left-right --count @{u}...HEAD 2>/dev/null # output: "<behind> <ahead>"
Remember the behind number (the first one) — surface it in Step 6. Do not run git pull here, and do not skip committing for any remote state.
Use the Metadata block (---status---, ---diffstat---, ---recent-subjects---).
git diffgit diff <path> only when intent is unclear from filename and diffstat?? path/), treat contents as the change unless the directory is hugeScan for distinct concerns. Split when obvious; one commit when ambiguous.
Apply the grouping rules in references/conventions.md — file-level groups, file-type ordering across multiple commits, small diffs to a single commit.
Draft messages matching ---recent-subjects--- style. If history is empty or mixed, use the default types from references/conventions.md.
Before staging, scan paths for secrets: .env, credentials, *.pem, *.key, token files. Exclude them and warn if present.
Never stage with git add -A or git add .. Stage explicit file paths only.
Commit on the current branch. Do not create feature branches; commits go straight to wherever HEAD is (typically main).
For each group:
git add path/to/file1 path/to/file2 && git commit -m "$(cat <<'EOF'
type: subject line
Optional body explaining why.
EOF
)"
git log --oneline -n <number-of-commits-created>
git status --short --branch
Report: commit hash(es), subject line(s), files per commit.
If the behind count from Step 1 was greater than 0, the local branch is now diverged from the remote. Add a line: "⚠ The remote advanced by N commits while you worked — run git-sync to merge them in before git-push." Do not push a diverged branch.
Only when user explicitly requests review: present the plan (files per commit + messages) and wait for approval before Step 5.
git add -A or git add ...env, credentials, *.pem, *.key, or token files; warn if present.git-sync integrates first.Ordering across operations is owned by blake-os:git-ops.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/feedbackFiles a GitHub issue on this repo to tell Brent about anything worth his attention — confusion, something that didn't work, an idea or wish, or a new way the user phrased a request. Brent is a collaborator on this private repo and uses these issues to fix and improve the tools. Use this whenever the user sounds confused or frustrated, says something is broken or didn't work as expected, wishes something worked differently, or asks to tell Brent something — even if they never say "feedback" or "issue". Also invoked by blake-os:git-ops to log a request it could not cleanly route./git-opsSingle front door for everything git and GitHub — saving work, getting the latest, backing up, and putting changes online. Routes plain-language requests to the right operation in the correct order, even when the user does not use git terms. Use whenever the user wants to save, back up, update, sync, upload, publish, or check on their project's files — phrases like "save my work", "back it up", "I'm done", "get the latest", "put it online", "did it save?"./git-pushInternal push step for the blake-os git-ops router. Publishes local commits to origin only when the branch is current, after verifying it is not behind; never force-pushes. Invoked by blake-os:git-ops — not a direct entry point. Trigger directly only on the exact request "git push"./git-syncInternal sync step for the blake-os git-ops router. Brings the current branch up to date with origin — fast-forwards when only behind, makes a merge commit when local and remote diverged, aborts and hands off on conflict; never rebases or force-pushes. Invoked by blake-os:git-ops — not a direct entry point. Trigger directly only on the exact request "git pull" or "git sync".npx claudepluginhub basher83/lunar-claude --plugin blake-osOther plugins' skills for the same job