issues-angular

A set of Angular rules for an SPA, or single-page web application, used by the Issues frontend. It defines where components and services belong and how the frontend communicates with the API.

In plain words
What is it for?
Use it when changing Angular templates, styles, routes, services, authentication, or API integrations, and when building the frontend before marking work complete.
Why use it?
It reduces inconsistent UI and API code, prevents duplicated URL settings, and gives developers a reliable order for updating generated API clients after backend changes.

Cursor rule for 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/vepo/issues/issues-angular
Clone the repo
git clone --depth 1 https://github.com/vepo/issues

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00496
Opus 5 $0.00000 $0.00248
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured yesterday against content hash 30b5cf83a746, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

issues-angular 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 yesterday.

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/issues-angular.mdc · 52 lines

What it actually says

Angular conventions

UI/UX gate

Before any template, style, or interaction change:

  1. Read docs/ui-elements-gallery.md — reuse documented elements; extend the gallery when adding new ones.
  2. Apply issues-ux.mdc — Nielsen heuristics checklist and flat UI design language.

Structure

  • Components: src/app/components/<feature>/*.component.ts, *.html, *.scss.
  • Services: src/app/services/*.service.tsprovidedIn: 'root'.
  • Resolvers: src/app/resolvers/*.resolver.ts.
  • Routes: src/app/app.routes.ts.

HTTP

  • API types and clients: OpenAPI codegen → src/app/generated/ (gitignored). Regenerate with npm run generate:api after mvn test.
  • Facades in services/*.service.ts wrap generated *Api classes — components inject facades, not generated services directly.
  • OpenAPI paths already include /api; set BASE_PATH to '' in app.config.ts (do not double the prefix).
  • After backend endpoint changes: mvn testnpm run generate:api → align facades with generated method signatures (parameter order may differ from path order).
  • Before marking done: npm run build (not bare ng buildprebuild regenerates the client).
  • Attach JWT via auth.interceptor.ts.
  • SSE stays hand-written in sse.client.ts.

UI library

  • Angular Material for form controls, dialogs, navigation.
  • Chart.js via ng2-charts for dashboard widgets.

Tests

  • *.spec.ts alongside source; Karma/Jasmine.
  • Mock HTTP with HttpClientTestingModule in service tests.
  • Test component behaviour, not implementation details.

Naming

  • Selectors: app-<kebab-case> prefix.
  • Component class: XxxComponent; service: XxxService.

Domain language

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. yesterday First seen · 52 lines · 0 tokens per session scan A 30b5cf83a746

Subscribe to this mod's changes

issues-angular is a cursor rule published in the GitHub repository vepo/issues (8 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 496 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.