totem: Skill for Claude Code

.claude/skills/prepush/SKILL.md

prepush is a skill for Claude Code from mmnto-ai/totem. It costs 19 tokens per session (707 once invoked), scanned A, original, Apache-2.0.

A pre-push checklist that runs code formatting, deterministic lint checks, and an additional AI review of the changes before sending them to a remote Git repository.

In plain words
What is it for?
Use it before pushing to format the project, run its lint checks, review the diff, fix failures, and then push the branch.
Why use it?
It catches formatting, rule violations, and serious review findings before code is pushed.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to mmnto-ai/totem. 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/mmnto-ai/totem/main/.claude/skills/prepush/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mmnto-ai/totem

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 prepush

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mmnto-ai/totem/prepush"><img src="https://agentmods.dev/badge/skills/mmnto-ai/totem/prepush.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 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.00019 $0.00707
Opus 5.5 $0.00008 $0.00283
Sonnet 5.5 $0.00004 $0.00141
Haiku 4.5 $0.00002 $0.00071

Measured yesterday against content hash 9052d58e4866, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prepush 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 yesterday.

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/prepush/SKILL.md · 17 lines

What it actually says

Before pushing code:

  1. Run pnpm run format — fix any formatting issues
  2. Run pnpm exec totem lint — the deterministic enforcement floor (zero LLM). Fix any violations before proceeding; the pre-push hook enforces this in every tier.
  3. Run pnpm exec totem review — supplementary AI lanes over the diff (advisory sensors, not a merge gate). Address critical findings; known limits are disclosed in the run output (LLM window truncation on large diffs; non-code files skipped). Note: in strict/agent hook tiers the pre-push hook also runs this command as a push gate — the advisory framing is about what counts as the review of record, not about whether the hook runs it.
  4. Before any external review bot is invited (the operator triggers them; you never do), drive the local lane to settled over the branch-vs-base diff with /review-loop, running totem review --branch (the scope the hook grades; plain totem review reads the working tree whenever it is dirty): WARN and CRITICAL are actionable, INFO is cosmetic, settled is read from the CLI, never derived, and a disputed finding or the max-rounds advisory stops the loop and is reported, as /review-loop says (it also configures review.lanes first; with no lanes there is nothing to settle). When the run names a truncation (the -char review window line, the file listed as "shown in part" and the files listed as "not shown"), the covariate line describes only the delivered slice, whatever settled= says: review the partly shown file and the unseen files over their commit ranges with totem review --diff <range> (a range takes no pathspec, so a slice re-includes every file its commits touch and reads deltas, not the end state), stop and disclose when a single commit or file is itself larger than the window, and quote in the round disposition the whole-branch local-lane: line PLUS the slice runs and what they left unread, never calling the branch diff reviewed while a tail is unread; a lane that ABSTAINS on a truncated diff is a degraded round, never settled. The slicing this step asks you to do by hand is mmnto-ai/totem#3118, which makes the CLI do it. On mmnto-ai/totem#3114 seven of the nine covariate lines quoted through round 7 read settled=false, and four of the seven findings of rounds 5 to 7 sat in files the window had cut.
  5. Before a PR's first push, read the changeset's and the body's guarantees against an inventory of what the code still reads from the checkout (the rule manifest, the config, installed packs, anything not read through the diff's revision), and give every disclosed limit its issue when you file it — a limit that points nowhere is a review round waiting to happen (mmnto-ai/totem#3116 was that round).

After all checks pass, proceed with git push. The review command stamps .reviewed-content-hash automatically on PASS.

If any step fails, fix the issue and re-run from step 1.

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. yesterday Changed · +2 lines 9052d58e4866
  2. 1mo ago First seen · 15 lines · 19 tokens per session scan A 14181eeda8e9

Subscribe to this mod's changes

prepush is a skill published in the GitHub repository mmnto-ai/totem (18 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 707 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-08-30.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 123 tokens

gh-find-prs

Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.

Hmbown/CodeWhale · 27 tokens

hunk-launch-video

Produces Hunk videos by driving the real TUI headlessly in a PTY, compositing captioned 1080p frames in Chromium, and encoding with ffmpeg. Use for feature demos, workflow explainers, announcements, launch videos, and full-release roundups.

modem-dev/hunk · 60 tokens

hunk-release

Prepares, publishes, verifies, and curates Hunk releases. Use for release metadata, benchmarks, tags, publishing, release videos, backports, or recovery.

modem-dev/hunk · 38 tokens

git

Git and code hosting platform management — GitHub, GitLab, Codeberg, Forgejo. Zero barrier — install x-cmd and manage repos from the terminal. Use for "git", "github", "gitlab", "repo", "pull request", "code hosting".

x-cmd/x-cmd · 58 tokens

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens