nx

nx is a cursor rule for Cursor from wghglory/ngx-lift-workspace. It costs 1,267 tokens per session, scanned A, original, MIT.

Project rules for an Nx workspace, a repository that manages multiple related applications and libraries together. They describe where code belongs and which Nx commands to use for building, testing, linting, serving, and end-to-end checks.

In plain words
What is it for?
Use them when working in the described Angular and TypeScript workspace to locate applications, reusable libraries, tools, and configuration files. They also guide routine build, test, lint, and end-to-end tasks.
Why use it?
They give coding agents consistent project structure and command conventions. This reduces the risk of placing files in the wrong area or running an incomplete or incorrect project command.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when working in the described Angular and TypeScript workspace to locate applications, reusable libraries, tools, and configuration files. They also guide routine build, test, lint, and end-to-end tasks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/wghglory/ngx-lift-workspace/nx
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/wghglory/ngx-lift-workspace

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 nx

README.md
[![agentmods](https://agentmods.dev/badge/rules/wghglory/ngx-lift-workspace/nx/github.svg)](https://agentmods.dev/rules/wghglory/ngx-lift-workspace/nx)
Your own site
<a href="https://agentmods.dev/rules/wghglory/ngx-lift-workspace/nx"><img src="https://agentmods.dev/badge/rules/wghglory/ngx-lift-workspace/nx/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 nx

Your own site · 80×15
<a href="https://agentmods.dev/rules/wghglory/ngx-lift-workspace/nx"><img src="https://agentmods.dev/badge/rules/wghglory/ngx-lift-workspace/nx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,267 This file is loaded in full into every session.
When invoked 1,267 The same file — it is already loaded in full.
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.01267 $0.01267
Opus 5.5 $0.00507 $0.00507
Sonnet 5.5 $0.00253 $0.00253
Haiku 4.5 $0.00127 $0.00127

Measured 16d ago against content hash 0846b49df332, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nx 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 16d 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.mdc · 163 lines

How it starts

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

Nx Workspace Guidelines

Project Structure

  • Libraries: Place reusable code in libs/ directory

    • libs/ngx-lift/: Core Angular utilities library (RxJS operators, signals, pipes, validators)
    • libs/clr-lift/: Clarity Design System component library (depends on ngx-lift)
  • Applications: Place applications in apps/ directory

    • apps/demo/: Demo application showcasing both libraries
    • apps/demo-e2e/: E2E tests for demo app
  • Tools: Place build tools and scripts in tools/ directory

    • tools/vitest/: Vitest configuration utilities
    • tools/eslint-plugin/: Custom ESLint rules

Project Configuration

  • project.json: Each project has a project.json with targets
  • tsconfig.json: TypeScript configuration per project
  • vite.config.mts: Vitest configuration for testing (libraries)
  • ng-package.json: Angular packaging configuration (libraries)
  • eslint.config.mjs: ESLint configuration per project

Nx Commands

  • Build: npx nx build [project-name]
  • Test: npx nx test [project-name] (not nx test)
  • Lint: npx nx lint [project-name]
  • Serve: npx nx serve [project-name]
  • E2E: npx nx e2e [e2e-project-name]
  • Graph: npx nx graph (visualize project dependencies)

Dependency Management

  • Module Boundaries: Respect Nx project boundaries

    • Configured in eslint.config.mjs with @nx/enforce-module-boundaries
    • No circular dependencies allowed
  • Tags: Use tags to organize projects

    • Define in project.json or nx.json
    • Enforce dependency rules based on tags
  • Imports: Libraries are local packages in this monorepo

    // Import from ngx-lift library
    import {createAsyncState, poll} from 'ngx-lift';
    
    // Import from clr-lift library
    import {AlertComponent, ToastService} from 'clr-lift';
    
    // Path mappings defined in tsconfig.base.json
    

Code Generation

  • Generators: Use Nx generators for consistent structure

    npx nx generate @nx/angular:library my-lib
    npx nx generate @nx/angular:component my-component --project=my-lib
    

Read the full file on GitHub · 163 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. 16d ago First seen · 163 lines · 1,267 tokens per session scan A 0846b49df332

Subscribe to this mod's changes

nx is a cursor rule published in the GitHub repository wghglory/ngx-lift-workspace (7 stars, last pushed yesterday), licensed MIT. It adds 1,267 tokens to every session, about $0.0051 per session on Opus 5.5. 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-10-02.