ci-gates

ci-gates is a cursor rule for Cursor from jaycewalzer1/SilverKey-Inc.. It costs 0 tokens per session (652 once invoked), scanned A, original, MIT.

A set of continuous integration checks for preventing unwanted differences after splitting web and React Native code. Continuous integration, or CI, automatically checks changes during development.

In plain words
What is it for?
It is for enforcing type checks, linting, cycle checks, formatting, web and React Native parity, and file-size limits in CI.
Why use it?
It catches type errors, style problems, dependency cycles, formatting issues, mismatched platform code, and oversized files before they spread.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for enforcing type checks, linting, cycle checks, formatting, web and React Native parity, and file-size limits in CI.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/jaycewalzer1/silverkey-inc./ci-gates
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/jaycewalzer1/SilverKey-Inc.

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 ci-gates

README.md
[![agentmods](https://agentmods.dev/badge/rules/jaycewalzer1/silverkey-inc./ci-gates/github.svg)](https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./ci-gates)
Your own site
<a href="https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./ci-gates"><img src="https://agentmods.dev/badge/rules/jaycewalzer1/silverkey-inc./ci-gates/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 ci-gates

Your own site · 80×15
<a href="https://agentmods.dev/rules/jaycewalzer1/silverkey-inc./ci-gates"><img src="https://agentmods.dev/badge/rules/jaycewalzer1/silverkey-inc./ci-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 652 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.00000 $0.00652
Opus 5.5 $0.00000 $0.00261
Sonnet 5.5 $0.00000 $0.00130
Haiku 4.5 $0.00000 $0.00065

Measured 1mo ago against content hash 48442c2fb969, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-gates 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 1mo 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/shared/ci-gates.mdc · 34 lines

How it starts

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

CI Gates (Prevent Drift After Split)

Goal

Once RN exists, drift between web and shared code starts immediately. Run the gates locally before opening or merging PRs; CI lint runs on a weekly schedule (see Workflow below).

Required Client Gates (local + weekly CI)

These must pass before merge (run locally; CI re-runs weekly on Monday):

  1. Typecheck — pnpm typecheck (e.g. tsc -p apps/web/tsconfig.json). No type errors.
  2. Lint — pnpm lint (ESLint including silverkey rules and eslint-plugin-tailwindcss conflicting-class detection, then Stylelint on CSS inputs). No errors.
  3. Cycle check — pnpm lint:cycles (e.g. madge circular dependency check). No cycles in apps/web and packages.
  4. Formatting — pnpm format:check (Prettier). No unformatted files.
  5. File size — Enforced via ESLint rule silverkey/max-lines-hard (e.g. max 500 lines per file). Part of pnpm lint. The intent is to flag oversized files; prefer addressing cyclomatic complexity and real maintainability over splitting into many tiny files just to satisfy the limit (see code-organization: complexity over line count, avoid file fragmentation).

Workflow

  • Single entry point: scripts/ci/run-all-linters.sh runs all linters for a scope (client | server | all). Fix phase runs first (Client: pnpm run fix; Server: ruff check --fix + ruff format), then checks — same order in CI and locally. Server: every Server/scripts/lint/lint_*.py then each executable Server/scripts/lint/lint_*.sh (sorted). Client: every executable Client/scripts/lint.d/*.sh (sorted), then pnpm check. New linters: add a matching file under Server/scripts/lint/; no workflow or root script edit required.
  • CI: .github/workflows/lint.yml runs the root script for client and server (two jobs) on a weekly schedule (Monday 09:00 America/New_York, same as .github/dependabot.yml weekly-all) and on workflow_dispatch. It does not run on every push or pull request. ci_web.yml (prod web deploy) does not run lint or tests.

Read the full file on GitHub · 34 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. 1mo ago First seen · 34 lines · 0 tokens per session scan A 48442c2fb969

Subscribe to this mod's changes

ci-gates is a cursor rule published in the GitHub repository jaycewalzer1/SilverKey-Inc. (2 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 652 tokens. 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-08.