agentleFS
mkalkeremkalkere/agent-coordinator/skills/development/git/SKILL.md

git

Skill4 starsChanged 9 months agoMITView on GitHub

Git operations - branch, commit, push, merge

  • Commits and pushes

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

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

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 2

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Never use git add . or git add -A: - always stage specific files:

    line 44
  2. Distinctive:

    Run project linter/formatter

    line 104

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

When to Use

Any time you need to interact with git version control.

Core Operations

Check Status

git status
git branch --show-current
git log --oneline -5

Create Feature Branch

Pattern: <type>/<issue>-<description>

git checkout main
git pull
git checkout -b feat/123-add-feature

Types:

  • feat/ - new feature
  • fix/ - bug fix
  • docs/ - documentation
  • refactor/ - code refactor
  • test/ - tests

Stage Changes

Never use git add . or git add -A - always stage specific files:

git add path/to/file1.py path/to/file2.py

Or use interactive staging:

git add -p

Commit

Format: type(scope): description

git commit -m "$(cat <<'EOF'
type(scope): short description

Longer explanation if needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
EOF
)"

Push

git push -u origin <branch-name>

Switch Branches

git checkout <branch>
git checkout main && git pull

Merge (local)

git checkout main
git merge <feature-branch>
git push
git branch -d <feature-branch>

Safety Rules

  1. Never commit to main/master directly
  2. Never force push to shared branches
  3. Never use git add . - stage specific files
  4. Always pull before starting work
  5. Run tests before committing

Pre-Commit Checklist

Before every commit:

  1. git branch --show-current - verify not on main
  2. Run project linter/formatter
  3. Run tests
  4. git diff --staged - review what you're committing
  5. Stage specific files only

Completion

Git operation is complete when:

  • Changes are committed (if committing)
  • Changes are pushed (if pushing)
  • Working directory is clean or intentionally dirty

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.