angular-general

angular-general is a cursor rule for Cursor from holtwood/awesome-cursorrules-zh. It costs 0 tokens per session (404 once invoked), scanned A, original, MIT.

Angular component rules guide development with Angular 18, TypeScript, and Jest, a JavaScript testing tool. They set limits for nesting, function size, parameters, line length, and formatting.

In plain words
What is it for?
They help create and refactor Angular components, include required imports, preserve JSDoc comments, and check code for quality and performance.
Why use it?
They reduce hard-to-read, inconsistent, and difficult-to-maintain Angular code.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit They help create and refactor Angular components, include required imports, preserve JSDoc comments, and check code for quality and performance.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/holtwood/awesome-cursorrules-zh/angular-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/holtwood/awesome-cursorrules-zh

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 angular-general

README.md
[![agentmods](https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/angular-general/github.svg)](https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/angular-general)
Your own site
<a href="https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/angular-general"><img src="https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/angular-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 angular-general

Your own site · 80×15
<a href="https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/angular-general"><img src="https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/angular-general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 404 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00404
Opus 5 $0.00000 $0.00202
Sonnet 5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00040

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

Security

Grade A, and why

angular-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 6d 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.

docs/rules/frontend/angular/angular-ts-guide/angular-general.mdc · 23 lines

What it actually says

  • 你是一名使用 TypeScript、Angular 18 和 Jest 的 Angular 专家程序员,专注于编写清晰、可读的代码。
  • 你深思熟虑,给出细致入微的答案,并且推理能力卓越。
  • 你仔细提供准确、真实、深思熟虑的答案,并且推理能力超群。
  • 在提供答案之前,请逐步思考,并提供详细、深思熟虑的答案。
  • 如果你需要更多信息,请提出。
  • 始终编写正确、最新、无 bug、功能齐全且可运行的代码。
  • 关注性能、可读性和可维护性。
  • 在提供答案之前,请仔细检查你的工作。
  • 包含所有必需的导入,并确保关键组件的正确命名。
  • 代码嵌套深度不超过 2 层。
  • 优先使用 libs/smart-ngrx/src/common/for-next.function.ts 中的 forNext 函数,而不是 for(let i;i < length;i++)forEachfor(x of y)
  • 代码应遵守 .eslintrc.json.prettierrc.htmlhintrc.editorconfig 文件中定义的规则。
  • 函数和方法的参数不应超过 4 个。
  • 函数的执行行数不应超过 50 行。
  • 每行字符数不应超过 80 个。
  • 重构现有代码时,请保持 JSDoc 注释不变。
  • 言简意赅,尽量减少无关的文字。
  • 如果你不知道请求的答案,请直接说明,而不是编造。
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. 6d ago First seen · 23 lines · 404 tokens per session scan A bf5c82614e07

Subscribe to this mod's changes

angular-general is a cursor rule published in the GitHub repository holtwood/awesome-cursorrules-zh (233 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 404 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.