auto-commit
Skill2 starsChanged 10 months agoMITView on GitHub
Analyze git status, batch commit changes by logical groups, and push to remote. No co-author or AI attribution info. Use when the user says "auto commit", "batch commit", "commit and push", or triggers /auto-commit.
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
6 other projects use a version of this.
Adopted by
Most recently taken up by
- divlook/skillstheir own version, first seen Aug 23, 2026
- mystilleef/spae-frameworktheir own version, first seen Aug 4, 2026
- noGarne/skillstheir own version, first seen Aug 4, 2026
- astamvalley/claude-foundationtheir own version, first seen Apr 3, 2026
- jamesdphillips/dot-agents-skillstheir own version, first seen Mar 3, 2026
- jokj624/skills-templatetheir own version, first seen Jan 12, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- jokj624/skills-template★ 4same name
- astamvalley/claude-foundation★ 2same name
- divlook/skills★ 1same name
- mystilleef/spae-framework★ 1same name
- noGarne/skills★ 1same name
- jamesdphillips/dot-agents-skills★ 0same name
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 repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- gemini-cliSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 17 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
6
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 19
Run these commands in parallel to understand the current state:
- Distinctive: line 35
By dependency: If file A depends on changes in file B, they should be in the same commit
- Distinctive: line 44
Test files → test commits
- Distinctive: line 49
CRITICAL: Before committing, check git status carefully:
- Distinctive: line 50
Only commit files that are part of the current user's work
- Distinctive: line 51
If there are files that appear to be from other people's branches or unrelated work, skip them
- Distinctive: line 52
Do NOT git restore or git checkout other people's files — leave them as-is
- Distinctive: line 53
Do NOT use git add -A or git add .
- Very specific: line 76
Do NOT add Co-Authored-By or any AI attribution
- Very specific: line 77
Do NOT add --no-verify or skip any hooks
- Distinctive: line 78
Commit message should be in English, concise (under 72 chars for subject line)
- Distinctive: line 79
Use HEREDOC format for commit messages to ensure proper formatting
- Distinctive: line 83
After all commits are made, push and then log in one chained command:
- Distinctive: line 89
If the branch has no upstream:
- Very specific: line 106
Chain commands with
&&: Always use && to chain sequential git commands in a single Bash call (e.g. - Very specific: line 107
No AI attribution: Never add Co-Authored-By, Generated by, or any similar metadata
- Distinctive: line 108
No destructive operations: Never use git reset --hard, git checkout ., git clean -f, or git push --force
- Distinctive: line 109
Specific file staging: Always git add specific files, never git add -A or git add .
- Very specific: line 110
Respect hooks: Never use --no-verify
- Distinctive: line 111
Don't touch others' work: If files from other people's work are in the working tree, leave them alone
- Very specific: line 112
Skip sensitive files: Never commit .env, credentials, secrets, or API keys
- Distinctive: line 113
Empty state: If there are no changes to commit, inform the user and stop
- Distinctive: line 115
Verify success: After each commit, verify it succeeded before proceeding to the next
“Common” is measured: kept by at least 6 in 10 of the 4 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
Auto Commit
Automatically analyze git working tree, group changes into logical batches, commit each batch with a concise message, and push to remote. No Co-Authored-By or any AI attribution is added.
When to Use
- User says "auto commit", "batch commit", "commit and push", "提交代码", "自动提交"
- User triggers
/auto-commit
Workflow
Step 1: Analyze Git Status
Run these commands in parallel to understand the current state:
git status --short
git diff --stat
git diff --cached --stat
git log --oneline -5
git branch --show-currentStep 2: Identify Logical Groups
Analyze all changed files (staged + unstaged + untracked) and group them by logical concern. Common grouping strategies:
- By module/feature: Files that belong to the same feature or module go together
- By type of change: Schema changes, service changes, UI changes, config changes, etc.
- By dependency: If file A depends on changes in file B, they should be in the same commit
Typical groups (adapt based on actual changes):
convex/schemas/changes → schema/type commitsconvex/repositories/+convex/services/→ backend logic commitsconvex/*.ts(functions layer) → API layer commitssrc/components/→ UI component commitssrc/routes/→ route/page commits- Config files (
package.json,tsconfig.json,vite.config.ts, etc.) → config commits - Test files → test commits
- Migration files → migration commits
Step 3: Exclude Other People's Changes
CRITICAL: Before committing, check git status carefully:
- Only commit files that are part of the current user's work
- If there are files that appear to be from other people's branches or unrelated work, skip them
- Do NOT
git restoreorgit checkoutother people's files — leave them as-is - Do NOT use
git add -Aorgit add .— always add specific files by name
Step 4: Batch Commit
For each logical group, use && to chain the git add and git commit commands in a single Bash call, ensuring they run sequentially and stop on failure:
git add <file1> <file2> ... && git commit -m "$(cat <<'EOF'
type(scope): short description
EOF
)"Message format:
<type>(<scope>): <short description>Where type is one of: feat, fix, refactor, chore, docs, test, perf, style, build, ci
IMPORTANT:
- Always use
&&to chain sequential commands in one Bash call (e.g.git add ... && git commit ...). Do NOT make separate Bash calls forgit addandgit commit— they must be in the same call connected by&& - Do NOT add
Co-Authored-Byor any AI attribution - Do NOT add
--no-verifyor skip any hooks - Commit message should be in English, concise (under 72 chars for subject line)
- Use HEREDOC format for commit messages to ensure proper formatting
Step 5: Push and Summary
After all commits are made, push and then log in one chained command:
git push && git log --oneline -<N>If the branch has no upstream:
git push -u origin <current-branch> && git log --oneline -<N>(where N = number of commits just made)
Present a summary table:
| Commit | Files | Description |
| abc1234 | 3 | feat(auth): add login validation |
| def5678 | 2 | fix(ui): correct button alignment |
Rules
- Chain commands with
&&: Always use&&to chain sequential git commands in a single Bash call (e.g.git add file1 file2 && git commit -m "msg"). Never split dependent commands into separate Bash calls - No AI attribution: Never add
Co-Authored-By,Generated by, or any similar metadata - No destructive operations: Never use
git reset --hard,git checkout .,git clean -f, orgit push --force - Specific file staging: Always
git addspecific files, nevergit add -Aorgit add . - Respect hooks: Never use
--no-verify - Don't touch others' work: If files from other people's work are in the working tree, leave them alone
- Skip sensitive files: Never commit
.env, credentials, secrets, or API keys - Empty state: If there are no changes to commit, inform the user and stop
- Single-concern commits: Each commit should address one logical concern
- Verify success: After each commit, verify it succeeded before proceeding to the next
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.

