agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/git/SKILL.md

git

Skill13 starsChanged 25 days agoMITView on GitHub

Distributed version control system.

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

  • +3 more from mrgoonie

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 3

    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:

    Before merging a feature branch into main, use git rebase -i main to squash messy "WIP" commits into clean, atomic, descriptive commits …

    line 23
  2. Distinctive:

    If you accidentally commit secrets, using git rm is not enough as the secret remains in history.

    line 30
  3. Distinctive:

    Use this when your agent works with git — structured patterns beat pasted docs and prevent common hallucinations.

    line 42

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

Distributed version control system.

Ecosystem Graph

graph LR
  git["Git"]
  git -- "works well with" --> github-actions

Quick Start

Git tracks changes in source code during software development.

git init
git commit -m "Initial commit"

Production Patterns

Interactive Rebase

Before merging a feature branch into main, use git rebase -i main to squash messy "WIP" commits into clean, atomic, descriptive commits that clearly outline the feature's history.

Architecture & Scaling

Branching Strategies

Trunk-Based Development (short-lived feature branches merging into main quickly) is preferred over long-lived GitFlow branches to prevent massive, unresolvable merge conflicts.

Error Recovery

If you accidentally commit secrets, using git rm is not enough as the secret remains in history. Use git filter-repo or BFG Repo-Cleaner to permanently scrub the file from all historical commits, and invalidate the secret immediately.

Security Notes

Sign your commits using GPG or SSH keys. Platforms like GitHub verify these signatures, assuring team members that the commit wasn't spoofed.

Relationships

Works Well With: github-actions

References

Why use this skill

Use this when your agent works with git — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Referencing CLI flags or config keys that do not exist
  • Using outdated major versions of tools
  • Skipping lockfile or version pinning in examples

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • github-actions — works well with

Last Verified: 2026-07-02

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.