hitl-mcp: Skill for Claude Code

.agents/skills/git-squash/SKILL.md

git-squash is a skill for Claude Code from ZenlixAI/hitl-mcp. It costs 85 tokens per session (1,816 once invoked), scanned A, original, MIT.

A Git workflow that combines all commits on the current branch into one commit relative to a base branch such as main. It can detect the default branch and accept an optional base branch or commit subject.

In plain words
What is it for?
Use it to flatten a pull-request branch into one clean commit, choose the comparison branch, and optionally set the commit subject.
Why use it?
It removes a cluttered sequence of small or intermediate commits before a pull request is reviewed. It also checks that the branch and working tree are safe to rewrite.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is ZenlixAI/hitl-mcp's own configuration. It tells Claude Code how to work on hitl-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hitl-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ZenlixAI/hitl-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZenlixAI/hitl-mcp/main/.agents/skills/git-squash/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZenlixAI/hitl-mcp

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 git-squash

README.md
[![agentmods](https://agentmods.dev/badge/skills/zenlixai/hitl-mcp/git-squash/github.svg)](https://agentmods.dev/skills/zenlixai/hitl-mcp/git-squash)
Your own site
<a href="https://agentmods.dev/skills/zenlixai/hitl-mcp/git-squash"><img src="https://agentmods.dev/badge/skills/zenlixai/hitl-mcp/git-squash/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 git-squash

Your own site · 80×15
<a href="https://agentmods.dev/skills/zenlixai/hitl-mcp/git-squash"><img src="https://agentmods.dev/badge/skills/zenlixai/hitl-mcp/git-squash.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,816 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.00085 $0.01816
Opus 5 $0.00043 $0.00908
Sonnet 5 $0.00017 $0.00363
Haiku 4.5 $0.00009 $0.00182

Measured 8d ago against content hash 7057a3d2b59d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

git-squash 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 8d ago.

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.

.agents/skills/git-squash/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Squash

Squash the current PR branch into one commit based on net branch changes relative to the default branch. Do not create or invoke a helper script. Run the Git commands directly.

Arguments

Parse $ARGUMENTS for optional flags:

  • --subject <line>: Override the generated commit subject line
  • --base <branch>: Override default-branch auto-detection

Defaults:

  • Subject: infer a conventional-commit subject from the squashed changes themselves; do not default to chore
  • Base detection order:
    1. refs/remotes/origin/HEAD
    2. git remote show origin
    3. main, master, trunk

Workflow

1) Pre-flight

Start by confirming that history can be rewritten safely. Stop on the first failure.

  • Verify inside a Git worktree: git rev-parse --is-inside-work-tree
  • Verify not detached: git symbolic-ref --quiet --short HEAD
  • Verify working tree is clean: git status --porcelain
  • After base detection, stop if the current branch is the default branch
git rev-parse --is-inside-work-tree
git symbolic-ref --quiet --short HEAD
git status --porcelain

2) Resolve the Base Branch

If --base was provided, use that branch name directly. Otherwise, detect the default branch in this order:

  1. refs/remotes/origin/HEAD
  2. git remote show origin
  3. main, master, trunk

After the branch name is resolved, normalize it to a usable ref by preferring the local branch and falling back to origin/<branch>. Stop if neither exists. Also stop if the current branch is the default branch, because the skill should never squash the default branch into itself.

git symbolic-ref --quiet --short refs/remotes/origin/HEAD
git remote show origin
git show-ref --verify --quiet "refs/heads/$default_branch"
git show-ref --verify --quiet "refs/remotes/origin/$default_branch"

3) Find the Squash Boundary

Compute the merge-base between HEAD and the resolved default ref. That merge-base is the point where the branch diverged. Count how many commits are ahead of it. If the count is zero, there is nothing to squash.

Read the full file on GitHub · 184 lines

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. 8d ago First seen · 184 lines · 85 tokens per session scan A 7057a3d2b59d

Subscribe to this mod's changes

git-squash is a skill published in the GitHub repository ZenlixAI/hitl-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 85 tokens to every session and 1,816 once invoked, about $0.0004 per session on Opus 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-08-31.