uv-sbom: Skill for Claude Code

.claude/skills/pre-push/SKILL.md

pre-push is a skill for Claude Code from Taketo-Yoda/uv-sbom. It costs 11 tokens per session (1,068 once invoked), scanned A, original, MIT.

A pre-push validation routine that checks a branch before its commits are sent to a remote Git repository. It uses a Git hook, which is an automatic script triggered by a Git action.

In plain words
What is it for?
Use it before pushing Rust changes to run formatting checks, Clippy warnings, all tests, and branch-name validation; it also documents the one-time setup needed to activate the hook.
Why use it?
It catches formatting, linting, test, and branch-naming problems before code is pushed, using the repository's existing checks.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to Taketo-Yoda/uv-sbom. 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/Taketo-Yoda/uv-sbom/develop/.claude/skills/pre-push/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Taketo-Yoda/uv-sbom

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/taketo-yoda/uv-sbom/pre-push/github.svg)](https://agentmods.dev/skills/taketo-yoda/uv-sbom/pre-push)
Your own site
<a href="https://agentmods.dev/skills/taketo-yoda/uv-sbom/pre-push"><img src="https://agentmods.dev/badge/skills/taketo-yoda/uv-sbom/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/taketo-yoda/uv-sbom/pre-push"><img src="https://agentmods.dev/badge/skills/taketo-yoda/uv-sbom/pre-push.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 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.00011 $0.01068
Opus 5 $0.00005 $0.00534
Sonnet 5 $0.00002 $0.00214
Haiku 4.5 $0.00001 $0.00107

Measured 7d ago against content hash 13cf03e02714, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 7d 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/pre-push/SKILL.md · 162 lines

How it starts

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

/pre-push - Pre-push Validation Skill

Final validation before pushing commits to remote repository.

Purpose

Validate branch conventions and push commits to remote. Quality checks (fmt, clippy, tests) are delegated to the .githooks/pre-push hook, which runs automatically when git push executes.

Hook delegation: cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, and cargo test --all are all run by .githooks/pre-push on every git push. Run make setup once to activate the hook if you haven't already.

Validation Checklist

All of the following MUST pass before pushing:

1. Branch Naming Convention

git branch --show-current

Verify branch name follows convention based on Issue labels (priority order):

Priority Issue Label Branch Prefix Example
1 enhancement feature/ feature/84-agent-skills
2 bug bugfix/ bugfix/42-fix-parsing
3 refactor refactor/ refactor/30-cleanup-code
4 documentation doc/ doc/50-update-readme
5 (no label) feature/ feature/99-misc-task

Additional: hotfix/<issue>-<desc> for critical production fixes

FORBIDDEN branches for direct push:

  • main - Use PR only
  • develop - Use PR only (if applicable)

2. Remote Branch Target

git remote -v
git branch -vv

Verify:

  • Pushing to correct remote (typically origin)
  • Not accidentally pushing to upstream/fork

Steps

Step 1: Check Branch Name

BRANCH=$(git branch --show-current)
echo "Current branch: $BRANCH"

Verify:

  • Matches naming convention
  • Not on main or develop
  • Issue number in branch name (if applicable)

Step 2: Verify Unpushed Commits

git log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null || git log --oneline -5

Review what will be pushed.

Step 3: Final Confirmation

Read the full file on GitHub · 162 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. 7d ago First seen · 162 lines · 11 tokens per session scan A 13cf03e02714

Subscribe to this mod's changes

pre-push is a skill published in the GitHub repository Taketo-Yoda/uv-sbom (6 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 1,068 once invoked, about $0.0001 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-04.