general

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

A set of project rules for an Nx monorepo containing two Angular libraries and a demo application. A monorepo keeps multiple related projects in one repository, while Angular is a framework for building web applications.

In plain words
What is it for?
Use it when developing the Angular libraries or demo, including TypeScript code, reusable components, documentation, state management, unit tests, and browser-based end-to-end tests.
Why use it?
It keeps shared code, documentation, coding style, and testing practices consistent across the libraries. It also states which tools and design patterns the workspace expects.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when developing the Angular libraries or demo, including TypeScript code, reusable components, documentation, state management, unit tests, and browser-based end-to-end tests.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/wghglory/ngx-lift-workspace/general"><img src="https://agentmods.dev/badge/rules/wghglory/ngx-lift-workspace/general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,771 This file is loaded in full into every session.
When invoked 1,771 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.01771 $0.01771
Opus 5.5 $0.00708 $0.00708
Sonnet 5.5 $0.00354 $0.00354
Haiku 4.5 $0.00177 $0.00177

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

Security

Grade A, and why

general 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/general.mdc · 172 lines

How it starts

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

ngx-lift Workspace - General Rules

Project Overview

This is an Nx monorepo containing two Angular libraries: ngx-lift and clr-lift. This workspace focuses on building reusable Angular utilities and components for the broader Angular community.

  • ngx-lift: Core Angular utility library (RxJS operators, signal utilities, pipes, validators)
  • clr-lift: Clarity Design System component library (built on top of ngx-lift)
  • demo: Demo application showcasing both libraries

Use modern Angular best practices, signals for state management, Vitest for unit tests, and Playwright for E2E tests.

Core Technologies

  • Modern Angular
  • Nx monorepo
  • VMware Clarity Design System - clr-lift only
  • Vitest 4 for testing
  • ESLint 9 with TypeScript ESLint
  • Playwright for E2E testing

Non-Negotiables

  • TypeScript: Strict mode enabled, DRY principle, no any types
  • Library Code: Build for reusability, maintainability, and tree-shakability
  • Documentation: All public APIs must have JSDoc comments with examples
  • State Management: Signals for component state; reactive patterns for data flow
  • Testing: Vitest for unit tests; stable selectors; 60%+ coverage minimum
  • Lifecycle: No subscriptions in constructor; move initialization logic to ngOnInit
  • Accessibility: ARIA attributes for UI components (clr-lift); keyboard navigation parity
  • UI Components (clr-lift only): Clarity Angular components; no hard-coded colors

Code Quality Standards

  • Always ensure all code passes ESLint without errors or warnings
  • Always ensure all code is formatted with Prettier
  • Always ensure TypeScript compilation passes with no errors
  • Run nx lint [project] before considering work complete
  • All generated or modified code must be lint-clean and properly formatted
  • Fix or suppress lint warnings only with explicit justification
  • Always provide JSDoc comments for all exported functions, classes, interfaces, and types

Read the full file on GitHub · 172 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 · 172 lines · 1,771 tokens per session scan A a87dc2135184

Subscribe to this mod's changes

general is a cursor rule published in the GitHub repository wghglory/ngx-lift-workspace (7 stars, last pushed yesterday), licensed MIT. It adds 1,771 tokens to every session, about $0.0071 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.