agentleFS
vltingvlting/claude-skills/skills/git/SKILL.md

git

Skill2 starsChanged 9 months agoMITView on GitHub

Commit and push with confirmation.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sql, api 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.
  • thechandanbhagatSkill

    sql

    Write SQL queries, optimize database performance, design schemas, and debug SQL issues. Use for database operations, query optimization, and schema design.

    Also in 3 projects that use this

  • xiaobei930Skill

    api

    RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

    Also in 3 projects that use this

  • MicrosoftSkill

    scaffold

    Also in 4 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 3 projects that use this

  • mrgoonieSkill

    devops

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit and push with confirmation.

    line 3
  2. Distinctive:

    Run git status, git diff --staged, and git diff to understand what needs committing

    line 13
  3. Distinctive:

    Check if we're in a worktree: git rev-parse --git-common-dir vs git rev-parse --git-dir

    line 14
  4. Distinctive:

    If worktree: show worktree path + merge target branch

    line 21
  5. Distinctive:

    If rebase conflicts → stop, report conflicts, do NOT continue

    line 26
  6. Distinctive:

    If worktree: merge onto the target branch, push, clean up worktree

    line 28
  7. Distinctive:

    Never commit or push without explicit user approval

    line 32
  8. Distinctive:

    Always use conventional commits

    line 33

“Common” is measured: kept by at least 6 in 10 of the 29 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

git

Commit and push with confirmation.

Invocation

/git

Behavior

  1. Run git status, git diff --staged, and git diff to understand what needs committing
  2. Check if we're in a worktree: git rev-parse --git-common-dir vs git rev-parse --git-dir
  3. Determine the target:
    • Normal repo: current branch name
    • Worktree: worktree path, worktree branch, and the branch it would merge into (the branch checked out in the main working tree)
  4. Ask for confirmation via AskUserQuestion before doing anything:
    • Show branch name
    • If worktree: show worktree path + merge target branch
    • Show a summary of what will be committed (files changed)
  5. On approval:
    • git fetch origin {branch} and git rebase origin/{branch}
    • If rebase conflicts → stop, report conflicts, do NOT continue
    • Stage changes, commit (conventional commit), push
    • If worktree: merge onto the target branch, push, clean up worktree

Rules

  • Never commit or push without explicit user approval
  • Always use conventional commits
  • End commit message with Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

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.