pre-push

pre-push is a skill for Claude Code, Codex from AlexZio00/sovereign-skills. It costs 166 tokens per session (17,509 once invoked), scanned A, original, MIT.

A pre-push security and quality check that runs before changes are sent to a remote Git repository. The available description does not provide enough detail about the checks it performs.

In plain words
What is it for?
Use it before pushing code to a shared repository; consult its full documentation for the exact checks and blocking rules.
Why use it?
It is intended to catch problems before code leaves the local repository, but the specific protections are not described here.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

Part of the pre-push plugin — 1 skill shipped together

Good fit Use it before pushing code to a shared repository; consult its full documentation for the exact checks and blocking rules.

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

Made for: Claude Code, Codex.

Or install pre-push, the plugin that ships this one along with the rest of its 1 skill.

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/alexzio00/sovereign-skills/pre-push/github.svg)](https://agentmods.dev/skills/alexzio00/sovereign-skills/pre-push)
Your own site
<a href="https://agentmods.dev/skills/alexzio00/sovereign-skills/pre-push"><img src="https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/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/alexzio00/sovereign-skills/pre-push"><img src="https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/pre-push.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00166 $0.17509
Opus 5.5 $0.00066 $0.07004
Sonnet 5.5 $0.00033 $0.03502
Haiku 4.5 $0.00017 $0.01751

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

Security

Grade A, and why

pre-push scanned grade A with 2 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 6d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/ruff_changed_lines.py, scripts/scan_secrets.py, scripts/test_push_files.py, …), 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

5. **Deterministic claim verification** (optional, environment-specific): save the joint-pass output (finding list with file/line-range citations — e.g. `【F:path†Lstart-Lend】`-style anchors) to a file, then run a claim-v

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| Dangerous patterns | diff contains `child_process`, `exec(`, `spawn(`, `eval(`, `new Function(`, `dangerouslySetInnerHTML` |
pre-push/SKILL.md · 829 lines

How it starts

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

Pre-Push Pipeline

Dominant Variable

Does the secrets scanner run without exception — a single skip permanently records credentials in git history.

Trigger

  • Any git push request, including the push-intent phrases listed in the description.

Discard If

  • User explicitly says "skip review" → proceed directly to Emergency Override (a request to force-push is never a trigger: this skill never force-pushes)
  • 0 staged files AND 0 outgoing (already-committed, not-yet-pushed) commits — check both before discarding: git rev-list --count '@{upstream}'..HEAD 2>/dev/null || git rev-list --count origin/HEAD..HEAD 2>/dev/null. If outgoing has 1+ commits, this is NOT a discard case — proceed to Step 1 so the outgoing commits get scanned too (a secret committed earlier this session, with staging now empty, used to slip past a staged-files-only check entirely).
  • *.md / docs/** changes only (fast-exit at Step 2, but agent review overhead unnecessary at this condition). This skips the agent-review overhead only — Step 1/2 scanning (and Step 3.5 when a public-mirror scrub is configured) still runs; the Step 2 fast-exit fires only after SECRETS_EXIT=0 is already known, not before scanning.

Key Assumptions

  1. A bundled scanner is accessible (scan_secrets.py with Python 3.9+, or scan_secrets.pl with Perl) — if broken: secrets scan unavailable → push blocked.
  2. git staged files exist — if broken: inform user and halt.
  3. Review agents dispatchable — the agents named in Step 6 (code-reviewer, security-reviewer, database-reviewer, refactor-cleaner, build-error-resolver) are optional and not included in this repo (/setup can generate code-reviewer, security-reviewer, database-reviewer and build-error-resolver agents). If an agent is not installed or cannot be dispatched, replace code-reviewer with an inline review using code-autopsy's FAST MODE (shipped in this repo; see Error Recovery below) rather than skipping it outright. Conditional agents (security/database/refactor) are skipped with an explicit SKIPPED note in the report.

Read the full file on GitHub · 829 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. 6d ago Changed · +31 lines · -1 tokens per session scan C → A c36ecf7de1e5
  2. 18d ago Changed · +11 lines 97a03c407928
  3. 1mo ago Changed · +149 lines f310f35a2094
  4. 1mo ago Changed · +98 lines · +23 tokens per session afc208c8c011
  5. 1mo ago First seen · 540 lines · 144 tokens per session scan C 82078579ffb2

Subscribe to this mod's changes

pre-push is a skill published in the GitHub repository AlexZio00/sovereign-skills (149 stars, last pushed 6d ago), licensed MIT. It adds 166 tokens to every session and 17,509 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 2 findings (reads agent configuration directories, runs shell commands). 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

gentle-ai-collab-perfect

Trigger: contributing to Gentleman-Programming/gentle-ai as an external collaborator. Strict issue-first workflow, honest PR bodies, contributor-vs-maintainer scope, chained-PR strategy, verification protocol, docstring coverage. Load whenever the active repo is Gentleman-Programming/gentle-ai and any part of the…

Gentleman-Programming/gentle-ai · 106 tokens

branch-pr

Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.

Gentleman-Programming/gentle-ai · 26 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

chained-pr

Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.

Gentleman-Programming/gentle-ai · 32 tokens

pre-publish-review

Nuclear-grade 12-agent pre-publish release gate. Runs /get-unpublished-changes to detect all changes since last npm release, spawns up to 10 ultrabrain agents for deep per-change analysis, invokes /review-work (orchestrator manual QA plus one gate reviewer) for holistic review, and 1 oracle for overall release…

code-yeongyu/oh-my-openagent · 161 tokens

work-with-pr

Full PR lifecycle in a fresh task-owned git worktree: implement via the ulw-loop skill with mandatory evidence-bound manual QA → reviewer-readable English PR → verification loop (CI + Cubic, where Cubic is skipped only when its quota is exhausted) → merge by default → worktree cleanup. Decomposes one task into the…

code-yeongyu/oh-my-openagent · 211 tokens