agentleFS
JakkuSakuraJakkuSakura/skills/git-ops/SKILL.md

git-ops

Skill1 starsChanged 9 months agoMITView on GitHub

Git operations for local repos and GitHub workflows. Use when Codex needs to inspect repo state, craft commits, manage branches, rebase/merge safely, or decide on Git/GitHub commands (including gh usage) while following safety constraints and commit conventions.

  • Deletes or force-pushes
  • Commits and pushes

4 other projects use 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

13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use git status -sb and git diff to understand current changes.

    line 15
  2. Distinctive:

    Avoid touching unrelated user changes.

    line 16
  3. Distinctive:

    Prefer non-destructive operations and reversible steps.

    line 21
  4. Distinctive:

    Avoid git reset --hard or git checkout -- unless explicitly requested.

    line 22
  5. Distinctive:

    Do not amend commits unless explicitly requested.

    line 23
  6. Distinctive:

    If a command would rewrite history (rebase, amend, force push), require explicit user intent.

    line 27
  7. Distinctive:

    Check commit message patterns in history first.

    line 32
  8. Distinctive:

    If no pattern exists, use Conventional Commits.

    line 33
  9. Very specific:

    Prefer the gh CLI when interacting with GitHub.

    line 50
  10. Distinctive:

    Default to Conventional Commits when no clear pattern exists.

    line 55
  11. Distinctive:

    Prefer fast-forward updates, then rebase, then merge (in that order).

    line 59
  12. Distinctive:

    Do not recommend or execute history-rewriting commands unless explicitly requested.

    line 60
  13. Distinctive:

    Treat deleting files/directories, rebuilding databases, git reset --hard, and git push --force as destructive.

    line 65

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

Overview

Handle routine Git operations with safety-first constraints, clear commit messaging, and minimal history risk.

Workflow

  1. Inspect repo state
  • Use git status -sb and git diff to understand current changes.
  • Avoid touching unrelated user changes; never revert changes you did not make.
  • Ignore unexpected changes you did not make and do not include them in your commits.
  • Assume other users or agents may be working concurrently; never interrupt, include, or alter their in-progress work unless explicitly instructed.
  1. Choose the safest path
  • Prefer non-destructive operations and reversible steps.
  • Avoid git reset --hard or git checkout -- unless explicitly requested.
  • Do not amend commits unless explicitly requested.
  1. Apply changes
  • Stage only relevant files.
  • If a command would rewrite history (rebase, amend, force push), require explicit user intent.
  • For partial staging, git add -p.
  • Otherwise, git add is fine for files you fully own in the current task.
  1. Create commits
  • Check commit message patterns in history first.
  • If no pattern exists, use Conventional Commits.
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests

feat(certain-module): A new feature in a specific module
fix(certain-module): A bug fix in a specific module
...
  1. GitHub interactions
  • Prefer the gh CLI when interacting with GitHub.

Commit Conventions

  • Inspect prior commits to mirror existing style.
  • Default to Conventional Commits when no clear pattern exists.

Rebase/Merge Guidance

  • Prefer fast-forward updates, then rebase, then merge (in that order).
  • Do not recommend or execute history-rewriting commands unless explicitly requested.

Destructive-Operation Gate

  • Warn before destructive operations and provide safer alternatives.
  • Treat deleting files/directories, rebuilding databases, git reset --hard, and git push --force as destructive.
  • Confirm explicit intent before executing irreversible actions.

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.