agentleFS
shivae372shivae372/claude-bootstrap/.claude/skills/git-workflow/SKILL.md

git-workflow

Skill1 starsChanged 7 months agoApache-2.0View on GitHub

Git workflow assistant. Invoke when the user wants to commit, create a branch, write a PR description, or follow the project's git conventions. Auto-activates on: "commit this", "create a PR", "write a commit message", "what should I name this branch".

  • Deletes or force-pushes
  • Commits and pushes

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, ci-cd-pipelines 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.
  • Microsoft AzureSkill

    squad-commands

    Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.

    Also in 5 projects that use this

  • harrissohail6Skill

    ci-cd-pipelines

    CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    architectural-proposals

    How to write comprehensive architectural proposals that drive alignment before code is written

    Also in 4 projects that use this

  • GitHubSkill

    e2e-template-testing

    End-to-end validation of coordinator and agent template changes

    Also in 3 projects that use this

  • GitHubSkill

    notification-routing

    Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • +5 more from Azure
  • +1 more from github

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    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 any git operation, read CLAUDE.md for:

    line 13
  2. Distinctive:

    Commit message format (conventional commits?

    line 14
  3. Distinctive:

    Write commit message following project conventions

    line 26
  4. Very specific:

    If conventional commits: type(scope): description

    line 27
  5. Distinctive:

    Read the issue/task first to understand scope

    line 33
  6. Very specific:

    Check it doesn't already exist: git branch -a | grep name

    line 35
  7. Distinctive:

    NEVER suggest git push --force on a shared branch

    line 59
  8. Distinctive:

    NEVER commit to main or master directly

    line 60
  9. Very specific:

    Always check for secrets before committing: git diff --cached | grep -i "api_key\|secret\|password\|token"

    line 61

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

Purpose

Handle git operations following the project's specific conventions. Read the project's CLAUDE.md to understand branch naming, commit message format, and PR conventions before doing anything.

Steps

1. Read Project Conventions

Before any git operation, read CLAUDE.md for:

  • Commit message format (conventional commits? custom format?)
  • Branch naming convention
  • PR template (check .github/pull_request_template.md if it exists)

2. Check Current State

git status
git diff --stat HEAD

3. For Commits

  • Group related changes into logical commits (not one giant commit)
  • Write commit message following project conventions
  • If conventional commits: type(scope): description
  • Include breaking change footer if relevant
  • Max subject line: 72 characters
  • Body: what changed and WHY, not what (the diff shows what)

4. For Branches

  • Read the issue/task first to understand scope
  • Name: type/short-description (e.g., feat/add-review-widget, fix/auth-cookie-bug)
  • Check it doesn't already exist: git branch -a | grep name

5. For PR Descriptions

Structure:

## What
[One paragraph: what changed]

## Why  
[One paragraph: why this change was needed]

## How
[Brief technical explanation of the approach]

## Testing
[How to test this change]

## Checklist
- [ ] Tests pass
- [ ] No console.logs left
- [ ] Docs updated if needed

6. Safety Checks

  • NEVER suggest git push --force on a shared branch
  • NEVER commit to main or master directly
  • Always check for secrets before committing: git diff --cached | grep -i "api_key\|secret\|password\|token"

Output

Print the git commands to run (don't run them automatically unless the user said "just do it"). Explain what each command does if it's non-obvious.

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.