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.
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-templateWrote 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.
[](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/ci)<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>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.
| Model | Per session | Once 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 |
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.
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. Nopush:- pushes tomainare covered byrelease.yml'sgate, so a commit is never checked twice. - Parity: root
pnpm ciand the workflow run the same kinds of checks. Change both when adding or renaming a gate. Scope differs by event on purpose:--affectedonpull_requestonly, full graph onworkflow_call/workflow_dispatch(a release must validate everything). Twoif:-gated steps express this - never interpolate the flag into arun:body. The dependency audit ispull_request-only for the inverse reason: the advisory DB changes daily, so an auditing release gate is not a pure function of the commit; localpnpm run cistill audits. TURBO_SCM_BASEis set onpull_requestonly, toorigin/<base_ref>; checkout only creates remote-tracking refs. It is deliberately empty elsewhere: the full-graph path needs no base, andgithub.event.beforeis all-zeros on a new branch, which silently degrades--affectedto "everything changed". Keepfetch-depth: 0+filter: blob:none.- Parallelization: one job, using the GitHub Actions
parallel:step keyword (GA 2026-06-25, alongsidebackground/wait/wait-all/cancel) for OXC (lint/format),boundaries,types:check,knip, andsyncpack. Aparallel:list item takes no sibling keys -parallel:is its only property. A singleturbo run check-types test buildinvocation, not two turbo CLIs; turbo schedules against default concurrency (no override inturbo.json). Wrangler deploy dry-run runs--filter='./apps/*'after the join, so every app is covered the moment it exists. It is redundant forworker-api(whosebuildscript iswrangler deploy --dry-run) anddeployiscache: false, so that redundancy costs a few seconds - the price of not maintaining an app list here. changeset-release/**is skipped via a job-levelifongithub.head_ref. Apull_requestbranches-ignorefilters the base branch and cannot do this. The release commit is validated bygateon 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 theiraction.yml. Invoke withbash <path>and wire inputs through step-levelenv:; each script opens withset -euo pipefailand fails fast on missing input (:?guards or an explicit check). Short steps stay inline. - Install:
pnpm install --frozen-lockfileafterpnpm/setupwithinstall: false. Noderuntime: node@24matching root engines. - Remote cache: job env wires
TURBO_TOKEN,TURBO_TEAM, andTURBO_REMOTE_CACHE_SIGNATURE_KEY(repo secret, >= 32 bytes, same value as local machines -turbo.jsonenablesremoteCache.signature+longerSignatureKey).workflow_calldeclares those two secrets explicitly so the release gate never receives Cloudflare credentials; never switch that call tosecrets: inherit. - Pins: every
uses:is a full-length commit SHA with a# vX.Y.Zcomment.actions/checkoutsetspersist-credentials: false. Workflowpermissions: {}with per-job re-grants -contents: readonly, since artifact upload and the setup caches use the runner's runtime token, notGITHUB_TOKEN. Runners:ubuntu-24.04(notubuntu-latest). cancel-in-progressonly on pull_request. Never interpolategithub.ref_nameinto 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:.
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.
- 3d ago First seen · 34 lines · 0 tokens per session scan A e09686cb2ef8
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.
Other cursor rules, from other repositories
mcp-releasing
Steps and procedures for releasing MCP (Model Context Protocol) servers as NPM packages.
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.
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…
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.
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…
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…