agentleFS
h3y6eh3y6e/agent-skills/skills/git-shipping/SKILL.md

git-shipping

Skill0 starsChanged 3 months agoMITView on GitHub

Guides the git workflow for shipping code changes — branch, commit, push, PR. Use whenever asked to `commit`, `push`, `pr`/`ship`/`open a PR`/`merge this`, or manage branches, and whenever about to make code changes in a git repo, to confirm the branch is right before implementation starts — even if the user only described the change and never said the word "git".

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat short git requests as workflow shorthand.

    line 17
  2. Distinctive:

    Ask only when the intended change scope is unclear enough that you might include unrelated work.

    line 25
  3. Very specific:

    Check visibility with gh repo view --json visibility -q '.visibility'.

    line 29
  4. Distinctive:

    PUBLIC: Use English for commit messages, PR titles, and PR bodies.

    line 31
  5. Distinctive:

    PRIVATE / INTERNAL: Use the language the user is currently using.

    line 32
  6. Very specific:

    Start new feature work in a clean worktree from the remote default branch, not in the default-branch checkout.

    line 36
  7. Very specific:

    Before creating it, check git wt -h, then use git wt <branch> origin/<default-branch> --nocd.

    line 37
  8. Distinctive:

    Never call raw git worktree.

    line 38
  9. Distinctive:

    Do not move already-started work into a new worktree just to satisfy this workflow.

    line 42
  10. Very specific:

    REQUIRED SUB-SKILL: Use cxg skill for commit message format.

    line 46
  11. Distinctive:

    Prefer a repository PR template when one applies.

    line 51
  12. Very specific:

    Use ## Impact only for merge behavior changes.

    line 53
  13. Very specific:

    Do not add ad hoc Testing, Verification, Checklist, Related issues, or Screenshots.

    line 54
  14. Very specific:

    Write the body to a mktemp file under $TMPDIR, never a fixed path — gh pr create/gh pr edit can reuse stale content, and plain mktemp can …

    line 55
  15. Very specific:

    After pushing to a branch with an open PR, reread the title and body against the new diff and edit whatever no longer matches (gh pr edit).

    line 57

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

Git Shipping

Code changes flow through: branch → commit → push → PR.

Intent Expansion

Treat short git requests as workflow shorthand.

User saysWhat it means
commitInspect, stage coherent chunks, commit
pushInspect, create commits if needed, push
prInspect, move off default branch if needed, commit, push, open PR

Ask only when the intended change scope is unclear enough that you might include unrelated work.

Language Rule

Check visibility with gh repo view --json visibility -q '.visibility'.

  • PUBLIC: Use English for commit messages, PR titles, and PR bodies.
  • PRIVATE / INTERNAL: Use the language the user is currently using.

Branch

Start new feature work in a clean worktree from the remote default branch, not in the default-branch checkout. Before creating it, check git wt -h, then use git wt <branch> origin/<default-branch> --nocd. Never call raw git worktree.

New worktrees start clean; transfer in-progress changes only on request.

Do not move already-started work into a new worktree just to satisfy this workflow. If files are already being edited in the current checkout, keep working there and create or switch to the appropriate branch in place when safe.

Commit

REQUIRED SUB-SKILL: Use cxg skill for commit message format. Pipe the message through cxg lint before committing.

Pull Request

  • PR titles use Conventional Commit subject format: type(scope): subject.
  • Prefer a repository PR template when one applies.
  • Without a template, use only: ## Summary, ## Background, ## Changes, optional ## Impact.
  • Use ## Impact only for merge behavior changes. Omit unchanged behavior, non-goals, and work not done.
  • Do not add ad hoc Testing, Verification, Checklist, Related issues, or Screenshots. Never dump local verification commands into the PR body.
  • Write the body to a mktemp file under $TMPDIR, never a fixed path — gh pr create/gh pr edit can reuse stale content, and plain mktemp can fail in a sandboxed shell.
  • New PRs default to draft (gh pr create --draft); preserve existing PR draft/ready state unless asked.
  • After pushing to a branch with an open PR, reread the title and body against the new diff and edit whatever no longer matches (gh pr edit).

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.