agentleFS
yugasunyugasun/aiops/skills/gitops/SKILL.md

gitops

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Git operations wrapper: sync, stage, commit, push. Generates Conventional Commits messages with .scratch artifact references. Use when the user says gitops, commit, push, sync code, or needs version control operations.

  • Commits and pushes

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    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:

    If merge conflict: report to user, do not auto-resolve.

    line 23
  2. Distinctive:

    Create commit with Conventional Commits message.

    line 44
  3. Very specific:

    Read .scratch/<feature>/NOTES.md for design context

    line 58
  4. Very specific:

    Read .scratch/<feature>/REVIEW.md to confirm review passed

    line 59
  5. Distinctive:

    All blocking REVIEW.md findings resolved

    line 65
  6. Distinctive:

    No untracked .scratch files in commit (add to .gitignore if needed)

    line 66
  7. Distinctive:

    Never modify code files

    line 96
  8. Distinctive:

    Never auto-resolve merge conflicts

    line 97
  9. Distinctive:

    Always confirm with user before push

    line 98
  10. Distinctive:

    Commit message must reference .scratch artifacts when available

    line 99
  11. Very specific:

    If .scratch/<feature>/REVIEW.md exists and verdict is REQUEST_CHANGES, block commit and report

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Gitops

Git version control operations for the aiops delivery chain.

Operations

sync

Pull latest from remote. Default strategy: rebase.

git pull --rebase

If merge conflict: report to user, do not auto-resolve.

status

Show current working tree state.

git status
git diff --stat

stage

Stage files for commit. Supports selective staging.

git add <files>

commit

Create commit with Conventional Commits message.

Format:

<type>(<scope>): <subject>

<body>

Refs: .scratch/<feature-slug>/

Types: feat | fix | refactor | test | docs | chore

Message generation:

  • Read .scratch/<feature>/NOTES.md for design context
  • Read .scratch/<feature>/REVIEW.md to confirm review passed
  • Scope = feature-slug or module name
  • Subject = imperative, lowercase, no period
  • Body = reference upstream artifacts for traceability

Pre-commit checks:

  • All blocking REVIEW.md findings resolved
  • No untracked .scratch files in commit (add to .gitignore if needed)

push

Push to remote. Requires user confirmation.

git push origin <branch>

branch

Branch management: create, switch, list.

git checkout -b <branch>   # create + switch
git checkout <branch>      # switch
git branch                 # list

Flow

  1. sync — pull latest
  2. status — review changes
  3. stage — select files
  4. commit — with generated message
  5. push — after user confirms

Constraints

  • Never modify code files
  • Never auto-resolve merge conflicts
  • Always confirm with user before push
  • Commit message must reference .scratch artifacts when available
  • If .scratch/<feature>/REVIEW.md exists and verdict is REQUEST_CHANGES, block commit and report

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.