push

push is a cursor rule for Cursor from rajitsaha/100xprism. It costs 1,654 tokens per session, scanned A, original, MIT.

A guarded workflow for sending local Git changes to a remote repository and monitoring CI/CD. CI/CD means automated checks and deployments that run after code changes are pushed.

In plain words
What is it for?
Use it to run quality gates, check cached reviews, push a branch, and monitor the resulting automation.
Why use it?
It prevents changes from being pushed when required tests or reviews have not passed, and avoids reusing stale checks.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to run quality gates, check cached reviews, push a branch, and monitor the resulting automation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/rajitsaha/100xprism/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.

Clone the repo
git clone --depth 1 https://github.com/rajitsaha/100xprism

Made for: Cursor.

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 push

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/push"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/push.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,654 This file is loaded in full into every session.
When invoked 1,654 The same file — it is already loaded in full.
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.01654 $0.01654
Opus 5 $0.00827 $0.00827
Sonnet 5 $0.00331 $0.00331
Haiku 4.5 $0.00165 $0.00165

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

Security

Grade A, and why

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.

.cursor/rules/push.mdc · 193 lines

How it starts

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

Push — Gate → Push → Monitor CI/CD

Quality gate re-runs before pushing. Do NOT push if any gate fails. Do NOT ask for permission; never use --no-verify or --force.

Phase 0 — Quality Gate (MANDATORY)

Check gate cache first — skip if it already passed for this exact tree state. The cache is keyed on a tree token (HEAD + tracked diff + untracked files), not a bare HEAD, so a dirty or rebased tree never reuses a stale pass — the same token /commit writes and the gate-on-commit hook checks:

TOKEN=$(python3 ~/100xprism/hooks/gate-pass.py --print 2>/dev/null)
CACHED=$(cat ~/.100xprism/gate-cache 2>/dev/null)
[ -n "$TOKEN" ] && [ "$CACHED" = "$TOKEN" ] && echo "Gate: skipped (already passed for this tree)" && GATE_DONE=true || GATE_DONE=false

If GATE_DONE=false: run the gate workflow. On pass, record it:

python3 ~/100xprism/hooks/gate-pass.py

Do NOT push until gate passes. If gate fails → STOP, fix, clear cache, new commit, re-run.


Phase 0b — Code Review (pre-push)

Check review cache — skip if HEAD already reviewed by a prior /commit run:

HEAD=$(git rev-parse HEAD)
REVIEWED=$(cat ~/.100xprism/review-cache 2>/dev/null)
[ "$REVIEWED" = "$HEAD" ] && echo "Review: skipped (already done for $HEAD)" && REVIEW_DONE=true || REVIEW_DONE=false

If REVIEW_DONE=false, review unpushed commits now:

PR=$(gh pr list --head "$(git branch --show-current)" --json number -q '.[0].number' 2>/dev/null)
  • PR exists → run the code-review skill: /review $PR
  • No PR → spawn one review Agent on git diff origin/main..HEAD covering the five dimensions defined in the commit skill Phase 5 (bugs, security, architecture, design, CLAUDE.md). Single-pass — no separate agents per dimension.

On clean review:

echo "$HEAD" > ~/.100xprism/review-cache

Critical or High issues → fix, new commit, clear cache, re-run gate. Do NOT push. Minor issues → logged, non-blocking.

Read the full file on GitHub · 193 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 · 193 lines · 1,654 tokens per session scan A 09e2f2050c21

Subscribe to this mod's changes

push is a cursor rule published in the GitHub repository rajitsaha/100xprism (10 stars, last pushed 8d ago), licensed MIT. It adds 1,654 tokens to every session, about $0.0083 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.