empty-commit

empty-commit is a skill for Claude Code from MithunWijayasiri/dotclaude. It costs 35 tokens per session (547 once invoked), scanned A, original, MIT.

A Git helper that creates and pushes a commit with no file changes, causing some continuous integration (CI) checks to run again on the current branch.

In plain words
What is it for?
Use it when a pull request is blocked by a push- or pull-request-triggered CI failure. It checks that the branch and repository are safe to use, then reports the result.
Why use it?
It removes the need to change code just to retry a failed CI check caused by an unrelated problem. It leaves staged, unstaged, and untracked files untouched.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it when a pull request is blocked by a push- or pull-request-triggered CI failure. It checks that the branch and repository are safe to use, then reports the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mithunwijayasiri/dotclaude/empty-commit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MithunWijayasiri/dotclaude --skill empty-commit
Clone the repo
git clone --depth 1 https://github.com/MithunWijayasiri/dotclaude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for empty-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mithunwijayasiri/dotclaude/empty-commit/github.svg)](https://agentmods.dev/skills/mithunwijayasiri/dotclaude/empty-commit)
Your own site
<a href="https://agentmods.dev/skills/mithunwijayasiri/dotclaude/empty-commit"><img src="https://agentmods.dev/badge/skills/mithunwijayasiri/dotclaude/empty-commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for empty-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mithunwijayasiri/dotclaude/empty-commit"><img src="https://agentmods.dev/badge/skills/mithunwijayasiri/dotclaude/empty-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00547
Opus 5.5 $0.00014 $0.00219
Sonnet 5.5 $0.00007 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured 9d ago against content hash f472dd6d3279, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

empty-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/empty-commit.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/empty-commit/SKILL.md · 40 lines

What it actually says

Empty Commit

Empty commit + push → CI re-runs on the current branch. Zero file changes, so nothing can regress.

Any step fails → stop, report what failed; do not work around.

  1. Nothing staged: git diff --cached --quiet. Non-zero → --allow-empty would commit the staged files; list them (git diff --cached --name-only), stop.

  2. Branch: git rev-parse --abbrev-ref HEAD. HEAD (detached), main, or master → stop; empty commit on a shared branch is noise.

  3. Upstream: git rev-parse --abbrev-ref --symbolic-full-name @{u}. Fails → no upstream set; stop, ask user which case: never pushed → git push -u origin <branch> alone triggers CI; already pushed without -u → git branch -u <remote>/<branch>, re-run (re-pushing the same commit triggers nothing).

  4. Commit, subject only, no trailer of any kind:

    git commit --allow-empty -m "chore: trigger pipeline re-run"
    
  5. git push. Fails → commit exists locally, not pushed; say so.

  6. Report one line: short SHA, branch, PR link if push output printed one.

Unstaged and untracked files are ignored, they stay untouched.

Caveat — which pipelines this actually re-runs

Only pipelines triggered by a push to the branch or its PR. Config varies by provider:

Provider Re-runs Does not re-run
GitHub Actions on: push, on: pull_request on: workflow_dispatch only
GitLab CI jobs matching rules: / workflow:rules for the branch or MR when: manual jobs
Bitbucket Pipelines pull-requests, branches custom

Manually-triggered pipelines never fire from a commit. If the red check is one of those, an empty commit does nothing — say so and point the user at re-running it by hand, with any variables it prompts for.

Unsure which kind → check the CI config in the repo (.github/workflows/, .gitlab-ci.yml, bitbucket-pipelines.yml).

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +4 lines f472dd6d3279
  2. 11d ago First seen · 36 lines · 35 tokens per session scan A 578746606ffe

Subscribe to this mod's changes

empty-commit is a skill published in the GitHub repository MithunWijayasiri/dotclaude (4 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 547 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.

Related

Other skills, from other repositories

pr-squash-message

Generate one short Conventional Commits squash message describing only the net diff between the PR's base and head, set its header as the PR title, validate it with the repository's commitlint and both copy its description to the clipboard and display it, when asked for a squash message. Works in any Scenario…

scenario-labs/skills · 73 tokens

git-workflow

Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts, handle monorepo tags, squash-and-merge patterns. Use when asked to prepare a PR, clean branches, resolve conflicts, or tag a release.

jezweb/claude-skills · 52 tokens

branch-and-worktree-workflow

Isolates feature work in its own branch or worktree and integrates it cleanly when done. Use this when starting work that should not disturb the current workspace, when several efforts must proceed in parallel on one repository, or when implementation is finished and the change needs merging, rebasing, or splitting…

cbrock84/headcount · 70 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

ship

Commit, push, and optionally create or update a PR for the current staged changes. Use when the user asks to "ship", "ship it", "ship changes", "commit push and PR", or "ship this".

tobihagemann/turbo · 47 tokens

private-secret-scanning

Local Gitleaks scans for staged changes, push ranges, and full history in private repos, with redacted reports. Use to block committed secrets without GitHub Secret Protection.

jamditis/claude-skills-journalism · 40 tokens