yq-pre-push-checks

yq-pre-push-checks is a skill for Codex from EthanYoQ/Skill-hub. It costs 29 tokens per session (1,679 once invoked), scanned A, original, MIT.

A pre-push verification guide for checking that code changes are ready before they are pushed or declared complete.

In plain words
What is it for?
Use it to inspect outgoing Git changes, discover repository checks, run relevant tests and hooks, and verify the remote or CI state when authorized.
Why use it?
It helps match validation to the risk of the change and avoids relying on stale branches, missing tests, or incomplete checks.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect outgoing Git changes, discover repository checks, run relevant tests and hooks, and verify the remote or CI state when authorized.

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

Made for: Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-pre-push-checks"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-pre-push-checks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,679 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.00029 $0.01679
Opus 5 $0.00015 $0.00839
Sonnet 5 $0.00006 $0.00336
Haiku 4.5 $0.00003 $0.00168

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

Security

Grade A, and why

yq-pre-push-checks 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.

skills/01-agent-engineering/yq-pre-push-checks/SKILL.md · 106 lines

How it starts

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

Pre-Push Checks

Establish relevant evidence once before a push or readiness claim. This skill does not authorize committing, pushing, changing PR state, bypassing hooks, or rewriting history; those actions require the user's request or existing task scope.

The normal order is inspect scope, validate, commit if authorized, push if authorized, then verify the remote and CI. A stack-management tool that rebases and publishes several branches as one indivisible operation is the exception: record the pre-state, run it only when authorized, validate every rewritten layer immediately afterward, and block merge until the evidence passes.

Inspect the outgoing change

  1. Confirm the repository, branch, worktree, and dirty state.
git rev-parse --show-toplevel
git status --short --branch
git branch --show-current
  1. Read applicable repository instructions and discover what hooks, package scripts, task runners, CI jobs, generated artifacts, and test frameworks actually exist.
  2. Verify the live PR base, upstream, or stack parent from current remote state. Fetch the exact ref when needed; do not guess main, master, or an old local tracking ref.
  3. Inspect the complete outgoing scope: committed changes from the resolved merge base plus staged, unstaged, and relevant untracked files. Use the repository's change-scope tool when it has one; otherwise combine git merge-base, git diff --name-status, git diff --cached, and git ls-files --others --exclude-standard.

After a base merge or rebase, recompute the scope. Reuse only evidence whose covered behavior and inputs were not invalidated.

Map risk to evidence

Every behavior change needs the narrowest available check that would fail for its regression. Add broader checks only for surfaces the diff can credibly affect.

  • Local implementation: run the owning unit or integration tests and the repository's type, compile, lint, or static checks that cover the changed language and package.
  • Shared contract or public API: add adjacent consumer tests, schema/API compatibility checks, and a built-entry or package smoke when callers consume compiled output.
  • Persistence, migrations, queues, or durable formats: test forward behavior, failure/rollback, compatibility, and recovery against the real migration or serialization path.
  • Asynchronous, worker, subprocess, or resource-owning lifecycle: test success plus cancellation/failure, restoration after a failed transition, a negative control for leaked or duplicate work, concurrent-owner isolation where relevant, and teardown to quiescence. Exercise the real worker/process entry path when in-process fakes cannot prove ownership or cleanup.
  • Build, manifests, exports, bins, workers, packaging, or deployment configuration: run the build plus the artifact, install, startup, or deployment-config smoke that proves the produced surface.
  • Documentation, examples, generated catalogs, or linked comments: run the repository's generator/sync, link, example, localization, and documentation checks as applicable.
  • CLI-, UI-, model-, or protocol-visible output: exercise the real entry path and run the focused snapshot or behavioral assertion that owns the output.
  • External provider or environment behavior: run the smallest real integration/e2e scenario when credentials and authority are available; redact secrets and distinguish simulated evidence from real service evidence.
  • Security or permission boundaries: run the relevant policy, negative, and abuse-path checks rather than relying on a happy-path test.

Read the full file on GitHub · 106 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 106 lines · 29 tokens per session scan A e4121c7445dc

Subscribe to this mod's changes

yq-pre-push-checks is a skill published in the GitHub repository EthanYoQ/Skill-hub (9 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 1,679 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.

Related

Other skills, from other repositories

safe-extraction

Apply when extracting code from a large monolith file into submodules. Covers barrel re-exports, internals DI seam proxy patterns, CI invariant allowlist updates, and cross-file test verification. Prevents CI failures, broken imports, and test regressions from code extraction.

ZaxbyHub/opencode-swarm · 60 tokens

qa

QA test your code changes by reading your git diff, choosing the right validation path for frontend/browser and backend changes, and reporting pass/fail with evidence.

Skyvern-AI/skyvern · 33 tokens

merge-queue-readiness

Pre-queue merge-group CI simulation. Triggered before adding a PR to a GitHub merge queue. Prevents merge-queue kick-outs from integration test failures.

ZaxbyHub/opencode-swarm · 39 tokens

software-developer

Operates as an autonomous software engineer, capable of writing code, running tests, and managing git repositories.

clawdotnet/openclaw.net · 25 tokens

experiment-loop

Autonomous benchmark-driven experiment loop: propose a change, measure the metric, keep what improves it, revert what doesn't, repeat. Git is the ledger — every kept improvement is a commit. Every discarded attempt is a clean revert.

aaronnat23/disp8ch · 0 tokens

magpie-issue-fix-workflow

For a single triaged issue confirmed as a bug or feature, draft a fix against on . Produces the failing test, the smallest production change, the targeted+module test runs, and the commit. The PR is NOT opened on autopilot; the human committer reviews, signs, and pushes. Hand-back artefact summarises branch, commits…

apache/magpie · 108 tokens