agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/commit-push/SKILL.md

commit-push

Skill2 starsChanged 33 days agoApache-2.0View on GitHub

Stages changes, writes a conventional-commit message, commits, and pushes , without opening a PR. USE WHEN user says 'commit it', 'commit these changes', 'push this', 'commit and push', or wants a single atomic save without a PR. Generates feat:/fix:/refactor: message, commits specific paths, pushes. NOT FOR the full ship flow (use /wrap-up).

  • Commits and pushes

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-pr, domain-modeling and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Google CloudSkill

    open-pr

    Commits local changes to a new Git branch and opens a GitHub pull request through the configured GitHub MCP server. Use when proposing code changes in a new pull request. Don't use for local-only commits without a remote GitHub repository.

    Also in 3 projects that use this

  • GoogleSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

    Also in 3 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 3 projects that use this

  • GoogleSkill

    grilling

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    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 conflicts arise, resolve them , prefer the intent of this branch's changes while incorporating upstream updates.

    line 21
  2. Distinctive:

    Run all linters , these are enforced in CI/CD.

    line 25
  3. Distinctive:

    If any test fails, investigate and fix , do not skip or disable.

    line 49
  4. Very specific:

    Use conventional commit prefixes: feat:, fix:, refactor:, chore:, docs:, test:.

    line 67
  5. Distinctive:

    Commit with HEREDOC for proper formatting:

    line 78
  6. Distinctive:

    If multiple logical changes, split into multiple commits.

    line 89
  7. Very specific:

    If the branch hasn't been pushed before, this sets up tracking.

    line 97

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

Prepare, validate, and push a clean commit (or sequence of commits) for the current branch. Does NOT open a PR , use /ship or /wrap-up for that.

Follows Google Eng Practices CL conventions: imperative first line, body explains what+why, self-contained changes, no Linear issue refs.

Steps

Phase 1 , Rebase onto Main

git fetch origin main
git rebase origin/main

If merge conflicts arise, resolve them , prefer the intent of this branch's changes while incorporating upstream updates. After rebasing, confirm the codebase compiles and is in a clean state.

Phase 2 , Static Analysis & Linting

Run all linters , these are enforced in CI/CD. Zero warnings, zero errors:

# Proto (if proto/ changed)
 && 

# Go
mise run lint

# Frontend (if web/ changed)
# (no frontend currently)
cd web && pnpm tsc --noEmit

Fix any issues found before proceeding.

Phase 3 , Run Tests

mise run test     # Go, with race detector
# Frontend (if web/ changed)
# (no frontend currently)

If any test fails, investigate and fix , do not skip or disable.

Phase 4 , Git Hooks Validation

Pre-commit and pre-push hooks must pass. Never use --no-verify. If a hook fails, fix the underlying issue and retry.

Phase 5 , Clean Commit History

Inspect what's staged:

git status --short
git diff --stat

Per Google CL descriptions guide:

  • Each commit is one self-contained, logical change.
  • Use conventional commit prefixes: feat:, fix:, refactor:, chore:, docs:, test:.
  • First line: imperative, concise, stands alone as a summary (e.g., feat: add cursor-based pagination to entity listing).
  • Body (after blank line): explain what changed and why , enough context that a future reader understands without external links.
  • Do not mention Linear issue identifiers in any commit message.

Stage specific files (avoid git add -A / git add .):

git add path/to/specific/files...

Commit with HEREDOC for proper formatting:

git commit -m "$(cat <<'EOF'
feat: <imperative summary>

<body explaining what + why>
EOF
)"

If multiple logical changes, split into multiple commits.

Phase 6 , Push

git push -u origin "$(git branch --show-current)"

If the branch hasn't been pushed before, this sets up tracking. Never force-push without invoking .claude/scripts/guard-destructive.sh force-push "<recent user message>" first.

Phase 7 , Report

Print:

  • Number of commits created
  • Their subjects
  • Branch + remote tracking
  • Pre-commit / pre-push hook results

Never --no-verify. Never force-push without explicit confirmation. No Linear refs in commits.

Gotchas

  • (empty)

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.