architecting-angular-components SKILL.md skillA

architecting-angular-components from mezzanine-ui/mezzanine is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mezzanine-ui/mezzanine/architecting-angular-components@git:20260420.dfeb533

Pins git:20260420.dfeb533 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mezzanine-ui/mezzanine
Path
.claude/skills/architecting-angular-components/SKILL.md
Versions recorded
3
Latest version
git:20260420.dfeb533, committed Apr 20, 2026
First version recorded
Apr 19, 2026
Size
9,459 bytes
Repository stars
25
License
MIT

Angular 元件必須 prop-for-prop 鏡像 React 對應元件的 props 的強制規範。Use when creating or refactoring Angular components in mezzanine packages/ng/, adding input() to picker/text-field/dropdown/calendar family, deciding which React props to expose, porting React xxxProps to Angular signal inputs, designing component inputs, adding sub-component configuration, encountering questions about flat vs bundle props. Covers the "mirror React prop shape" rule, flat + bundle coexistence pattern with…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Architecting Angular Components

> **強制規範** — 任何在 `packages/ng/` 下新建或重構的元件必須遵守此規則。本檔案為權威來源。

## 核心規則

**Angular 元件的 input/output 必須 prop-for-prop 鏡像 React 對應元件的 props。**

> **「React 有 flat 的就 flat、React 有 bundle 的就 bundle、兩者共存時 Angular 也共存。Angular 不自己發明抽象。」**

## React 實際上是 hybrid 模式

打開任何 React 元件的 props interface 你會看到:

```ts
// React DateTimePickerProps
export interface DateTimePickerProps
  extends Omit<DatePickerCalendarProps, 'anchor' | 'onChange' | 'open' | 'referenceDate' | 'value'>,
    Omit<TimePickerPanelProps, ...>,
    Omit<PickerTriggerWithSeparatorProps, ...> {
  // flat props(透過 extends + Pick<> 鏈繼承上來):
  // disabledMonthSwitch, isDateDisabled, displayMonthLocale,
  // placeholderLeft, errorMessagesLeft, validateLeft, ...

  // bundle props(escape hatch):
  calendarProps?: Omit<CalendarProps, ...>;
  inputLeftProps?: Omit<...>;
  inputRightProps?: Omit<...>;
  popperProps?: Omit<...>;
  popperPropsTime?: ...;
  fadeProps?: ...;

  // 自己的 direct props:
  defaultValue?, formatDate?, formatTime?, value?, onChange?, ...
}
```

**常用設定用 flat,escape hatch 用 bundle**。兩套設計併存,使用者可選擇任一種寫法。Angular 必須同時提供兩套。

## Angular 對應做法

```ts
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mezzanine-ui/mezzanine/architecting-angular-components@sha256:a4a81e3d7c3061c3

The line at the top of this page pins the label git:20260420.dfeb533, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q245zsptqyiohtad.svg)](https://markdownregistry.com/a/art_q245zsptqyiohtad)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Apr 19, 2026 and Apr 20, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260420.dfeb533 latest2026-04-20 dfeb533 9,459 BA view · diff
git:20260420.52795962026-04-20 5279596 9,525 BA view · diff
git:20260419.e6836d62026-04-19 e6836d6 9,690 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9459 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mezzanine-ui/mezzanine · 25 stars · license MIT · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_q245zsptqyiohtad
GET https://markdownregistry.com/api/v1/resolve?ref=mezzanine-ui/mezzanine/architecting-angular-components
GET https://markdownregistry.com/api/v1/blob/a4a81e3d7c3061c361d5b832641fec52ed6fe7e37d93dfcdfbe1c74a6d831383

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mezzanine-ui/mezzanine

architecting-vue-components SKILL.md skill
mezzanine-ui/mezzanine · .claude/skills/architecting-vue-components/SKILL.md · Mandatory rules for the Vue 3 port of Mezzanine UI. Use when creating or refactoring anything under packages/vue/…
git:20260903.88a12f0 · audit B · 25 stars
AGENTS.md AGENTS.md file
mezzanine-ui/mezzanine · AGENTS.md
git:20251030.b9b191d · audit A · 25 stars
CLAUDE.md CLAUDE.md file
mezzanine-ui/mezzanine · CLAUDE.md
git:20261020.754153a · audit A · 25 stars
llms.txt@packages/core llms.txt file
mezzanine-ui/mezzanine · packages/core/llms.txt
git:20260402.88c28ff · audit A · 25 stars
llms.txt@packages/icons llms.txt file
mezzanine-ui/mezzanine · packages/icons/llms.txt
git:20260318.ad90cef · audit A · 25 stars
llms.txt@packages/react llms.txt file
mezzanine-ui/mezzanine · packages/react/llms.txt
git:20260402.88c28ff · audit A · 25 stars
llms.txt@packages/system llms.txt file
mezzanine-ui/mezzanine · packages/system/llms.txt
git:20260402.88c28ff · audit A · 25 stars

Every file in mezzanine-ui/mezzanine

Browse by kind, by grade A, or by owner.