agentleFS
googlarzgooglarz/vibe-coder-kit/skills/vibe-git/SKILL.md

vibe-git

Skill1 starsChanged 6 months agoMITView on GitHub

Clean git workflow for vibecoders — branch check, meaningful commit message, upload to GitHub, and optional PR description. Prevents the "update" commit history problem.

  • Reads credentials
  • Installs packages
  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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:

    After finishing and verifying a feature or fix (after /vibe-test)

    line 12
  2. Distinctive:

    When you want to push to GitHub

    line 13
  3. Distinctive:

    When opening a pull request

    line 14
  4. Distinctive:

    If the command fails or shows no output: stop.

    line 28
  5. Very specific:

    If yes: check for .env files first.

    line 31
  6. Distinctive:

    If on main or master: stop.

    line 33
  7. Distinctive:

    If on a feature branch: confirm it's the right one.

    line 41
  8. Distinctive:

    Check for things that should never be committed:

    line 54
  9. Very specific:

    If any of those are present, stop and address them before proceeding.

    line 60
  10. Distinctive:

    Commit messages follow the Conventional Commits format — a short convention used by developers to make history scannable.

    line 66
  11. Distinctive:

    If the push fails because the remote branch has changes: do not force push.

    line 124
  12. Very specific:

    Never suggest --force unless explicitly asked and the consequences are explained.

    line 128
  13. Distinctive:

    Create a PR if: (a) this branch will be merged into main by someone else, or (b) you want a review before merging.

    line 132
  14. Distinctive:

    If this branch should become a PR, draft the description:

    line 134
  15. Distinctive:

    Ask: "Want me to open the PR now, or just prepare the description?"

    line 147
  16. Very specific:

    If yes, I'll check whether gh (the GitHub CLI) is installed and create the PR — you don't need to run anything.

    line 149

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

vibe-git

Clean git workflow after a session. "update", "fix", and "changes" in git history make it impossible to know what happened when something breaks. This skill produces commits you can actually read six months from now.

When to use

  • After finishing and verifying a feature or fix (after /vibe-test)
  • When you want to push to GitHub
  • When opening a pull request

Process

Step 1 — Branch check

I'll run:

git branch --show-current

If the command fails or shows no output: stop. This project doesn't have git set up yet. Say:

"This project doesn't have git set up yet. Want me to initialize it? Takes one command."

If yes: check for .env files first. If any exist, ensure .gitignore includes .env before the first add — initial commits are the most common place secrets get accidentally committed. Then: git init && git add -A && git commit -m "initial commit", and continue from Step 2.

If on main or master: stop. Do not commit directly to main.

git checkout -b feature/[short-description]

Name the branch after what you built: feature/email-settings-page, fix/login-redirect-loop, chore/update-dependencies. Short, descriptive, words-separated-by-dashes — typically 2-4 words. The goal is recognizability, not a word count. No "update" or "changes."

If on a feature branch: confirm it's the right one. If it's been open for more than a week with no commits, ask whether this should be a new branch instead.

Step 2 — Review what's changing

I'll run:

git diff --stat
git status

Show the user what's staged and unstaged. For each changed file, translate it to user-facing terms — not "modified src/auth/login.js" but "login page behavior."

Check for things that should never be committed:

  • .env files
  • node_modules/
  • *.log files
  • Any file containing a real password or API key

If any of those are present, stop and address them before proceeding. If .env isn't in .gitignore, add it now.

Step 3 — Write the commit message

I'll write the commit message for you — just tell me what you changed in plain terms and I'll format it correctly. Show it to you before committing; you can adjust it.

Commit messages follow the Conventional Commits format — a short convention used by developers to make history scannable. The format is:

type(scope): what changed, in plain English

[optional: one sentence on why, if not obvious]

Types:

  • feat — something new that users can see or do
  • fix — something broken that now works
  • refactor — code reorganization, nothing visible changed
  • perf — measurable improvement to speed or memory
  • test — adding or updating tests, nothing in production changed
  • chore — dependencies, config, tooling
  • docs — documentation only

Scope — the area of the app in one word: auth, settings, payments, dashboard, api.

The message — imperative tense, plain English, under 72 characters:

  • ✅ feat(settings): add email change form with confirmation step
  • ✅ fix(auth): redirect to login when session expires instead of crashing
  • ❌ update settings
  • ❌ fixed the bug
  • ❌ changes

Draft the message and show it to the user before committing. If they want to adjust it, do so.

If git status shows changes across unrelated concerns (e.g., a bug fix AND a dependency update AND a config change): split into separate commits. Run git add [specific-files] for each logical group and commit them separately — one commit per concern. Example: if git diff --stat shows both auth/login.js and package.json changed, those are likely unrelated — one is a feature/fix, the other is a dependency update. Stage and commit them separately.

Step 4 — Commit

This is the real commit with a proper message. If a checkpoint commit was already made earlier in the session, this supersedes it — create a new commit with the message drafted in Step 3.

I'll run these three commands in order. The middle line does nothing if .env is already in .gitignore — it's an extra safety step that makes sure secrets can't slip through:

git add -A
git restore --staged .env 2>/dev/null  # drop .env from staging, even if .gitignore should have caught it
git status  # verify .env is not staged before committing

Once git status confirms .env is clean, I'll commit:

git commit -m "[drafted message]"

Step 5 — Push

I'll run:

git push -u origin [branch-name]

This uploads your code to GitHub. (The -u flag means future pushes from this branch work with just git push — no need to repeat the full command.)

If the push fails because the remote branch has changes: do not force push. Explain what diverged and offer:

  1. Pull and merge: git pull origin [branch]
  2. Pull and rebase: git pull --rebase origin [branch]

Never suggest --force unless explicitly asked and the consequences are explained.

Step 6 — Pull request (if pushing to a shared repo or main branch)

Create a PR if: (a) this branch will be merged into main by someone else, or (b) you want a review before merging. If you're the only developer and you're merging immediately, a PR is optional — git merge and push directly.

If this branch should become a PR, draft the description:

## What changed
[2-3 bullets — user-facing changes, not file names]

## How to test
[The happy path steps from /vibe-test, or a short equivalent]

## What's not included
[Anything deliberately left out of this PR]

Ask: "Want me to open the PR now, or just prepare the description?"

If yes, I'll check whether gh (the GitHub CLI) is installed and create the PR — you don't need to run anything. If gh isn't installed yet, I'll let you know:

  • Mac: brew install gh, then run gh auth login once to connect to GitHub
  • Other: visit cli.github.com
gh pr create --title "[commit message]" --body "[description]"

Verification checklist

  • Not on main/master
  • No .env or secrets in the staged files
  • Commit message uses a valid type, has a scope, and describes what changed in plain English
  • Code uploaded to GitHub successfully
  • If PR: description has what changed, how to test, and what's not included

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.