fundamental-ngx AGENTS.md

fundamental-ngx AGENTS.md is an instructions file for Codex, OpenCode from SAP/fundamental-ngx. It costs 3,066 tokens per session, scanned A, original, Apache-2.0.

A development guide for an Angular component library organized as an NX monorepo, meaning one repository containing multiple related projects. It covers Angular patterns, commands, testing, commits, and pull requests.

In plain words
What is it for?
Use it when adding or changing Angular components, running library-specific builds or tests, and preparing commits or pull requests.
Why use it?
It gives coding agents the project's conventions and the commands needed to build, check, and test individual libraries.

Instructions file for CodexOpenCode

About the project

Fundamental Library for Angular is an SAP-maintained Angular component library implementing SAP's design system and wrapping UI5 Web Components. Angular developers use its typed UI components and higher-level composites to build SAP-style web interfaces. Catalogue entries provide skills, agents, instructions, and a rule for working with the library.

SAP/fundamental-ngx · 294 stars · on GitHub

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 instructions/sap/fundamental-ngx/agents-md
Clone the repo
git clone --depth 1 https://github.com/SAP/fundamental-ngx

Made for: Codex, OpenCode.

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 fundamental-ngx AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sap/fundamental-ngx/agents-md.svg)](https://agentmods.dev/instructions/sap/fundamental-ngx/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sap/fundamental-ngx/agents-md"><img src="https://agentmods.dev/badge/instructions/sap/fundamental-ngx/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,066 This file is loaded in full into every session.
When invoked 3,066 The same file — it is already loaded in full.
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.03066 $0.03066
Opus 5 $0.01533 $0.01533
Sonnet 5 $0.00613 $0.00613
Haiku 4.5 $0.00307 $0.00307

Measured 5d ago against content hash 96106567a87c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fundamental-ngx AGENTS.md 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 5d 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.

AGENTS.md · 364 lines

How it starts

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

Angular 22+ Development Guidelines

Table of Contents

  1. Persona
  2. Quick Reference
  3. Quick Decision Guide
  4. Common Mistakes to Avoid
  5. Development Workflow
  6. Component Structure
  7. Commit & PR Guidelines
  8. Detailed Documentation

Persona

You are a dedicated Angular, TypeScript frontend developer who thrives on leveraging the absolute latest features of the framework. You are currently immersed in Angular v21+, passionately adopting signals for reactive state management, embracing standalone components, utilizing the new control flow (@if, @for, @switch), and implementing zoneless change detection.

You are working in an NX monorepo with libraries: core, platform, cdk, btp, cx, i18n, datetime-adapter, ui5-webcomponents.

When implementing changes, you always explain and reason about your decisions.


Quick Reference

Essential Commands

# Build/Lint/Test specific library
nx run <library>:build
nx run <library>:lint
nx run <library>:test --testfile=<filename>.spec.ts

# Examples
nx run cdk:test --testfile=line-clamp.directive.spec.ts
nx run core:test --testfile=button.component.spec.ts

# Run affected only
nx affected:build
nx affected:lint
nx affected:test

Component Selector Prefix

All components use fd- prefix: fd-button, fd-dialog, fd-card

Angular Resources


Quick Decision Guide

Scenario Solution
Managing local component state Use signal()
Deriving state from signals Use computed()
Signal vs plain property Only signal() if reactive consumer exists
Deriving local mutable state from inputs Use linkedSignal()
Reacting to signal changes (side effects) Use effect()
DOM manipulation after rendering Use afterRender() / afterNextRender()
Async data fetching with signals Use resource()
Component input Use input() signal
Component output Use output() function
Two-way binding Use model() signal
Host bindings and event listeners Use host: {} in decorator
Async operations (HTTP, timers) Use RxJS Observables
BehaviorSubject for state Migrate to signal()
Querying view children/DOM elements Use viewChild() / viewChildren()
Querying projected content Use contentChild() / contentChildren()
Parent setting child defaults Use InjectionToken pattern
Setting signal input programmatically Use setter method pattern

Read the full file on GitHub · 364 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. 5d ago First seen · 364 lines · 3,066 tokens per session scan A 96106567a87c

Subscribe to this mod's changes

fundamental-ngx AGENTS.md is an instructions file published in the GitHub repository SAP/fundamental-ngx (294 stars, last pushed today), licensed Apache-2.0. It adds 3,066 tokens to every session, about $0.0153 per session on Opus 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-08-30.

Related

Other instructions, from other repositories

primitives angular.instructions.md

Instructions for radix-ng/primitives, covering typescript best practices, angular best practices, components, state management and templates.

radix-ng/primitives · 492 tokens

ng-blatui AGENTS.md

AGENTS.md instructions for anousss007/ng-blatui, covering ng-blatui — agent guide, use the official angular tooling, hard rules (this repo), commands and after changing a component's public api.

anousss007/ng-blatui · 768 tokens

igniteui-angular AGENTS.md

AGENTS.md instructions for IgniteUI/igniteui-angular, covering agents.md — ignite ui for angular, project overview, repository structure, coding conventions and working rules.

IgniteUI/igniteui-angular · 2,419 tokens

igniteui-angular copilot-instructions.md

Copilot instructions for IgniteUI/igniteui-angular, covering persona, examples, resources, best practices & style guide and coding style guide.

IgniteUI/igniteui-angular · 1,547 tokens

openbridge-webcomponents AGENTS.md

AGENTS.md instructions for Ocean-Industries-Concept-Lab/openbridge-webcomponents, covering agents.md — universal ai agent instructions, 1. repository overview, source directory layout, 2. coding standards and comments.

Ocean-Industries-Concept-Lab/openbridge-webcomponents · 6,976 tokens

webcomponents-react CLAUDE.md

Claude Code instructions for UI5/webcomponents-react, covering claude.md, critical: working with web components, event handling (must know), controlled components (must know) and ref handling (must know).

UI5/webcomponents-react · 3,139 tokens