pre-push

pre-push is a skill for Claude Code from AcKeskin/contexture. It costs 94 tokens per session (2,175 once invoked), scanned A, original, MIT.

A pre-flight checklist that runs before pushing Git commits to a remote repository and checks the branch, commits, staged files, secrets, and other shipping risks.

In plain words
What is it for?
Use it to inspect commit hygiene, leftover files, debug artifacts, hook bypasses, AI attribution, branch naming, and possible secrets before pushing.
Why use it?
It catches common problems before code is sent to the shared repository and stops the push when something needs attention.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Good fit Use it to inspect commit hygiene, leftover files, debug artifacts, hook bypasses, AI attribution, branch naming, and possible secrets before pushing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ackeskin/contexture/pre-push
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 AcKeskin/contexture --skill pre-push
Clone the repo
git clone --depth 1 https://github.com/AcKeskin/contexture

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 pre-push

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ackeskin/contexture/pre-push"><img src="https://agentmods.dev/badge/skills/ackeskin/contexture/pre-push.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,175 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.00094 $0.02175
Opus 5 $0.00047 $0.01087
Sonnet 5 $0.00019 $0.00435
Haiku 4.5 $0.00009 $0.00217

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

Security

Grade A, and why

pre-push 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 5d 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.

skills/pre-push/SKILL.md · 99 lines

How it starts

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

pre-push

Reviewee-side pre-flight before a git push. The first of the GitHub reviewee triad; siblings are pr-author and pr-triage. The reviewer-side counterpart is pr-review.

Whatever the local branch is, that's what ships to the remote. Most pre-push issues are catchable in seconds; none are caught when the push is improvised inline. This skill runs the checklist once, surfaces flags, and stops on a flag — it does not push past a problem on its own.

Triad-wide boundary — no Claude-initiated GitHub writes. Across all three skills, Claude never runs a gh command (or any API call) that writes to GitHub — no gh pr create, no gh pr comment, no thread reply, no gh api POST. Those are drafted and handed to the user to run. Claude does apply local changes (working-tree code edits, staging) and runs read-only gh calls (gh pr view, gh api GET). git push is the one remote-touching action Claude runs — and only the exact push the user asked for, only after the checklist passes — because it ships the user's own commits via git, not via GitHub's API on the user's behalf. The rule: Claude prepares; the user is the one who speaks to GitHub.

Auto-fires via this description, not a hook (per skill-auto-fire (architectural rule)). The right moment is "about to push" — a concept that only exists once a push is imminent, so a SessionStart hook would fire against nothing.

When to run

Auto-fire when:

  • About to run a Bash command matching git push (any form — git push, git push -u origin <b>, git push origin HEAD, etc.).
  • The user says "push this", "push the branch", "send it up", or equivalent.

Skip when:

  • The push target is the user's configured scratch branch (see Configuration). Scratch pushes are intentionally low-ceremony.
  • The user explicitly says "skip pre-push", "force push, I know", or similar. Back off; run the push the user asked for.
  • This is a re-push in the same session and nothing has changed since the last passing run (don't re-run the full checklist on every push of an unchanged branch — say so and proceed).

Read the full file on GitHub · 99 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. 5d ago First seen · 99 lines · 94 tokens per session scan A 22ec6574761e

Subscribe to this mod's changes

pre-push is a skill published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 1mo ago), licensed MIT. It adds 94 tokens to every session and 2,175 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

core-workflow

Detailed development workflow patterns, checklists, and standards. Auto-loads for complex tasks, planning, debugging, testing, or when explicit patterns are needed. Contains session protocols, git conventions, security checklists, testing strategy, and communication standards.

travisjneuman/.claude · 53 tokens

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

commit-context

Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", "who wrote this", or wants context on a specific location in the codebase.

rohitg00/agentmemory · 61 tokens

commit-history

List recent git commits linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", "list linked commits", or wants commits with their session context.

rohitg00/agentmemory · 49 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

git-commit

Analyze changes with Git only and auto-generate conventional commit messages with optional emoji; suggests splitting commits when needed, runs local Git hooks by default (use --no-verify to skip).

UfoMiao/zcf · 41 tokens