agentleFS
X-Zero-LX-Zero-L/agent-skills/skills/auto-commit/SKILL.md

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

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. jokj624/skills-template★ 4same name
    2. astamvalley/claude-foundation★ 2same name
    3. divlook/skills★ 1same name
    4. mystilleef/spae-framework★ 1same name
    5. noGarne/skills★ 1same name
    6. 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.

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

    Run these commands in parallel to understand the current state:

    line 19
  2. Distinctive:

    By dependency: If file A depends on changes in file B, they should be in the same commit

    line 35
  3. Distinctive:

    Test files → test commits

    line 44
  4. Distinctive:

    CRITICAL: Before committing, check git status carefully:

    line 49
  5. Distinctive:

    Only commit files that are part of the current user's work

    line 50
  6. Distinctive:

    If there are files that appear to be from other people's branches or unrelated work, skip them

    line 51
  7. Distinctive:

    Do NOT git restore or git checkout other people's files — leave them as-is

    line 52
  8. Distinctive:

    Do NOT use git add -A or git add .

    line 53
  9. Very specific:

    Do NOT add Co-Authored-By or any AI attribution

    line 76
  10. Very specific:

    Do NOT add --no-verify or skip any hooks

    line 77
  11. Distinctive:

    Commit message should be in English, concise (under 72 chars for subject line)

    line 78
  12. Distinctive:

    Use HEREDOC format for commit messages to ensure proper formatting

    line 79
  13. Distinctive:

    After all commits are made, push and then log in one chained command:

    line 83
  14. Distinctive:

    If the branch has no upstream:

    line 89
  15. Very specific:

    Chain commands with &&: Always use && to chain sequential git commands in a single Bash call (e.g.

    line 106
  16. Very specific:

    No AI attribution: Never add Co-Authored-By, Generated by, or any similar metadata

    line 107
  17. Distinctive:

    No destructive operations: Never use git reset --hard, git checkout ., git clean -f, or git push --force

    line 108
  18. Distinctive:

    Specific file staging: Always git add specific files, never git add -A or git add .

    line 109
  19. Very specific:

    Respect hooks: Never use --no-verify

    line 110
  20. Distinctive:

    Don't touch others' work: If files from other people's work are in the working tree, leave them alone

    line 111
  21. Very specific:

    Skip sensitive files: Never commit .env, credentials, secrets, or API keys

    line 112
  22. Distinctive:

    Empty state: If there are no changes to commit, inform the user and stop

    line 113
  23. Distinctive:

    Verify success: After each commit, verify it succeeded before proceeding to the next

    line 115

“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.

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

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-current

Step 2: Identify Logical Groups

Analyze all changed files (staged + unstaged + untracked) and group them by logical concern. Common grouping strategies:

  1. By module/feature: Files that belong to the same feature or module go together
  2. By type of change: Schema changes, service changes, UI changes, config changes, etc.
  3. 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 commits
  • convex/repositories/ + convex/services/ → backend logic commits
  • convex/*.ts (functions layer) → API layer commits
  • src/components/ → UI component commits
  • src/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 restore or git checkout other people's files — leave them as-is
  • Do NOT use git add -A or git 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 for git add and git commit — they must be in the same call connected by &&
  • Do NOT add Co-Authored-By or any AI attribution
  • Do NOT add --no-verify or 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:

CommitFilesDescription
abc12343feat(auth): add login validation
def56782fix(ui): correct button alignment

Rules

  1. 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
  2. No AI attribution: Never add Co-Authored-By, Generated by, or any similar metadata
  3. No destructive operations: Never use git reset --hard, git checkout ., git clean -f, or git push --force
  4. Specific file staging: Always git add specific files, never git add -A or git add .
  5. Respect hooks: Never use --no-verify
  6. Don't touch others' work: If files from other people's work are in the working tree, leave them alone
  7. Skip sensitive files: Never commit .env, credentials, secrets, or API keys
  8. Empty state: If there are no changes to commit, inform the user and stop
  9. Single-concern commits: Each commit should address one logical concern
  10. Verify success: After each commit, verify it succeeded before proceeding to the next

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.