agentleFS
autsachiautsachi/codex-skills/skills/git-deliver-work/SKILL.md

git-deliver-work

Skill0 starsChanged 3 months agoMITView on GitHub

Safely verify, stage, commit, and optionally push current Git work. Use when the user explicitly asks to commit, push, commit and push, save the current changes, or publish the current branch without creating a pull request. Do not use for message-only requests, release workflows, history rewriting, force pushes, or pull request creation.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 16 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Treat commit as commit-only.

    line 12
  2. Distinctive:

    Treat push as push-only.

    line 13
  3. Distinctive:

    Treat commit and push as both operations in that order.

    line 14
  4. Distinctive:

    Do not push, open a pull request, create a tag, or change branches unless the user explicitly requested that action.

    line 15
  5. Distinctive:

    Read applicable repository instructions such as AGENTS.md.

    line 20
  6. Distinctive:

    Read the relevant diff before deciding scope or writing a commit message.

    line 22
  7. Distinctive:

    If the intended commit contains unrelated intents, propose separate commits instead of combining them silently.

    line 24
  8. Distinctive:

    Run the repository formatter in write mode on every changed formatter-managed file when repository instructions require it.

    line 29
  9. Distinctive:

    Run the smallest meaningful checks for the change, reusing checks already completed in the current task when they remain valid.

    line 30
  10. Very specific:

    Run git diff --check.

    line 31
  11. Distinctive:

    Write a concise Conventional Commit message.

    line 34
  12. Distinctive:

    Commit non-interactively and report the resulting hash.

    line 35
  13. Distinctive:

    Do not claim skipped checks passed.

    line 37
  14. Distinctive:

    Never force-push, rewrite history, move tags, or delete remote refs.

    line 45
  15. Distinctive:

    Verify the local branch tracking state after a successful push.

    line 46
  16. Distinctive:

    Do not create or monitor a pull request or CI run unless the user asks.

    line 48
  17. Distinctive:

    commit hash and message, when committed.

    line 54

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

Finish the exact Git operation the user requested while preserving unrelated work and repository conventions.

Select the mode

  • Treat commit as commit-only.
  • Treat push as push-only.
  • Treat commit and push as both operations in that order.
  • Do not push, open a pull request, create a tag, or change branches unless the user explicitly requested that action.
  • Route production release requests to a repository release workflow when one exists.

Inspect before mutating

  1. Read applicable repository instructions such as AGENTS.md.
  2. Inspect the current branch, upstream, staged changes, unstaged changes, and untracked files.
  3. Read the relevant diff before deciding scope or writing a commit message.
  4. Preserve unrelated user changes. Never default to git add -A in a mixed worktree.
  5. If the intended commit contains unrelated intents, propose separate commits instead of combining them silently.

Commit workflow

  1. Identify the files that belong to the requested change.
  2. Run the repository formatter in write mode on every changed formatter-managed file when repository instructions require it.
  3. Run the smallest meaningful checks for the change, reusing checks already completed in the current task when they remain valid.
  4. Run git diff --check.
  5. Stage only explicit in-scope paths.
  6. Re-read the staged diff and confirm no unrelated files entered the commit.
  7. Write a concise Conventional Commit message. Use Thai for the subject and body by default, while keeping type(scope): and technical terms in English, unless the user or repository requires another convention.
  8. Commit non-interactively and report the resulting hash.

Do not claim skipped checks passed. If a required check fails, stop before committing unless the user explicitly accepts the failure.

Push workflow

  1. Confirm the current branch and remote target.
  2. Distinguish committed commits from dirty local files; explain that uncommitted changes are not included in a push.
  3. Inspect ahead, behind, and divergence state. Fetch only when remote state must be refreshed.
  4. Push the current branch to its configured upstream. Add upstream tracking only when it is missing and the target is unambiguous.
  5. Never force-push, rewrite history, move tags, or delete remote refs.
  6. Verify the local branch tracking state after a successful push.

Do not create or monitor a pull request or CI run unless the user asks.

Handoff

Report only what actually happened:

  • commit hash and message, when committed;
  • pushed branch and remote, when pushed;
  • checks that ran;
  • remaining dirty files or divergence;
  • any action intentionally omitted because it was not requested.

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.