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.
npx agentmods add rules/gurezo/web-serial-rxjs/30-nx-project-scopegit clone --depth 1 https://github.com/gurezo/web-serial-rxjsWrote 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/gurezo/web-serial-rxjs/30-nx-project-scope)<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>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 | $0.00000 | $0.00898 |
| Opus 5 | $0.00000 | $0.00449 |
| Sonnet 5 | $0.00000 | $0.00180 |
| Haiku 4.5 | $0.00000 | $0.00090 |
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.
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.json の name プロパティ、または commitlint.config.js の scope-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.json の name を scope として採用する。
scope 選択方針
- 変更が単一プロジェクトに収まる場合は、その
project.jsonのnameを scope に使う。 - 変更が複数プロジェクトに跨る場合は、最も影響範囲の広い project、または
workspaceを使う。 - project に紐付かない変更(CI / docs / deps など)は fallback scope を使う。
- 新しい project を追加した場合は、
commitlint.config.jsのscope-enumと本ファイル、.cursor/skills/conventional-commits/scopes.md、CONTRIBUTING.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 |
禁止事項
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.
- 5d ago First seen · 74 lines · 0 tokens per session scan A 6cb0ce87dc20
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.
Other cursor rules, from other repositories
git
Conventional commit message format for git commits.
git-commit-attribution
Git commits must use the human developer identity only; never Cursor Agent co-authorship.
commit-sponsors
Every git commit message must acknowledge BetterDesk supporters.
git_workflow
Git Workflow and Configuration for AGB SDK.
conventional-commits
Use the Conventional Commit Messages specification to generate commit messages.
git-commits
description: "Reference and apply the git commits skill for Conventional Commit formatting and pre-push checks." alwaysApply: true.