zeroclaw: Skill for Claude Code

.claude/skills/squash-merge/SKILL.md

squash-merge is a skill for Claude Code from zeroclaw-labs/zeroclaw. It costs 0 tokens per session (6,498 once invoked), scanned A, original, Apache-2.0.

A skill for squash-merging a GitHub pull request into ZeroClaw's master branch. Squash-merging combines the PR's commits into one commit while preserving their details in the final commit message.

In plain words
What is it for?
Merging a specified PR, landing approved changes, and preserving the original commit history in the squash-merge message.
Why use it?
It provides a defined path from an approved, passing PR to the main branch. This avoids losing commit context and distinguishes merging from other contributor or review tasks.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is zeroclaw-labs/zeroclaw's own configuration. It tells Claude Code how to work on zeroclaw 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 zeroclaw configures →

About the project

ZeroClaw is a Rust-based runtime for running a personal AI assistant on a user's own machine, with connections to language-model providers, communication channels, and external tools. It is for people who want to operate an assistant across channels such as Discord, Telegram, email, voice, webhooks, or a command line while keeping control of its data and credentials. The catalogue add-ons provide workflows and agents for using ZeroClaw.

zeroclaw-labs/zeroclaw · 33,061 stars · on GitHub · zeroclaw.com

Reuse

Borrowing it

Nothing to install: this file belongs to zeroclaw-labs/zeroclaw. 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/zeroclaw-labs/zeroclaw/master/.claude/skills/squash-merge/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zeroclaw-labs/zeroclaw

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zeroclaw-labs/zeroclaw/squash-merge"><img src="https://agentmods.dev/badge/skills/zeroclaw-labs/zeroclaw/squash-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,498 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. Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.06498
Opus 5.5 $0.00000 $0.02599
Sonnet 5.5 $0.00000 $0.01300
Haiku 4.5 $0.00000 $0.00650

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

Security

Grade A, and why

squash-merge 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 1mo 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.

.claude/skills/squash-merge/SKILL.md · 432 lines

How it starts

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

Skill: squash-merge

Squash-merge a PR into zeroclaw-labs/zeroclaw master with fully preserved commit history in the squash message body. Use this skill when the user explicitly mentions squash-merging, merging a specific PR number, landing a PR, or 合入 — e.g. "squash-merge #123", "merge PR 456", "land #789", "合入 #123", "/squash-merge 123". Do not trigger on vague phrases like "ship it" or "merge it" without a PR number or clear upstream-merge context.

Step Skill When
Pick / triage issues github-issue-triage Backlog sweep, label issues, close duplicates
File a bug / feature github-issue No existing issue for the work
Open / update PR github-pr Branch is ready; needs template body and validation evidence
Review before merge github-pr-review-session Maintainer reviewing someone else's PR
Land into master this skill PR is approved and CI is green

End-to-End Contributor Workflow (issue → merge)

When the user asks to fix an issue and get it merged, follow this sequence:

  1. Read the issue — gh issue view <N>; confirm it is still open and not already fixed on master.
  2. Branch — git checkout -b fix/<short-description> from up-to-date master.
  3. Implement — minimal diff; reference canonical state (see AGENTS.md no-duplicate-state rule).
  4. Validate — run cargo fmt --all -- --check, cargo clippy --all-targets -- -D warnings, cargo test (or docs gate if docs-only).
  5. Open PR — use the github-pr skill; body must include Closes #<N> when the PR fully resolves the issue.
  6. Wait for CI — before merge, confirm required checks pass (see Pre-merge CI check below).
  7. Squash-merge — use this skill with explicit user confirmation.

Do not skip straight to merge if no PR exists yet.

Why This Exists

GitHub's default squash merge omits the PR number from the commit subject and formats the commit body inconsistently with project conventions. Direct-pushing a squash to master bypasses the PR merge mechanism entirely: the PR shows "Closed" instead of "Merged" (no purple badge, no linked issue auto-close, no merge commit association). This skill produces both: the purple Merged badge and a conventionally formatted squash commit with full commit history in the body.

Read the full file on GitHub · 432 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. 1mo ago Changed · +8 lines d28d61c042fc
  2. 1mo ago Changed · +111 lines 1d6f94a6d0ef
  3. 2mo ago First seen · 313 lines · 0 tokens per session scan A a39864902250

Subscribe to this mod's changes

squash-merge is a skill published in the GitHub repository zeroclaw-labs/zeroclaw (33,061 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 6,498 tokens. 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-30.

Related

Other skills, from other repositories

01-commit

Create atomic conventional commits; safely retry scoped hook fixes; optionally push. Use when the user wants to commit changes, optionally pushing the branch. Not for amending, rebasing, opening a pull request, or tagging a release.

ai-driven-dev/framework · 50 tokens

akigitcommit

Analyze the working tree and commit changes in clean logical groups. Triages a long half-finished tree first (finished vs mid-edit vs abandoned vs accidental) before grouping. Auto-detects CHANGELOG to switch between domain-grouped mode (3–5 commits by object/feature) and type-grouped mode (feat/fix/refactor). Stages…

lacvietanh/akidevrule · 100 tokens

ship-change

Ship an OpenSpec change after openspec-apply completes. When only QA/manual tasks remain, marks them done (tested later), archives + syncs specs, commits, pushes, opens a PR against develop, watches CI, waits for CodeRabbit, auto-applies safe fixes and re-pushes, loops until CI green + no actionable review threads…

BlackBeltTechnology/pi-agent-dashboard · 129 tokens

datalad

Retrieve, version, and publish scientific datasets with DataLad and git-annex, and capture computational provenance with datalad run, rerun, and containers-run. Use when cloning or fetching data from OpenNeuro, DANDI, datasets.datalad.org, or any DataLad dataset; when a file in a dataset reads as a broken symlink or a…

synthetic-sciences/openscience · 146 tokens

commit-all

Use this skill when the user asks to "commit all", "commit everything", or wants all outstanding changes committed. Groups unrelated changes into separate, well-described commits instead of one catch-all commit.

spacedriveapp/spacebot · 42 tokens

github-attribution

Use whenever an agent authors or reads a GitHub issue, pull request, or comment body, or writes an agent-authored commit message. Covers the [[agent: ]] body trailer, Task:/Agent: commit trailer, and how to read cooperative attribution when multiple roles share one GitHub identity.

bartoszarendt/agenticloop · 66 tokens