commit
Skill0 starsChanged 2 months agoMITView on GitHub
Execute git commits with explicit file control and conventional message generation. Use when committing files, generating a conventional commit message, or both, including whole-skill and whole-folder commits with optional exclusions, from staged, unpushed, or from-ref changes.
188 other projects use a version of this.
Adopted by
Most recently taken up by
- daledesilva/obsidian_inktheir own version, first seen Nov 9, 2026
- thoughtbot/rails-consultanttheir own version, first seen Nov 8, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
- dirien/yet-another-agent-harnesstheir own version, first seen Nov 8, 2026
- denysdovhan/skillstheir own version, first seen Nov 8, 2026
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-dumasSkillvalidate-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
MicrosoftSkillact-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
decocmsSkilladd-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
MicrosoftSkillgenerate-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
mitsuhikoSkilloebb-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
mitsuhikoSkillpi-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
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- microsoft/vscode★ 195ksame name
- TryGhost/Ghost★ 56ksame name
- ToolJet/ToolJet★ 41ksame name
- ShareX/ShareX★ 41ksame name
- openai/symphony★ 27ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- windmill-labs/windmill★ 18ksame name
- EverMind-AI/EverMemOS★ 14ksame name
- EverMind-AI/EverOS★ 14ksame name
178 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentSkill
- agents-md-syncSkill
- aur-pkg-analysisSkill
- crush-sessionSkill
- gen-agentSkill
- git-aware-mvSkill
- tg-notifySkill
- tg-notipySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 19 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
4
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
- Distinctive: line 22
Do not ask the user what they want to do.
- Distinctive: line 26
Create initial todo list with all major workflow steps:
- Distinctive: line 41
Update todos after each step: mark completed, set next to in_progress.
- Distinctive: line 70
Commit mode only; message mode produces one message for the resolved set.
- Distinctive: line 72
After determining the file list, split into logical commits.
- Very specific: line 77
Never split skill changes: when files belong to a single skill (e.g., all under agent-skills/<skill-name>/), commit as one unit regardless …
- Distinctive: line 80
If splitting is warranted (default): create sub-groups of files and proceed through Steps 4-5 for each group independently
- Distinctive: line 81
If user requested no split: proceed with all files as a single commit
- Very specific: line 87
If --msg is provided (commit mode): use that message directly
- Distinctive: line 95
Commit mode, for each commit group, from the repository root:
- Distinctive: line 141
Commit with explicit message and files:
- Distinctive: line 147
Commit with generated message from staged changes:
- Distinctive: line 153
Commit with generated message from all changes:
- Distinctive: line 159
Commit the whole skill (the skill scope expands to an explicit file list):
- Distinctive: line 165
Commit the whole folder (the dir scope expands to an explicit file list):
- Distinctive: line 171
Commit the whole folder except a subfolder (exclusions are repeatable paths.
- Distinctive: line 177
Commit from specific commit point (by hash):
- Distinctive: line 183
Commit from specific commit point (by title):
- Distinctive: line 189
Commit from specific commit point (by content):
- Very specific: line 217
Commit hash: from abc123 or from abc123def456789
- Distinctive: line 225
No implicit file selection (no git add ., git add -A, or git add --all.
- Very specific: line 229
No alternate-index bypass: the executor refuses to run while GIT_INDEX_FILE is set, because committing through a side index leaves the …
- Distinctive: line 230
When the equality guard aborts on unrelated staged work, the only permitted resolutions are committing that staged work as its own logical …
“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.
Files
Git Commit Executor
Execute git commits with explicit file specification and conventional commit message generation. Message generation (absorbed from the former commit-msg skill) is a mode of this skill.
Purpose
This skill ensures safe, intentional commits by requiring explicit file listing. Files are staged explicitly, one file at a time (git add <file>, deletions via git add -u <file>), never with blanket staging or directory paths, and the executor verifies the staged set equals the explicit list exactly before committing. When no message is supplied, the skill analyzes the resolved change set and generates a conventional commit message per references/message-format.md. The message mode generates and prints a message without committing. --push pushes after a successful commit; --dry-run stages and verifies without committing.
BEGIN EXECUTION IMMEDIATELY
Do not ask the user what they want to do. Start with step 1.
Mandatory: Initialize todos tool before any operation
Create initial todo list with all major workflow steps:
{
"todos": [
{"content": "Parse commit arguments", "status": "in_progress", "active_form": "Parsing commit arguments"},
{"content": "Resolve file list", "status": "pending", "active_form": "Resolving file list"},
{"content": "Split into logical commits", "status": "pending", "active_form": "Splitting into logical commits"},
{"content": "Resolve commit messages", "status": "pending", "active_form": "Resolving commit messages"},
{"content": "Execute git commits", "status": "pending", "active_form": "Executing git commits"},
{"content": "Report results", "status": "pending", "active_form": "Reporting results"}
]
}Update todos after each step: mark completed, set next to in_progress.
Step 1: Parse Arguments
Examine the command parameters:
message: generate-only mode; resolve files, generate the message, print it, and do not commit- scope:
all,unpushed,from <ref>(commit hash, commit title, or full commit content),skill <name>(all changes in a skill folder), ordir <path>(all changes in a directory). No scope = default (staged changes) - Exclusions: items may be excluded in natural language ('except the tests', 'skip SKILL.md') or as explicit paths; each exclusion is resolved to a concrete file or directory path from the resolved list and passed to the resolver as
--exclude <path>(repeatable) --msg "message": commit mode only; use the provided message directly--push: push after a successful commit--dry-run: stage and verify, do not commit--files file1 file2 file3or-- file1 file2 file3: explicit file list, combined with any scope's files
Update todos: mark "Parse commit arguments" as completed, set "Resolve file list" to in_progress.
Step 2: Resolve the File List
Vague requests define their own boundaries: when the user says "commit changes" without naming a scope, infer the boundary from context (the work just done) and pick the matching scope or an explicit file list. The executor's equality guard then enforces exactly that set.
- Resolve the scope's files: if a scope is present, from the repository root, run
python3 scripts/generate_message.py <scope> [--exclude <path>]...and take thefilesvalue from its JSON output. Theskill <name>anddir <path>scopes expand a whole skill folder or directory into an explicit file list, including both sides of renames; useskill <name>when the user names a whole skill anddir <path>for any other folder or directory. A folder is never a commit unit: the commit always receives the expanded file list. - Resolve exclusions: natural-language exclusions ('commit the folder except the templates') are mapped to concrete file or directory paths from the expanded list and passed as
--exclude <path>(repeatable). When a term matches several paths, pass all matches. The resolver warns when an--excludepath matches nothing; that is a mapping error: re-resolve the term against the expanded list. - Combine: the final file list is the union of the scope's files and any explicit list (
--filesor--), deduplicated. Scope only, explicit only, or both are all valid. - Empty file list: stop with "no changes found"; do not commit.
Update todos: mark "Resolve file list" as completed, set "Split into logical commits" to in_progress.
Step 3: Split into Logical Commits (Mandatory)
Commit mode only; message mode produces one message for the resolved set.
After determining the file list, split into logical commits. Splitting is mandatory unless the user explicitly states "do not split" or "no split":
- Split by domain/concern: files touching unrelated features, modules, or domains go into separate commits
- Split by repository: changes across multiple repos are committed separately per repo
- Split by content type: docs, code, config, tests go into separate commits when mixed
- Never split skill changes: when files belong to a single skill (e.g., all under
agent-skills/<skill-name>/), commit as one unit regardless of file count or change types - One commit per skill: a skill's changes must be committed together - no partial skill commits across multiple commits
- Exception: if the user explicitly states "do not split", "no split", or
--nosplit, commit all files as a single unit - If splitting is warranted (default): create sub-groups of files and proceed through Steps 4-5 for each group independently
- If user requested no split: proceed with all files as a single commit
Update todos: mark "Split into logical commits" as completed, set "Resolve commit messages" to in_progress.
Step 4: Resolve the Message
- If
--msgis provided (commit mode): use that message directly - Otherwise generate a conventional commit message following
references/message-format.md: read the actual changes (git diff -- <file>for tracked files, file content for new files), choose the type and scope, write the description in imperative mood, and add a body or footers only when they add context scripts/generate_message.pyoutput includes a deterministicmessagedraft (type, scope, subject) that can be used as-is or refined; it is the fallback for non-interactive runs
Update todos: mark "Resolve commit messages" as completed, set "Execute git commits" to in_progress.
Step 5: Execute Git Commit
Commit mode, for each commit group, from the repository root:
python3 scripts/execute_commit.py --msg "<message>" [--push] [--dry-run] -- <file1> <file2>The script preflights the git repository, stages each listed file explicitly, verifies the staged set equals the list exactly (aborts on out-of-scope staged work), and commits. It rejects directories, globs, and unknown arguments. For multi-repo splits, run the script from each affected repository's root; one commit per repo.
Message mode: print the generated message in a code block for review and modification. Do not run execute_commit.py.
Capture the output. Then retrieve the short hash and commit message for reporting.
Update todos: mark "Execute git commits" as completed, set "Report results" to in_progress.
Step 6: Report Results
Report the commit result using the output from Step 5. Show the short commit hash (7 chars) and the complete commit message (subject line + body if present). In message mode, the printed message block from Step 5 is the result.
Format:
Done (`<short_hash>`):
<commit_subject_line>
<commit_body_if_any>Example output:
Done (`7a3f2e1`):
feat(skills): add defold skill for Defold game engine support
Adds comprehensive skill covering Defold Lua scripts, collections,
game objects, materials, shaders, and project configuration.- Retrieve the short hash (e.g.,
git rev-parse --short HEAD) - Retrieve the full message (e.g.,
git log -1 --format='%s%n%n%B') - Include the body only if one exists (skip blank body lines)
Update todos: mark "Report results" as completed. All todos now completed. Then output summary of completed todos as text, and pass empty array to clear:
todos([]).
Examples
Commit with explicit message and files:
/commit --msg "feat(api): add user endpoint" -- src/api.go src/handler.goCommit with generated message from staged changes:
/commit -- src/main.go src/config.goCommit with generated message from all changes:
/commit all -- src/main.go tests/main_test.goCommit the whole skill (the skill scope expands to an explicit file list):
/commit skill commitCommit the whole folder (the dir scope expands to an explicit file list):
/commit dir commit/scriptsCommit the whole folder except a subfolder (exclusions are repeatable paths; natural-language exclusions are resolved to paths first):
/commit dir commit --exclude commit/referencesCommit from specific commit point (by hash):
/commit from abc123 -- internal/core.goCommit from specific commit point (by title):
/commit from "feat: add authentication" -- src/auth.goCommit from specific commit point (by content):
/commit from "add authentication module with JWT support" -- src/auth.goGenerate-only: print the message for staged changes, do not commit:
/commit messageGenerate-only from all changes:
/commit message allSyntax Guide
Message must be provided via --msg (commit mode) or generated from the resolved changes. Files come from a named scope, an explicit list, or both (combined, deduplicated):
/commit [message] [all|unpushed|from "<ref>"|skill <name>|dir <path>] [--msg "message"] [--push] [--dry-run] [--exclude <path>]... [--files|--] file1 file2 ...The from <ref> parameter accepts:
- Commit hash:
from abc123orfrom abc123def456789 - Commit title:
from "feat: add feature" - Commit content:
from "description of what was done in that commit"
FORBIDDEN: Do not use git add ., git add -A, git add --all, or git commit -a patterns. New files MUST be staged explicitly with git add <file>. All file lists MUST be explicit or derived from a named scope. Directories and globs are rejected by the executor; whole-folder requests MUST be expanded to file lists first (the skill and dir scopes do this). Committing through an alternate index is FORBIDDEN: never set or honor GIT_INDEX_FILE (or any temporary or side index) to route a commit around the staged-set equality guard; the executor aborts while GIT_INDEX_FILE is set.
Safety Guarantees
- No implicit file selection (no
git add .,git add -A, orgit add --all; new files staged with explicit paths) - Explicit file listing prevents accidental commits
- A named scope and an explicit list are additive: the final file set is their union, deduplicated
- Staged-set equality guard: the commit proceeds only when the staged set equals the explicit list exactly; out-of-scope staged work aborts the run
- No alternate-index bypass: the executor refuses to run while
GIT_INDEX_FILEis set, because committing through a side index leaves the repository index stale against the new HEAD and creates phantom staged reverts that a later plaingit commitwould silently execute - When the equality guard aborts on unrelated staged work, the only permitted resolutions are committing that staged work as its own logical commit or asking the user to unstage or finish it and retry; never unstage user-staged entries without explicit per-entry approval
- Directories and globs are rejected; whole-folder requests resolve to explicit file lists via the skill or dir scope
--pushruns only after a successful commit;--dry-runstages and verifies without committing- The
allscope includes untracked files and is the riskiest scope - Message mode never commits
- Message generation follows
references/message-format.md(Conventional Commits v1.0.0)
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
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.

