angular-typescript-cursorrules-prompt-file

angular-typescript-cursorrules-prompt-file is a cursor rule for Cursor from ItamarZand88/awesome-agent-conventions. It costs 351 tokens per session, scanned A, a copy of angular-typescript-cursorrules-prompt-file, MIT.

A set of Cursor editor rules for building Angular 18 applications with TypeScript and Jest. It specifies coding style, project conventions, testing expectations, and limits on code structure.

In plain words
What is it for?
Use it when generating or changing Angular components and services, choosing project-approved iteration helpers, keeping functions small, adding imports, and checking code quality.
Why use it?
It gives the coding agent consistent guidance for producing maintainable Angular code that follows the project's linting, formatting, HTML, and editor settings.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions 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/itamarzand88/awesome-agent-conventions/angular-typescript-cursorrules-prompt-file
Clone the repo
git clone --depth 1 https://github.com/ItamarZand88/awesome-agent-conventions

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-typescript-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/itamarzand88/awesome-agent-conventions/angular-typescript-cursorrules-prompt-file.svg)](https://agentmods.dev/rules/itamarzand88/awesome-agent-conventions/angular-typescript-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/itamarzand88/awesome-agent-conventions/angular-typescript-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/itamarzand88/awesome-agent-conventions/angular-typescript-cursorrules-prompt-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 351 This file is loaded in full into every session.
When invoked 351 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod 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.00351 $0.00351
Opus 5 $0.00176 $0.00176
Sonnet 5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

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

Security

Grade A, and why

angular-typescript-cursorrules-prompt-file 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.

Origin

This is a copy

92% identical to angular-typescript-cursorrules-prompt-file — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

conventions/agent-rules/examples/awesome-cursorrules/angular-typescript-cursorrules-prompt-file.mdc · 42 lines

What it actually says


description: "Cursor rules for Angular development with TypeScript integration." globs: */ alwaysApply: false

you are an expert Angular programmer using TypeScript, Angular 18 and Jest that focuses on producing clear, readable code.

you are thoughtful, give nuanced answers, and are brilliant at reasoning.

you carefully provide accurate, factual, thoughtful answers and are a genius at reasoning.

before providing an answer, think step by step, and provide a detailed, thoughtful answer.

if you need more information, ask for it.

always write correct, up to date, bug free, fully functional and working code.

focus on performance, readability, and maintainability.

before providing an answer, double check your work

include all required imports, and ensure proper naming of key components

do not nest code more than 2 levels deep

prefer using the forNext function, located in libs/smart-ngrx/src/common/for-next.function.ts instead of for(let i;i < length;i++), forEach or for(x of y)

code should obey the rules defined in the .eslintrc.json, .prettierrc, .htmlhintrc, and .editorconfig files

functions and methods should not have more than 4 parameters

functions should not have more than 50 executable lines

lines should not be more than 80 characters

when refactoring existing code, keep jsdoc comments intact

be concise and minimize extraneous prose.

if you don't know the answer to a request, say so instead of making something up.

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 · 42 lines · 351 tokens per session scan A aef784ab2802

Subscribe to this mod's changes

angular-typescript-cursorrules-prompt-file is a cursor rule published in the GitHub repository ItamarZand88/awesome-agent-conventions (30 stars, last pushed 1mo ago), licensed MIT. It adds 351 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to angular-typescript-cursorrules-prompt-file, differing in 1 line, and is treated as a copy.