30-nx-project-scope

30-nx-project-scope is a cursor rule for Cursor from gurezo/web-serial-rxjs. It costs 0 tokens per session (898 once invoked), scanned A, original, MIT.

A set of commit-scope rules for an Nx monorepo, which is a code repository containing multiple applications and libraries. It explains which project or area to name in commit messages.

In plain words
What is it for?
Use it when writing commit messages for the web-serial-rxjs repository, especially changes to Angular, React, Vue, Svelte, shared libraries, documentation, builds, tests, or CI.
Why use it?
It removes guesswork when choosing commit scopes and helps keep them aligned with project names and repository settings.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/gurezo/web-serial-rxjs/30-nx-project-scope
Clone the repo
git clone --depth 1 https://github.com/gurezo/web-serial-rxjs

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 30-nx-project-scope

README.md
[![agentmods](https://agentmods.dev/badge/rules/gurezo/web-serial-rxjs/30-nx-project-scope.svg)](https://agentmods.dev/rules/gurezo/web-serial-rxjs/30-nx-project-scope)
Your own site
<a href="https://agentmods.dev/rules/gurezo/web-serial-rxjs/30-nx-project-scope"><img src="https://agentmods.dev/badge/rules/gurezo/web-serial-rxjs/30-nx-project-scope.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 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00898
Opus 5 $0.00000 $0.00449
Sonnet 5 $0.00000 $0.00180
Haiku 4.5 $0.00000 $0.00090

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

Security

Grade A, and why

30-nx-project-scope 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/nx/30-nx-project-scope.mdc · 74 lines

How it starts

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

web-serial-rxjs Scope Rules

scope は Nx project 単位を優先する。各プロジェクトの project.jsonname プロパティ、または commitlint.config.jsscope-enum に列挙された値だけを使用する。

推奨 scope (commitlint.config.js と一致)

scope 対象 説明
web-serial-rxjs packages/web-serial-rxjs ライブラリ本体
example-angular apps/example-angular Angular サンプル
example-react apps/example-react React サンプル
example-vue apps/example-vue Vue サンプル
example-svelte apps/example-svelte Svelte サンプル
example-vanilla-js apps/example-vanilla-js Vanilla JS サンプル
example-vanilla-ts apps/example-vanilla-ts Vanilla TS サンプル
examples-shared libs/examples-shared example 用 shared adapter
workspace ルート設定・複数 project nx.json / tsconfig.base.json / .cursor/
docs ドキュメント全般 README / CONTRIBUTING / docs 等
readme README 単体
release リリース運用
ci .github/workflows/ CI
build ビルドシステム
nx nx.json / Nx 設定
deps 依存関係更新
repo リポジトリ運用
test クロスプロジェクトのテスト

scope source

scope は以下のパスから動的に同期される。

apps/**/project.json
libs/**/project.json
packages/**/project.json

libs/ の project も project.jsonname を scope として採用する。

scope 選択方針

  1. 変更が単一プロジェクトに収まる場合は、その project.jsonname を scope に使う。
  2. 変更が複数プロジェクトに跨る場合は、最も影響範囲の広い project、または workspace を使う。
  3. project に紐付かない変更(CI / docs / deps など)は fallback scope を使う。
  4. 新しい project を追加した場合は、commitlint.config.jsscope-enum と本ファイル、.cursor/skills/conventional-commits/scopes.mdCONTRIBUTING.md を同時に更新する。

変更対象 選ぶべき scope
packages/web-serial-rxjs/src/session/serial-session.ts web-serial-rxjs
apps/example-react/src/hooks/useSerialSession.ts example-react
nx.json / tsconfig.base.json workspace
.github/workflows/ci.yml ci(または workspace
README.md / CONTRIBUTING.md docs または readme

禁止事項

Read the full file on GitHub · 74 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 · 74 lines · 0 tokens per session scan A 6cb0ce87dc20

Subscribe to this mod's changes

30-nx-project-scope is a cursor rule published in the GitHub repository gurezo/web-serial-rxjs (2 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 898 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-08-31.