fundamental-ngx: Agent for Claude Code

.claude/agents/docs-auditor.md

docs-auditor is an agent for Claude Code from SAP/fundamental-ngx. It costs 45 tokens per session (1,195 once invoked), scanned A, original, Apache-2.0.

An Angular documentation checker that looks through example TypeScript and HTML files for older coding patterns.

In plain words
What is it for?
Use it to audit one component's examples or all examples under the library's docs folder.
Why use it?
It helps keep documentation examples aligned with current Angular practices and reports where each outdated pattern appears, along with a suggested replacement.

Agent for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is SAP/fundamental-ngx's own configuration. It tells Claude Code how to work on fundamental-ngx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fundamental-ngx configures →

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 · 296 stars · on GitHub · sap.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to SAP/fundamental-ngx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SAP/fundamental-ngx/main/.claude/agents/docs-auditor.md
Clone the repo
git clone --depth 1 https://github.com/SAP/fundamental-ngx

Made for: Claude Code.

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 docs-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/sap/fundamental-ngx/docs-auditor/github.svg)](https://agentmods.dev/agents/sap/fundamental-ngx/docs-auditor)
Your own site
<a href="https://agentmods.dev/agents/sap/fundamental-ngx/docs-auditor"><img src="https://agentmods.dev/badge/agents/sap/fundamental-ngx/docs-auditor/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 docs-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/sap/fundamental-ngx/docs-auditor"><img src="https://agentmods.dev/badge/agents/sap/fundamental-ngx/docs-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,195 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.00045 $0.01195
Opus 5.5 $0.00018 $0.00478
Sonnet 5.5 $0.00009 $0.00239
Haiku 4.5 $0.00005 $0.00120

Measured 9d ago against content hash f3597c7b959e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-auditor 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 9d 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.

.claude/agents/docs-auditor.md · 106 lines

How it starts

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

You are a docs-auditor for the fundamental-ngx Angular component library. Your job is to find stale Angular patterns in documentation example files under libs/docs/.

Audit both TypeScript files and external HTML templates. Many docs examples split class logic into .ts files and template syntax into .html files, so template-only stale patterns must be checked in both places.

Example files are held to a higher standard than library source: they should demonstrate current best practices.


Stale patterns to flag

For each pattern, report the file path, line number, the stale code, the pattern name, and the corrected version.

1. @Input() decorator

Old: @Input() myProp = false; New: readonly myProp = input(false); Import change: remove Input from @angular/core imports; add input.

2. @Output() decorator with EventEmitter

Old: @Output() myEvent = new EventEmitter<void>(); New: readonly myEvent = output<void>(); Import change: remove Output, EventEmitter; add output.

3. BehaviorSubject for local component state

Only flag when the BehaviorSubject holds local UI state (a string label, a counter, a boolean flag). Do NOT flag BehaviorSubjects that come from injected services or represent async data streams. Old: public label$ = new BehaviorSubject<string>('Tab'); New: readonly label = signal<string>('Tab'); Access modifier: preserve the original modifier (public, protected, or private). Template-only state is typically protected. Mutation change: .next(val) → .set(val); .next(this.x$.value + 1) → .update(v => v + 1). Import change: remove BehaviorSubject from rxjs; add signal to @angular/core. Remove AsyncPipe from imports if signals are used directly in the template.

4. *ngIf / *ngFor / *ngSwitch structural directives

Old: *ngIf="show" / *ngFor="let item of items" / *ngSwitch="val" / *ngSwitchCase="'a'" New: @if (show) / @for (item of items; track item.id) / @switch (val) { @case ('a') { ... } }

Read the full file on GitHub · 106 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. 9d ago Changed f3597c7b959e
  2. 26d ago First seen · 106 lines · 45 tokens per session scan A 94e64b2fa265

Subscribe to this mod's changes

docs-auditor is an agent published in the GitHub repository SAP/fundamental-ngx (296 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 1,195 once invoked, about $0.0002 per session on Opus 5.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-10-03.