ci

ci is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 0 tokens per session (1,354 once invoked), scanned A, original, Apache-2.0.

A guide to the repository's GitHub Actions continuous-integration workflow, which runs checks for pull requests and before releases. It covers when to test affected packages or the full repository, lockfile handling, permissions, and valid workflow expression contexts.

In plain words
What is it for?
Use it when editing CI or release workflows, changing environment variables, selecting affected packages, or updating dependency installation and permission settings.
Why use it?
It prevents workflow files from becoming invalid, accidentally running no jobs, or weakening checks needed to validate changes before a release.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when editing CI or release workflows, changing environment variables, selecting…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/ci
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/louisbrulenaudet/monorepo-template

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/ci.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/ci)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/ci"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,354 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.01354
Opus 5 $0.00000 $0.00677
Sonnet 5 $0.00000 $0.00271
Haiku 4.5 $0.00000 $0.00135

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

Security

Grade A, and why

ci 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 3d 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/ops/ci.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.

Continuous Integration

The gate is .github/workflows/ci.yml. Read it for the step list. It is both the PR check and a reusable workflow: release.yml's gate job calls it so every push to main is validated before a tag is cut - see ops/release.md. Deploy: ops/cd.md. Weakening a CI gate to force green is covered by guardrails.md.

Expression contexts - read this before touching env:

Workflow-level env: may only reference github, secrets, inputs, vars. Job-level env: adds needs, strategy, matrix. runner, job, steps, and env are step-level only. Referencing an unavailable context is a validation error: the file stops parsing, GitHub reports the run under the file path instead of the workflow name, and zero jobs execute. It does not degrade to an empty string.

This is not hypothetical. d3e741b added NODE_COMPILE_CACHE: ${{ runner.temp }}/… to workflow-level env: in ci.yml and cd.yml; both files were unparseable and 14 consecutive pushes ran no CI at all before it was caught. Anything needing $RUNNER_TEMP goes through a step:

- run: echo "NODE_COMPILE_CACHE=$RUNNER_TEMP/node-compile-cache" >> "$GITHUB_ENV"

Repo invariants

  • Triggers: pull_request, workflow_call, workflow_dispatch. No push: - pushes to main are covered by release.yml's gate, so a commit is never checked twice.
  • Parity: root pnpm ci and the workflow run the same kinds of checks. Change both when adding or renaming a gate. Scope differs by event on purpose: --affected on pull_request only, full graph on workflow_call / workflow_dispatch (a release must validate everything). Two if:-gated steps express this - never interpolate the flag into a run: body. The dependency audit is pull_request-only for the inverse reason: the advisory DB changes daily, so an auditing release gate is not a pure function of the commit; local pnpm run ci still audits.
  • TURBO_SCM_BASE is set on pull_request only, to origin/<base_ref>; checkout only creates remote-tracking refs. It is deliberately empty elsewhere: the full-graph path needs no base, and github.event.before is all-zeros on a new branch, which silently degrades --affected to "everything changed". Keep fetch-depth: 0 + filter: blob:none.
  • Parallelization: one job, using the GitHub Actions parallel: step keyword (GA 2026-06-25, alongside background / wait / wait-all / cancel) for OXC (lint/format), boundaries, types:check, knip, and syncpack. A parallel: list item takes no sibling keys - parallel: is its only property. A single turbo run check-types test build invocation, not two turbo CLIs; turbo schedules against default concurrency (no override in turbo.json). Wrangler deploy dry-run runs --filter='./apps/*' after the join, so every app is covered the moment it exists. It is redundant for worker-api (whose build script is wrangler deploy --dry-run) and deploy is cache: false, so that redundancy costs a few seconds - the price of not maintaining an app list here.
  • changeset-release/** is skipped via a job-level if on github.head_ref. A pull_request branches-ignore filters the base branch and cannot do this. The release commit is validated by gate on the merge commit, so no branch-protection exemption is needed.
  • Step bodies longer than a few lines live as scripts, not inline YAML: workflow-invoked ones under .github/actions/<workflow>/ (cd/, release/), composite-action ones beside their action.yml. Invoke with bash <path> and wire inputs through step-level env:; each script opens with set -euo pipefail and fails fast on missing input (:? guards or an explicit check). Short steps stay inline.
  • Install: pnpm install --frozen-lockfile after pnpm/setup with install: false. Node runtime: node@24 matching root engines.
  • Remote cache: job env wires TURBO_TOKEN, TURBO_TEAM, and TURBO_REMOTE_CACHE_SIGNATURE_KEY (repo secret, >= 32 bytes, same value as local machines - turbo.json enables remoteCache.signature + longerSignatureKey). workflow_call declares those two secrets explicitly so the release gate never receives Cloudflare credentials; never switch that call to secrets: inherit.
  • Pins: every uses: is a full-length commit SHA with a # vX.Y.Z comment. actions/checkout sets persist-credentials: false. Workflow permissions: {} with per-job re-grants - contents: read only, since artifact upload and the setup caches use the runner's runtime token, not GITHUB_TOKEN. Runners: ubuntu-24.04 (not ubuntu-latest).
  • cancel-in-progress only on pull_request. Never interpolate github.ref_name into script bodies. No production/Cloudflare secrets in this workflow (CD only).
  • Do not add scanners "for completeness" without a concrete threat and owner. Telemetry stays off at workflow env:.

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. 3d ago First seen · 34 lines · 0 tokens per session scan A e09686cb2ef8

Subscribe to this mod's changes

ci is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 5d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,354 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-03.

Related

Other cursor rules, from other repositories

mcp-releasing

Steps and procedures for releasing MCP (Model Context Protocol) servers as NPM packages.

steipete/agent-rules · 0 tokens

changelog-generator-manual

This rule generates a comprehensive changelog.md file by analyzing all git tags and commits, creating a chronological record of all project changes with proper semantic versioning structure. The changelog.md file is stored at the root of the project.

usrrname/cursorrules · 0 tokens

release-commit-analysis-auto

This rule analyzes commits to determine if they should trigger a version bump. It categorizes conventional and non-conventional commits into Features, Bug Fixes, Breaking Changes, Documentation, and Other. It uses intelligent keyword matching for non-conventional commits and analyzes file changes to help categorize…

usrrname/cursorrules · 0 tokens

release-git-tags-auto

This rule checks for existing tags before creating new ones. It also offers to push the tag to the remote repository. It runs when users request release creation, version bumping, or package publishing.

usrrname/cursorrules · 0 tokens

release-validation-auto

This rule validates release prerequisites including branch naming conventions and package.json structure. It runs when users request release creation, version bumping, or package publishing. The rule ensures releases only occur from appropriate branches (release/, hotfix/, fix/) and validates package.json exists with…

usrrname/cursorrules · 0 tokens

release-version-bump-auto

Apply when the user is creating or preparing a release, version bump, tag, publish, or deploy. Validates semantic version bumps against change analysis (breaking/feat/fix), blocks inappropriate bumps, and guides major/minor/patch or custom version choice. Use for release workflows, package versioning, and…

usrrname/cursorrules · 67 tokens