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

git

Skill2 starsChanged 9 months agoMITView on GitHub

Commit and push with confirmation.

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use markdown-novel-viewer, cpp-style 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.
  • OpenAnalystIncSkill

    markdown-novel-viewer

    Also in 3 projects that use this

  • clice-ioSkill

    cpp-style

    Read before writing, modifying or reviewing any C++ code — redundancy (the rule we care most about), modules and files, errors and defense, async, logging, naming, words, templates, API preferences.

    Also in 3 projects that use this

  • 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 4 projects that use this

  • AnthropicSkill

    comments

    Review open NPRM comment periods, log decisions, track deadlines. Use when an NPRM has a comment window open and you need to surface deadlines, decide whether to file, or record a filing / not-filing / waived decision (--decide CMT-ID).

    Also in 3 projects that use this

  • mrgoonieSkill

    web-testing

    Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.

    Also in 3 projects that use this

  • mrgoonieSkill

    web-frameworks

    Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.

    Also in 3 projects that use this

  • +4 more from mrgoonie

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