agentleFS
NVIDIAKnown publisherNVIDIA/elements/projects/starters/angular/AGENTS.md

elements / angular

AGENTS.md115 starsChanged 54 days agoApache-2.0View on GitHub

This file only covers how this starter wires Elements into Angular. For component APIs, template validation, and project setup commands, use the Elements CLI/MCP documentation instead.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 0 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add CUSTOM_ELEMENTS_SCHEMA to the standalone component metadata before using nve-* tags in app.html.

    line 8
  2. Very specific:

    Keep theme and utility CSS imports in src/styles.css.

    line 9
  3. Very specific:

    Keep nve-theme and nve-transition on src/index.html.

    line 10
  4. Very specific:

    Use normal Angular template syntax with custom elements: [property] for JavaScript properties, [attr.name] for attributes, and (event) for …

    line 14
  5. Very specific:

    Use Angular router primitives outside or inside Elements slots normally.

    line 16
  6. Very specific:

    Use Elements form wrappers around native inputs so Angular forms keep owning value and validation state.

    line 20
  7. Very specific:

    Put Angular conditional rendering for validation messages on nve-control-message or around it, depending on the control state.

    line 22
  8. Very specific:

    Run pnpm run build in projects/starters/angular after schema, import, or template changes.

    line 26
  9. Very specific:

    Run pnpm run lint when editing TypeScript, HTML templates, or CSS.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Elements Angular Starter

This file only covers how this starter wires Elements into Angular. For component APIs, template validation, and project setup commands, use the Elements CLI/MCP documentation instead.

Integration Points

  • Register used Elements in the Angular component file that owns the template, as in src/app/app.ts.
  • Add CUSTOM_ELEMENTS_SCHEMA to the standalone component metadata before using nve-* tags in app.html.
  • Keep theme and utility CSS imports in src/styles.css; Angular component styles should stay local to component layout refinements.
  • Keep nve-theme and nve-transition on src/index.html.

Angular Syntax

  • Use normal Angular template syntax with custom elements: [property] for JavaScript properties, [attr.name] for attributes, and (event) for custom events.
  • Boolean attributes on custom elements usually need [attr.hidden]="condition ? '' : null" when the attribute semantics matter.
  • Use Angular router primitives outside or inside Elements slots normally; Elements do not own Angular state.

Forms

  • Use Elements form wrappers around native inputs so Angular forms keep owning value and validation state.
  • Bind Angular reactive forms to the nested native control, not to the nve-* wrapper.
  • Put Angular conditional rendering for validation messages on nve-control-message or around it, depending on the control state.

Verification

  • Run pnpm run build in projects/starters/angular after schema, import, or template changes.
  • Run pnpm run lint when editing TypeScript, HTML templates, or CSS.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.