[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NAMR0BQ8T6HDH83TTXPVG":3,"skill-same:01M75NAMR0BQ8T6HDH83TTXPVG":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75NAMR0BQ8T6HDH83TTXPVG","house-style",null,"The house frontend conventions for this repo, layered on top of the SpartanNG docs. Read before writing or editing any template or component stylesheet. Covers the layout grammar (grid for regions, flex for inline runs, no nested flex faking a grid) and the no-raw-literals rule for hand-written CSS. These extend the spartan docs where spartan is silent; they never contradict them.","satish-krishna\u002Fkata","satish-krishna","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26695756?v=4","01M75N910J6TF3ZF2K71GYGEV6","SatishKrishna Pilla","01M75N91142BHTH4G6E6ZXCM9F",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhouse-style\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: house-style\ndescription: The house frontend conventions for this repo, layered on top of the SpartanNG docs. Read before writing or editing any template or component stylesheet. Covers the layout grammar (grid for regions, flex for inline runs, no nested flex faking a grid) and the no-raw-literals rule for hand-written CSS. These extend the spartan docs where spartan is silent; they never contradict them.\n---\n\n# House frontend conventions\n\nThese are this repo's conventions, layered on top of the SpartanNG docs (the `spartan` skill). They extend the spartan docs where spartan is silent; they never contradict them. Where spartan already has a rule (semantic colors, `class` is for layout only, `gap-*` not `space-*`, `size-*` for equal dimensions), follow the spartan skill; this file adds only what spartan does not cover.\n\n## The sealed control vocabulary\n\nHelm primitives are copied into `libs\u002Fui`, so the set of primitives this repo owns is exactly what that directory ships. Where a primitive covers a native element, use the primitive. Reaching for the bare native element is the drift this rule exists to stop, and it is the one convention worth reading before writing any template.\n\nMost primitives are directives you put on the native element, so the markup stays native and accessible and only picks up the Helm styling and behavior. A few have no directive twin and replace the native element outright.\n\nNative elements that must carry their primitive directive (any one of the listed attributes satisfies the rule):\n\n| native element | primitive attribute |\n| --- | --- |\n| `\u003Cbutton>` | `hlmBtn`, or a Helm button directive that already implies it (`hlmDialogTrigger`, `hlmDialogTriggerFor`, `hlmDialogClose`, `hlmSheetTrigger`, `hlmSheetClose`, `hlmSidebarTrigger`, `hlmSidebarRail`, `hlmSidebarMenuButton`, `hlmSidebarMenuSubButton`, `hlmSidebarMenuAction`, `hlmSidebarGroupAction`, `hlmSidebarGroupLabel`) |\n| `\u003Cinput>` | `hlmInput`, or `hlmSidebarInput` |\n| `\u003Ctextarea>` | `hlmTextarea` |\n| `\u003Clabel>` | `hlmLabel`, or `hlmFieldLabel` |\n| `\u003Cfieldset>` | `hlmFieldSet` |\n| `\u003Clegend>` | `hlmFieldLegend` |\n| `\u003Ctable>` | `hlmTable` |\n| `\u003Cthead>` | `hlmTableHeader`, or `hlmTHead` |\n| `\u003Ctbody>` | `hlmTableBody`, or `hlmTBody` |\n| `\u003Ctfoot>` | `hlmTableFooter`, or `hlmTFoot` |\n| `\u003Ctr>` | `hlmTableRow`, or `hlmTr` |\n| `\u003Cth>` | `hlmTableHead`, or `hlmTh` |\n| `\u003Ctd>` | `hlmTableCell`, or `hlmTd` |\n| `\u003Ccaption>` | `hlmTableCaption`, or `hlmCaption` |\n\nNative elements with no directive twin, which must be replaced by the primitive component instead:\n\n| native element | replace with |\n| --- | --- |\n| `\u003Cselect>` | `\u003Chlm-select>` and its parts (`hlm-select-trigger`, `hlm-select-content`, `hlm-select-item`) |\n| `\u003Cdialog>` | `\u003Chlm-dialog>` and its parts (`hlm-dialog-content`, `hlmDialogTitle`, `hlm-dialog-footer`) |\n\nA native `\u003Cselect>` is banned outright rather than given a directive, because the sanctioned select in this repo is the composed `hlm-select`. The `native-select` primitive is not installed, so there is no supported way to style a bare `\u003Cselect>` here.\n\nAn `\u003Ca>` is not in the table: a plain anchor is a real navigation element, and `hlmBtn` on an anchor is opt-in.\n\nGood:\n\n```html\n\u003Ctable hlmTable>\n  \u003Cthead hlmTHead>\n    \u003Ctr hlmTr>\u003Cth hlmTh>Hero\u003C\u002Fth>\u003Cth hlmTh>Power\u003C\u002Fth>\u003C\u002Ftr>\n  \u003C\u002Fthead>\n  \u003Ctbody hlmTBody>\n    \u003Ctr hlmTr>\u003Ctd hlmTd>Silverwing\u003C\u002Ftd>\u003Ctd hlmTd>88\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n\u003Chlm-field>\n  \u003Clabel hlmFieldLabel for=\"alias\">Alias\u003C\u002Flabel>\n  \u003Cinput hlmInput id=\"alias\" \u002F>\n\u003C\u002Fhlm-field>\n```\n\nBad:\n\n```html\n\u003C!-- native elements where a primitive exists -->\n\u003Ctable>\n  \u003Ctr>\u003Ctd>Silverwing\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftable>\n\u003Clabel for=\"alias\">Alias\u003C\u002Flabel>\n\u003Cselect>\u003Coption>Aerial\u003C\u002Foption>\u003C\u002Fselect>\n```\n\n## Icons are `\u003Cng-icon>`, never inline SVG\n\nIcons come from `@ng-icons` with the Lucide set, exactly as the spartan icons doc describes: import the icon symbol, register it on the component with `provideIcons`, and render it as `\u003Cng-icon>`.\n\nA raw inline `\u003Csvg>` in a template is the drift this rule stops. Pasted SVG markup bypasses the icon registry, cannot be swapped or themed, duplicates a glyph the set already ships, and is the single largest source of unreviewable markup in a hand-built screen. There is no `hlm-icon` wrapper; `\u003Cng-icon>` is the element.\n\nGood:\n\n```ts\nimport { NgIcon, provideIcons } from '@ng-icons\u002Fcore';\nimport { lucideTrash2 } from '@ng-icons\u002Flucide';\n\n@Component({\n  imports: [NgIcon],\n  providers: [provideIcons({ lucideTrash2 })],\n  templateUrl: '.\u002Fretire-button.html', \u002F\u002F \u003Cbutton hlmBtn size=\"icon\" variant=\"ghost\">\u003Cng-icon name=\"lucideTrash2\" \u002F>\u003C\u002Fbutton>\n})\nexport class RetireButton {}\n```\n\nBad:\n\n```html\n\u003Cbutton hlmBtn size=\"icon\">\u003Csvg viewBox=\"0 0 24 24\">\u003Cpath d=\"M3 6h18\" \u002F>\u003C\u002Fsvg>\u003C\u002Fbutton>\n```\n\nRegistering the icon is not optional, but it is also not something a template check can see: `@ng-icons` logs a warning for an unregistered name rather than failing the build, so an unregistered icon renders as nothing at all. Register every name you use.\n\n## The primitive must actually exist\n\nEvery Helm primitive is either an attribute directive or an element, never both, and which one it is is decided by its `selector:` in `libs\u002Fui`. Writing an attribute that looks like a primitive but matches no selector produces markup that compiles, renders, and does nothing at all.\n\nThis is the failure mode that is hardest to see by reading, because the wrong version looks more right than the right one:\n\n```html\n\u003C!-- Bad: hlm-select-trigger is an ELEMENT selector. As an attribute it binds\n     nothing, so the select never opens. -->\n\u003Cbutton hlmBtn hlmSelectTrigger>Class\u003C\u002Fbutton>\n\n\u003C!-- Bad: hlm-avatar is an ELEMENT selector too. This is a styled div. -->\n\u003Cdiv hlmAvatar>\u003Cspan hlmAvatarFallback>SW\u003C\u002Fspan>\u003C\u002Fdiv>\n\n\u003C!-- Good -->\n\u003Chlm-select-trigger>\u003Chlm-select-value \u002F>\u003C\u002Fhlm-select-trigger>\n\u003Chlm-avatar>\u003Cspan hlmAvatarFallback>SW\u003C\u002Fspan>\u003C\u002Fhlm-avatar>\n```\n\nIf you are unsure whether a primitive is an attribute or an element, read its `selector:` line in `libs\u002Fui`. Do not infer it from the shape of a neighbouring primitive; the library mixes both freely, and `hlm-select-trigger` sits beside `hlmSelectValue` which really is an attribute.\n\n## Compose the primitive fully, not just its outer shell\n\nA primitive that is present but missing its required parts is a different defect from a primitive that is absent, and the docs call several of these out by name.\n\n- **An overlay needs a title.** spartan's `composition.md`: \"Dialog, Sheet, and Alert Dialog must have a title for accessibility. If the design hides it, keep it present and apply `class=\"sr-only\"`.\" A bare `\u003Ch2>` inside `hlm-dialog-content` is not a title; `hlmDialogTitle` is what wires the accessible name.\n- **A form control belongs in a field.** spartan's `forms.md`: \"Use `hlmField`, not raw `div`s. Wrap each control in `hlmField`.\" A `\u003Cdiv class=\"flex flex-col gap-2\">` around a label and an input is the hand-rolled version of a primitive that already exists.\n\n## Icons: register them, and use the standalone import\n\nTwo rules, both of which fail silently rather than loudly, which is why they are stated separately from the no-inline-SVG rule.\n\n- **Import `NgIcon`, never `NgIconsModule`.** `NgIconsModule` is the legacy module API. Placing it in a standalone component's `imports` throws at bootstrap (\"No icons have been provided...\") and takes the whole application down with a blank page, while compiling perfectly.\n- **Register with `provideIcons`, and only `provideIcons`.** Importing a `lucide*` symbol and then handing it to anything else, a custom injection token or a plain object, registers nothing. `@ng-icons` logs a warning and renders empty, so the screen simply has no icons and the build is green.\n\n```ts\n\u002F\u002F Good\nimport { NgIcon, provideIcons } from '@ng-icons\u002Fcore';\nimport { lucideUsers } from '@ng-icons\u002Flucide';\n@Component({ imports: [NgIcon], providers: [provideIcons({ lucideUsers })], \u002F* ... *\u002F })\n\n\u002F\u002F Bad: the legacy module (throws at bootstrap), and a hand-rolled registration\n\u002F\u002F (silently registers nothing)\n@Component({\n  imports: [NgIconsModule],\n  providers: [{ provide: 'ICONS', useValue: { lucideUsers } }],\n})\n```\n\n## Submitting a form\n\nThe house forms pattern has exactly one submit path: `submit(this.form, async () => { ... })` from `@angular\u002Fforms\u002Fsignals`.\n\n`(ngSubmit)` is not part of it. That output is supplied by `NgForm` and `FormGroupDirective`, which come from `FormsModule` and `ReactiveFormsModule`, and this repo uses neither. On a `\u003Cform>` with no forms module imported, `(ngSubmit)` is not an error and not a warning: Angular treats it as a DOM listener for an event named `ngSubmit`, which nothing ever fires. The button is dead and the page looks fine.\n\n```html\n\u003C!-- Bad: nothing will ever call onSubmit() -->\n\u003Cform (ngSubmit)=\"onSubmit()\">\n\n\u003C!-- Good: the submit path is wired in the class, through the form -->\n\u003Cbutton hlmBtn type=\"submit\">Save\u003C\u002Fbutton>\n```\n\n```ts\nprotected readonly save = () => submit(this.form, async (f) => { \u002F* ... *\u002F });\n```\n\n## Do not set `standalone`\n\n`CLAUDE.md` already says it: \"Must NOT set `standalone: true` inside Angular decorators. It's the default in Angular v20+.\" It is repeated here because it is the single most frequently written violation in this repo's measured runs, and because a redundant `standalone: true` reads as diligence rather than as drift.\n\n## Layout is a grammar\n\nLayout is expressed with a small, fixed vocabulary, so that a screen's structure is decidable rather than a matter of taste.\n\n- **Grid for regions.** A two-dimensional arrangement (a dashboard of cards, a page split into named areas, anything laid out in both rows and columns) uses CSS grid: `grid`, `grid-cols-*`, `grid-rows-*`, `gap-*`. Reach for grid whenever you are placing blocks in two dimensions.\n- **Flex for inline runs.** `flex` is for a single-axis run of items: a row of buttons, an icon next to a label, a toolbar. One direction, one line of thought.\n- **Do not nest flex to fake a grid.** A row of flex columns, each itself a flex stack, arranged to line up into a grid, is the anti-pattern. If the result reads as a grid, use grid. Nesting flex containers to approximate two-dimensional layout is not allowed.\n\nGood:\n\n```html\n\u003C!-- a two-dimensional card dashboard: grid -->\n\u003Cdiv class=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n  \u003Csection hlmCard>...\u003C\u002Fsection>\n  \u003Csection hlmCard>...\u003C\u002Fsection>\n\u003C\u002Fdiv>\n\n\u003C!-- a single inline run: flex -->\n\u003Cdiv class=\"flex items-center gap-2\">\n  \u003Cbutton hlmBtn variant=\"ghost\">Cancel\u003C\u002Fbutton>\n  \u003Cbutton hlmBtn>Save\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n```\n\nBad:\n\n```html\n\u003C!-- nested flex faking a grid: use grid instead -->\n\u003Cdiv class=\"flex flex-wrap\">\n  \u003Cdiv class=\"flex flex-col\">...\u003C\u002Fdiv>\n  \u003Cdiv class=\"flex flex-col\">...\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n## No raw literals in hand-written CSS\n\nPrefer Tailwind utilities and the spartan primitives over hand-written component stylesheets. When you do write a component stylesheet (always a `styleUrl` file; inline `styles:` is banned by `shape\u002Fno-inline-template`), every color and length is a design token, never a raw literal:\n\n- Colors come from the semantic token variables (`var(--primary)`, `var(--border)`, `var(--card)`), never a raw hex, `rgb()`, or `hsl()`.\n- Lengths come from a token or the spacing scale, never a raw `px` value.\n\nGood:\n\n```css\n.panel {\n  background: var(--card);\n  border: 1px solid var(--border);\n  padding: var(--spacing-4);\n  border-radius: var(--radius);\n}\n```\n\nBad:\n\n```css\n.panel {\n  background: #3b82f6;\n  padding: 16px;\n}\n```\n\nThis rule is about hand-written CSS, where spartan is silent because it assumes you use Tailwind utilities. It does NOT restrict spartan's own idiomatic Tailwind arbitrary values in templates (for example a one-off `sm:max-w-[425px]` on a dialog), which the spartan docs use and bless. In templates, follow the spartan color rule (semantic tokens, never a raw palette value like `bg-blue-500`); this file governs the stylesheet you write by hand.\n\n## Component shape: containers and presentational components\n\nAngular's `CLAUDE.md` says to keep components small and single-responsibility; it does not say how to split them. This repo does, so the split is decidable rather than a matter of taste.\n\n- **Container (smart) components** are the routed feature components. They own the screen's state and pass it down to the presentational components they compose. They live in their feature folder (`src\u002Fapp\u002Fheroes`, `src\u002Fapp\u002Fdashboard`). They own that state through a ViewModel rather than holding it in the component class: the MVVM section below refines this rule and is the one that binds.\n- **Presentational (dumb) components** live under `src\u002Fapp\u002Fui\u002F`. They receive state through `input()`, emit through `output()`, and use `model()` for two-way binding. They inject no application data service: a presentational component that reaches for `HttpClient` or a feature `*Service` is doing a container's job and belongs in a feature folder instead. Injecting a pure framework or UI helper (`ElementRef`, `DestroyRef`, a spartan service) is fine; injecting data is not.\n\nGood:\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fui\u002Fhero-card.ts: presentational, no data service\n@Component({ selector: 'app-hero-card', \u002F* ... *\u002F })\nexport class HeroCard {\n  readonly hero = input.required\u003CHero>();\n  readonly selected = output\u003CHero>();\n}\n```\n\nBad:\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fui\u002Fhero-card.ts: a presentational component injecting a data service\n@Component({ selector: 'app-hero-card', \u002F* ... *\u002F })\nexport class HeroCard {\n  private readonly heroes = inject(HeroService); \u002F\u002F belongs in a container\n  readonly hero = input.required\u003CHero>();\n}\n```\n\nTwo shape rules follow from the Angular baseline and are stated here so they are one place to read:\n\n- **Do not hand-set change detection.** `OnPush` is the Angular v22 default, and `CLAUDE.md` says not to set `changeDetection` explicitly. So writing `changeDetection: ChangeDetectionStrategy.OnPush` (or `.Default`) in a `@Component` is drift, not diligence. Leave it off.\n- **No `.subscribe` in a component or its ViewModel.** `CLAUDE.md` says to handle observables with the async pipe. A component that calls `.subscribe(...)` on an observable is managing a subscription by hand where the template could do it. Convert at the edge and bind with the async pipe (or `toSignal`). This covers the ViewModel too: it is defined as a class that is unit-testable with zero DOM, which is exactly the argument against hand-managed subscriptions, so moving a `.subscribe` from the component into its ViewModel does not fix it.\n\n## MVVM: the ViewModel owns the state\n\nThe container\u002Fpresentational split above says which component holds the state. This section says where inside the container that state actually lives, and the answer is: not in the component. Every routed feature screen has a ViewModel, and the component is a thin shell over it.\n\nThis is a deliberate refinement of the rule above, not a contradiction of it. Read the two together as: a container owns the state, and it owns it *through its ViewModel*. Presentational components are unchanged.\n\n- **The ViewModel is a service.** An `@Injectable` class named `\u003CFeature>ViewModel`, holding all of the screen's logic and state as signals. It injects the data services. It has no `providedIn`, so it is not a singleton.\n- **The ViewModel is component-scoped.** The component lists it in its own `providers: [HeroDetailViewModel]`. Component-scoped, so each instance of the screen gets its own state and it dies with the screen. A `providedIn: 'root'` ViewModel is a store wearing a ViewModel's name, and it is a defect here.\n- **The component is a shell.** It injects the ViewModel and binds the template to its signals. It declares no `signal()`, `computed()`, `linkedSignal()`, or `form()` of its own, and it injects no data service: everything a container used to do directly, it now does through the ViewModel. A signal-form is state, and the largest piece of state on most screens, so it is built in the ViewModel like any other.\n- **The ViewModel is unit-testable with zero DOM.** That is the point of the whole shape. If testing a screen's logic needs `TestBed` and a fixture, the logic is in the wrong class.\n\n`input()`, `output()`, `model()`, `viewChild()`, and `contentChild()` are component API, not state, and stay on the component. Injecting `ActivatedRoute` or `Router` in the component is fine; injecting `HeroService` is not.\n\nThis applies to every component outside `src\u002Fapp\u002Fui\u002F`, not only the routed screens. A shell, a layout, or a small non-presentational helper is judged the same way: if it is not a presentational component under `ui\u002F`, its state belongs in a ViewModel. That is wider than \"every routed feature screen has a ViewModel\" on purpose. The narrower reading is not decidable, since nothing in a component file says whether it is routed, and a rule that cannot be decided cannot be enforced without guessing. It is also the right answer on the merits: the app shell holding the theme state in its own class is the same testability problem as a screen holding its filter state, and it has the same fix. If a component outside `ui\u002F` has state worth holding, give it a ViewModel; if it has no state at all, nothing here applies to it.\n\nGood:\n\n```ts\n\u002F\u002F hero-detail.view-model.ts: all the state and logic, no DOM, no providedIn\n@Injectable()\nexport class HeroDetailViewModel {\n  private readonly heroes = inject(HeroService);\n  readonly heroId = signal\u003Cnumber | null>(null);\n  readonly hero = computed(() => this.heroes.byId(this.heroId()));\n  readonly canDeploy = computed(() => this.hero()?.status === 'Active');\n  rename(name: string) { \u002F* ... *\u002F }\n}\n```\n\n```ts\n\u002F\u002F hero-detail.ts: a shell that provides, injects, and binds\n@Component({\n  selector: 'app-hero-detail',\n  providers: [HeroDetailViewModel],\n  imports: [HlmCardImports],\n  templateUrl: '.\u002Fhero-detail.html', \u002F\u002F \u003Ch1>{{ vm.hero()?.name }}\u003C\u002Fh1>\n})\nexport class HeroDetail {\n  protected readonly vm = inject(HeroDetailViewModel);\n}\n```\n\nBad:\n\n```ts\n\u002F\u002F state in the component class, and the data service injected past the ViewModel\n@Component({ selector: 'app-hero-detail', templateUrl: '.\u002Fhero-detail.html' })\nexport class HeroDetail {\n  private readonly heroes = inject(HeroService);   \u002F\u002F belongs in the ViewModel\n  readonly hero = signal\u003CHero | null>(null);       \u002F\u002F belongs in the ViewModel\n}\n```\n\n```ts\n\u002F\u002F a ViewModel that is really a singleton store\n@Injectable({ providedIn: 'root' })                 \u002F\u002F must be component-scoped\nexport class HeroDetailViewModel {}\n```\n\n```ts\n\u002F\u002F a ViewModel injected but never provided: this is a runtime NullInjectorError,\n\u002F\u002F and nothing in the build catches it for you\n@Component({ selector: 'app-roster', templateUrl: '.\u002Froster.html' })  \u002F\u002F no providers: [RosterViewModel]\nexport class Roster {\n  protected readonly vm = inject(RosterViewModel);\n}\n```\n\n## Forms: schema-driven with zod\n\nForms in this repo are schema-driven. A zod schema is the single source of truth for a form's shape, its validation, and its field labels; the form component reads from the schema and never restates what the schema already says.\n\n- **The model type is `z.infer\u003Ctypeof schema>`.** Never hand-write a form-model interface; infer it from the schema so the shape lives in one place.\n- **Validation flows through the schema.** Build the form with Angular signal-forms and validate the whole form through zod: `form(model, (path) => validateStandardSchema(path, schema))`. zod 4 is a Standard Schema, so Angular validates it natively. Do NOT restate a rule as a per-field signal-forms validator (`required`, `minLength`, `maxLength`, `min`, `max`, `email`, `pattern`): the schema already owns those. `validateStandardSchema` is the one blessed validator; `validateHttp` and `validateAsync` stay available for server-side checks a schema cannot express.\n- **Labels ride on the schema** via each field's `.meta()`, read with `formMeta(schema)` from `src\u002Fapp\u002Fforms\u002Fzod-meta.ts`. Do not hard-code a label the schema already carries.\n- **Controls are spartan helm.** Wrap each control in `hlm-field`, bind with `[formField]=\"form.name\"`, and show errors from `form.name().errors()`. Submit valid data with `submit(this.form, async () => { ... })`.\n- **No template-driven forms, and no reactive forms.** Do not use `ngModel`, `FormsModule`, or the template-driven directives. Reactive forms (`FormGroup`, `FormControl`, `FormBuilder`, `ReactiveFormsModule`) are not used here either. Angular's own guidance offers reactive forms as the fallback when signal-forms do not fit; this repo overrides that fallback. A form's schema is always known here, so every form is authored with signal-forms and a zod schema, and reaching for reactive forms is a defect, not a permitted fallback.\n\nThe schema lives beside the form as `\u003Cfeature>.schema.ts`, exporting the schema and `export type XModel = z.infer\u003Ctypeof schema>`.\n\nGood:\n\n```ts\n\u002F\u002F hero.schema.ts\nexport const heroSchema = z.object({\n  name: z.string().min(1).meta({ label: 'Name', control: 'text' } satisfies FormFieldMeta),\n});\nexport type HeroModel = z.infer\u003Ctypeof heroSchema>;\n```\n\n```ts\n\u002F\u002F hero-form.ts (no explicit changeDetection: OnPush is the v22 default)\nprotected readonly model = signal\u003CHeroModel>({ name: '' });\nprotected readonly form = form(this.model, (path) => validateStandardSchema(path, heroSchema));\nprotected readonly meta = formMeta(heroSchema);\n```\n\nBad:\n\n```ts\n\u002F\u002F a hand-written model, and a rule the schema already states\ninterface HeroModel { name: string; }             \u002F\u002F should be z.infer\u003Ctypeof heroSchema>\nreadonly form = form(this.model, (path) => {\n  required(path.name);                             \u002F\u002F the schema already requires it\n});\n```\n\n```html\n\u003C!-- template-driven: not used in this repo -->\n\u003Cinput [(ngModel)]=\"hero.name\" name=\"name\" \u002F>\n```\n\n## Responsive correctness\n\nA screen must render without responsive failure at three viewport widths, height fixed at 900px: 375px (a small phone), 768px (a tablet), and 1280px (a laptop). Responsive failure is defined in rendered pixels, so it is decidable rather than a matter of taste. A screen fails when, at any of the three widths, any of these is true (all comparisons carry a 1px tolerance for sub-pixel rounding):\n\n- **The page scrolls horizontally.** The document is wider than the viewport. Content must reflow to the width, never force a sideways scrollbar on the whole page.\n- **An element escapes the viewport.** An element's right edge is past the viewport width, or its left edge is below zero, and nothing intentionally scrollable contains it. An element sitting inside a container you deliberately made scrollable (`overflow: auto` or `overflow: scroll`) is exempt; a wide element under an `overflow: hidden` ancestor is not, because its content is cut off with no way to reach it. An element that is not being shown to the user at all is also exempt: if it, or any ancestor, is `display: none`, `visibility: hidden`, or `aria-hidden=\"true\"`, there is nothing on screen to escape. That exemption is what makes a closed off-canvas navigation drawer legal, and it is exactly why a closed drawer must really be hidden rather than merely parked off-screen with a transform. A drawer translated out of view is still rendered, still focusable, and still counts as an escape.\n- **An element clips its own content.** An element with `overflow: hidden` or `overflow: clip` holds content larger than its box, so text or controls are truncated. Again, `overflow: auto`\u002F`scroll` is exempt: a scroll container is a design choice, not a defect. The not-being-shown exemption applies here too, for the same reason: content clipped inside something the user cannot see is not a visible defect. An element whose rendered box is at most 1x1 CSS pixel in both dimensions is likewise exempt: that is the screen-reader-only pattern, which works precisely by collapsing a box and clipping its text, and a responsive rule must never push back against labeling an icon-only control for assistive technology.\n\nBuild the screen so a narrow width stacks rather than overflows: prefer the layout grammar's responsive grid (`grid-cols-1 sm:grid-cols-2`), let button rows wrap (`flex-wrap`), and avoid fixed pixel widths on inputs and cards that cannot shrink. The detail card, the form field, and the Save\u002FCancel button row must all fit and remain reachable at 375px.\n\n## Why these are written down\n\nThe whole point of this repo is that a written convention is not a guardrail: the model reads good docs and drifts anyway. These conventions exist so the drift has something concrete to be measured and gated against. They are here to be mechanized, not merely remembered.\n","# House frontend conventions\n\nThese are this repo's conventions, layered on top of the SpartanNG docs (the `spartan` skill). They extend the spartan docs where spartan is silent; they never contradict them. Where spartan already has a rule (semantic colors, `class` is for layout only, `gap-*` not `space-*`, `size-*` for equal dimensions), follow the spartan skill; this file adds only what spartan does not cover.\n\n## The sealed control vocabulary\n\nHelm primitives are copied into `libs\u002Fui`, so the set of primitives this repo owns is exactly what that directory ships. Where a primitive covers a native element, use the primitive. Reaching for the bare native element is the drift this rule exists to stop, and it is the one convention worth reading before writing any template.\n\nMost primitives are directives you put on the native element, so the markup stays native and accessible and only picks up the Helm styling and behavior. A few have no directive twin and replace the native element outright.\n\nNative elements that must carry their primitive directive (any one of the listed attributes satisfies the rule):\n\n| native element | primitive attribute |\n| --- | --- |\n| `\u003Cbutton>` | `hlmBtn`, or a Helm button directive that already implies it (`hlmDialogTrigger`, `hlmDialogTriggerFor`, `hlmDialogClose`, `hlmSheetTrigger`, `hlmSheetClose`, `hlmSidebarTrigger`, `hlmSidebarRail`, `hlmSidebarMenuButton`, `hlmSidebarMenuSubButton`, `hlmSidebarMenuAction`, `hlmSidebarGroupAction`, `hlmSidebarGroupLabel`) |\n| `\u003Cinput>` | `hlmInput`, or `hlmSidebarInput` |\n| `\u003Ctextarea>` | `hlmTextarea` |\n| `\u003Clabel>` | `hlmLabel`, or `hlmFieldLabel` |\n| `\u003Cfieldset>` | `hlmFieldSet` |\n| `\u003Clegend>` | `hlmFieldLegend` |\n| `\u003Ctable>` | `hlmTable` |\n| `\u003Cthead>` | `hlmTableHeader`, or `hlmTHead` |\n| `\u003Ctbody>` | `hlmTableBody`, or `hlmTBody` |\n| `\u003Ctfoot>` | `hlmTableFooter`, or `hlmTFoot` |\n| `\u003Ctr>` | `hlmTableRow`, or `hlmTr` |\n| `\u003Cth>` | `hlmTableHead`, or `hlmTh` |\n| `\u003Ctd>` | `hlmTableCell`, or `hlmTd` |\n| `\u003Ccaption>` | `hlmTableCaption`, or `hlmCaption` |\n\nNative elements with no directive twin, which must be replaced by the primitive component instead:\n\n| native element | replace with |\n| --- | --- |\n| `\u003Cselect>` | `\u003Chlm-select>` and its parts (`hlm-select-trigger`, `hlm-select-content`, `hlm-select-item`) |\n| `\u003Cdialog>` | `\u003Chlm-dialog>` and its parts (`hlm-dialog-content`, `hlmDialogTitle`, `hlm-dialog-footer`) |\n\nA native `\u003Cselect>` is banned outright rather than given a directive, because the sanctioned select in this repo is the composed `hlm-select`. The `native-select` primitive is not installed, so there is no supported way to style a bare `\u003Cselect>` here.\n\nAn `\u003Ca>` is not in the table: a plain anchor is a real navigation element, and `hlmBtn` on an anchor is opt-in.\n\nGood:\n\n```html\n\u003Ctable hlmTable>\n  \u003Cthead hlmTHead>\n    \u003Ctr hlmTr>\u003Cth hlmTh>Hero\u003C\u002Fth>\u003Cth hlmTh>Power\u003C\u002Fth>\u003C\u002Ftr>\n  \u003C\u002Fthead>\n  \u003Ctbody hlmTBody>\n    \u003Ctr hlmTr>\u003Ctd hlmTd>Silverwing\u003C\u002Ftd>\u003Ctd hlmTd>88\u003C\u002Ftd>\u003C\u002Ftr>\n  \u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n\u003Chlm-field>\n  \u003Clabel hlmFieldLabel for=\"alias\">Alias\u003C\u002Flabel>\n  \u003Cinput hlmInput id=\"alias\" \u002F>\n\u003C\u002Fhlm-field>\n```\n\nBad:\n\n```html\n\u003C!-- native elements where a primitive exists -->\n\u003Ctable>\n  \u003Ctr>\u003Ctd>Silverwing\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftable>\n\u003Clabel for=\"alias\">Alias\u003C\u002Flabel>\n\u003Cselect>\u003Coption>Aerial\u003C\u002Foption>\u003C\u002Fselect>\n```\n\n## Icons are `\u003Cng-icon>`, never inline SVG\n\nIcons come from `@ng-icons` with the Lucide set, exactly as the spartan icons doc describes: import the icon symbol, register it on the component with `provideIcons`, and render it as `\u003Cng-icon>`.\n\nA raw inline `\u003Csvg>` in a template is the drift this rule stops. Pasted SVG markup bypasses the icon registry, cannot be swapped or themed, duplicates a glyph the set already ships, and is the single largest source of unreviewable markup in a hand-built screen. There is no `hlm-icon` wrapper; `\u003Cng-icon>` is the element.\n\nGood:\n\n```ts\nimport { NgIcon, provideIcons } from '@ng-icons\u002Fcore';\nimport { lucideTrash2 } from '@ng-icons\u002Flucide';\n\n@Component({\n  imports: [NgIcon],\n  providers: [provideIcons({ lucideTrash2 })],\n  templateUrl: '.\u002Fretire-button.html', \u002F\u002F \u003Cbutton hlmBtn size=\"icon\" variant=\"ghost\">\u003Cng-icon name=\"lucideTrash2\" \u002F>\u003C\u002Fbutton>\n})\nexport class RetireButton {}\n```\n\nBad:\n\n```html\n\u003Cbutton hlmBtn size=\"icon\">\u003Csvg viewBox=\"0 0 24 24\">\u003Cpath d=\"M3 6h18\" \u002F>\u003C\u002Fsvg>\u003C\u002Fbutton>\n```\n\nRegistering the icon is not optional, but it is also not something a template check can see: `@ng-icons` logs a warning for an unregistered name rather than failing the build, so an unregistered icon renders as nothing at all. Register every name you use.\n\n## The primitive must actually exist\n\nEvery Helm primitive is either an attribute directive or an element, never both, and which one it is is decided by its `selector:` in `libs\u002Fui`. Writing an attribute that looks like a primitive but matches no selector produces markup that compiles, renders, and does nothing at all.\n\nThis is the failure mode that is hardest to see by reading, because the wrong version looks more right than the right one:\n\n```html\n\u003C!-- Bad: hlm-select-trigger is an ELEMENT selector. As an attribute it binds\n     nothing, so the select never opens. -->\n\u003Cbutton hlmBtn hlmSelectTrigger>Class\u003C\u002Fbutton>\n\n\u003C!-- Bad: hlm-avatar is an ELEMENT selector too. This is a styled div. -->\n\u003Cdiv hlmAvatar>\u003Cspan hlmAvatarFallback>SW\u003C\u002Fspan>\u003C\u002Fdiv>\n\n\u003C!-- Good -->\n\u003Chlm-select-trigger>\u003Chlm-select-value \u002F>\u003C\u002Fhlm-select-trigger>\n\u003Chlm-avatar>\u003Cspan hlmAvatarFallback>SW\u003C\u002Fspan>\u003C\u002Fhlm-avatar>\n```\n\nIf you are unsure whether a primitive is an attribute or an element, read its `selector:` line in `libs\u002Fui`. Do not infer it from the shape of a neighbouring primitive; the library mixes both freely, and `hlm-select-trigger` sits beside `hlmSelectValue` which really is an attribute.\n\n## Compose the primitive fully, not just its outer shell\n\nA primitive that is present but missing its required parts is a different defect from a primitive that is absent, and the docs call several of these out by name.\n\n- **An overlay needs a title.** spartan's `composition.md`: \"Dialog, Sheet, and Alert Dialog must have a title for accessibility. If the design hides it, keep it present and apply `class=\"sr-only\"`.\" A bare `\u003Ch2>` inside `hlm-dialog-content` is not a title; `hlmDialogTitle` is what wires the accessible name.\n- **A form control belongs in a field.** spartan's `forms.md`: \"Use `hlmField`, not raw `div`s. Wrap each control in `hlmField`.\" A `\u003Cdiv class=\"flex flex-col gap-2\">` around a label and an input is the hand-rolled version of a primitive that already exists.\n\n## Icons: register them, and use the standalone import\n\nTwo rules, both of which fail silently rather than loudly, which is why they are stated separately from the no-inline-SVG rule.\n\n- **Import `NgIcon`, never `NgIconsModule`.** `NgIconsModule` is the legacy module API. Placing it in a standalone component's `imports` throws at bootstrap (\"No icons have been provided...\") and takes the whole application down with a blank page, while compiling perfectly.\n- **Register with `provideIcons`, and only `provideIcons`.** Importing a `lucide*` symbol and then handing it to anything else, a custom injection token or a plain object, registers nothing. `@ng-icons` logs a warning and renders empty, so the screen simply has no icons and the build is green.\n\n```ts\n\u002F\u002F Good\nimport { NgIcon, provideIcons } from '@ng-icons\u002Fcore';\nimport { lucideUsers } from '@ng-icons\u002Flucide';\n@Component({ imports: [NgIcon], providers: [provideIcons({ lucideUsers })], \u002F* ... *\u002F })\n\n\u002F\u002F Bad: the legacy module (throws at bootstrap), and a hand-rolled registration\n\u002F\u002F (silently registers nothing)\n@Component({\n  imports: [NgIconsModule],\n  providers: [{ provide: 'ICONS', useValue: { lucideUsers } }],\n})\n```\n\n## Submitting a form\n\nThe house forms pattern has exactly one submit path: `submit(this.form, async () => { ... })` from `@angular\u002Fforms\u002Fsignals`.\n\n`(ngSubmit)` is not part of it. That output is supplied by `NgForm` and `FormGroupDirective`, which come from `FormsModule` and `ReactiveFormsModule`, and this repo uses neither. On a `\u003Cform>` with no forms module imported, `(ngSubmit)` is not an error and not a warning: Angular treats it as a DOM listener for an event named `ngSubmit`, which nothing ever fires. The button is dead and the page looks fine.\n\n```html\n\u003C!-- Bad: nothing will ever call onSubmit() -->\n\u003Cform (ngSubmit)=\"onSubmit()\">\n\n\u003C!-- Good: the submit path is wired in the class, through the form -->\n\u003Cbutton hlmBtn type=\"submit\">Save\u003C\u002Fbutton>\n```\n\n```ts\nprotected readonly save = () => submit(this.form, async (f) => { \u002F* ... *\u002F });\n```\n\n## Do not set `standalone`\n\n`CLAUDE.md` already says it: \"Must NOT set `standalone: true` inside Angular decorators. It's the default in Angular v20+.\" It is repeated here because it is the single most frequently written violation in this repo's measured runs, and because a redundant `standalone: true` reads as diligence rather than as drift.\n\n## Layout is a grammar\n\nLayout is expressed with a small, fixed vocabulary, so that a screen's structure is decidable rather than a matter of taste.\n\n- **Grid for regions.** A two-dimensional arrangement (a dashboard of cards, a page split into named areas, anything laid out in both rows and columns) uses CSS grid: `grid`, `grid-cols-*`, `grid-rows-*`, `gap-*`. Reach for grid whenever you are placing blocks in two dimensions.\n- **Flex for inline runs.** `flex` is for a single-axis run of items: a row of buttons, an icon next to a label, a toolbar. One direction, one line of thought.\n- **Do not nest flex to fake a grid.** A row of flex columns, each itself a flex stack, arranged to line up into a grid, is the anti-pattern. If the result reads as a grid, use grid. Nesting flex containers to approximate two-dimensional layout is not allowed.\n\nGood:\n\n```html\n\u003C!-- a two-dimensional card dashboard: grid -->\n\u003Cdiv class=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n  \u003Csection hlmCard>...\u003C\u002Fsection>\n  \u003Csection hlmCard>...\u003C\u002Fsection>\n\u003C\u002Fdiv>\n\n\u003C!-- a single inline run: flex -->\n\u003Cdiv class=\"flex items-center gap-2\">\n  \u003Cbutton hlmBtn variant=\"ghost\">Cancel\u003C\u002Fbutton>\n  \u003Cbutton hlmBtn>Save\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n```\n\nBad:\n\n```html\n\u003C!-- nested flex faking a grid: use grid instead -->\n\u003Cdiv class=\"flex flex-wrap\">\n  \u003Cdiv class=\"flex flex-col\">...\u003C\u002Fdiv>\n  \u003Cdiv class=\"flex flex-col\">...\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n## No raw literals in hand-written CSS\n\nPrefer Tailwind utilities and the spartan primitives over hand-written component stylesheets. When you do write a component stylesheet (always a `styleUrl` file; inline `styles:` is banned by `shape\u002Fno-inline-template`), every color and length is a design token, never a raw literal:\n\n- Colors come from the semantic token variables (`var(--primary)`, `var(--border)`, `var(--card)`), never a raw hex, `rgb()`, or `hsl()`.\n- Lengths come from a token or the spacing scale, never a raw `px` value.\n\nGood:\n\n```css\n.panel {\n  background: var(--card);\n  border: 1px solid var(--border);\n  padding: var(--spacing-4);\n  border-radius: var(--radius);\n}\n```\n\nBad:\n\n```css\n.panel {\n  background: #3b82f6;\n  padding: 16px;\n}\n```\n\nThis rule is about hand-written CSS, where spartan is silent because it assumes you use Tailwind utilities. It does NOT restrict spartan's own idiomatic Tailwind arbitrary values in templates (for example a one-off `sm:max-w-[425px]` on a dialog), which the spartan docs use and bless. In templates, follow the spartan color rule (semantic tokens, never a raw palette value like `bg-blue-500`); this file governs the stylesheet you write by hand.\n\n## Component shape: containers and presentational components\n\nAngular's `CLAUDE.md` says to keep components small and single-responsibility; it does not say how to split them. This repo does, so the split is decidable rather than a matter of taste.\n\n- **Container (smart) components** are the routed feature components. They own the screen's state and pass it down to the presentational components they compose. They live in their feature folder (`src\u002Fapp\u002Fheroes`, `src\u002Fapp\u002Fdashboard`). They own that state through a ViewModel rather than holding it in the component class: the MVVM section below refines this rule and is the one that binds.\n- **Presentational (dumb) components** live under `src\u002Fapp\u002Fui\u002F`. They receive state through `input()`, emit through `output()`, and use `model()` for two-way binding. They inject no application data service: a presentational component that reaches for `HttpClient` or a feature `*Service` is doing a container's job and belongs in a feature folder instead. Injecting a pure framework or UI helper (`ElementRef`, `DestroyRef`, a spartan service) is fine; injecting data is not.\n\nGood:\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fui\u002Fhero-card.ts: presentational, no data service\n@Component({ selector: 'app-hero-card', \u002F* ... *\u002F })\nexport class HeroCard {\n  readonly hero = input.required\u003CHero>();\n  readonly selected = output\u003CHero>();\n}\n```\n\nBad:\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fui\u002Fhero-card.ts: a presentational component injecting a data service\n@Component({ selector: 'app-hero-card', \u002F* ... *\u002F })\nexport class HeroCard {\n  private readonly heroes = inject(HeroService); \u002F\u002F belongs in a container\n  readonly hero = input.required\u003CHero>();\n}\n```\n\nTwo shape rules follow from the Angular baseline and are stated here so they are one place to read:\n\n- **Do not hand-set change detection.** `OnPush` is the Angular v22 default, and `CLAUDE.md` says not to set `changeDetection` explicitly. So writing `changeDetection: ChangeDetectionStrategy.OnPush` (or `.Default`) in a `@Component` is drift, not diligence. Leave it off.\n- **No `.subscribe` in a component or its ViewModel.** `CLAUDE.md` says to handle observables with the async pipe. A component that calls `.subscribe(...)` on an observable is managing a subscription by hand where the template could do it. Convert at the edge and bind with the async pipe (or `toSignal`). This covers the ViewModel too: it is defined as a class that is unit-testable with zero DOM, which is exactly the argument against hand-managed subscriptions, so moving a `.subscribe` from the component into its ViewModel does not fix it.\n\n## MVVM: the ViewModel owns the state\n\nThe container\u002Fpresentational split above says which component holds the state. This section says where inside the container that state actually lives, and the answer is: not in the component. Every routed feature screen has a ViewModel, and the component is a thin shell over it.\n\nThis is a deliberate refinement of the rule above, not a contradiction of it. Read the two together as: a container owns the state, and it owns it *through its ViewModel*. Presentational components are unchanged.\n\n- **The ViewModel is a service.** An `@Injectable` class named `\u003CFeature>ViewModel`, holding all of the screen's logic and state as signals. It injects the data services. It has no `providedIn`, so it is not a singleton.\n- **The ViewModel is component-scoped.** The component lists it in its own `providers: [HeroDetailViewModel]`. Component-scoped, so each instance of the screen gets its own state and it dies with the screen. A `providedIn: 'root'` ViewModel is a store wearing a ViewModel's name, and it is a defect here.\n- **The component is a shell.** It injects the ViewModel and binds the template to its signals. It declares no `signal()`, `computed()`, `linkedSignal()`, or `form()` of its own, and it injects no data service: everything a container used to do directly, it now does through the ViewModel. A signal-form is state, and the largest piece of state on most screens, so it is built in the ViewModel like any other.\n- **The ViewModel is unit-testable with zero DOM.** That is the point of the whole shape. If testing a screen's logic needs `TestBed` and a fixture, the logic is in the wrong class.\n\n`input()`, `output()`, `model()`, `viewChild()`, and `contentChild()` are component API, not state, and stay on the component. Injecting `ActivatedRoute` or `Router` in the component is fine; injecting `HeroService` is not.\n\nThis applies to every component outside `src\u002Fapp\u002Fui\u002F`, not only the routed screens. A shell, a layout, or a small non-presentational helper is judged the same way: if it is not a presentational component under `ui\u002F`, its state belongs in a ViewModel. That is wider than \"every routed feature screen has a ViewModel\" on purpose. The narrower reading is not decidable, since nothing in a component file says whether it is routed, and a rule that cannot be decided cannot be enforced without guessing. It is also the right answer on the merits: the app shell holding the theme state in its own class is the same testability problem as a screen holding its filter state, and it has the same fix. If a component outside `ui\u002F` has state worth holding, give it a ViewModel; if it has no state at all, nothing here applies to it.\n\nGood:\n\n```ts\n\u002F\u002F hero-detail.view-model.ts: all the state and logic, no DOM, no providedIn\n@Injectable()\nexport class HeroDetailViewModel {\n  private readonly heroes = inject(HeroService);\n  readonly heroId = signal\u003Cnumber | null>(null);\n  readonly hero = computed(() => this.heroes.byId(this.heroId()));\n  readonly canDeploy = computed(() => this.hero()?.status === 'Active');\n  rename(name: string) { \u002F* ... *\u002F }\n}\n```\n\n```ts\n\u002F\u002F hero-detail.ts: a shell that provides, injects, and binds\n@Component({\n  selector: 'app-hero-detail',\n  providers: [HeroDetailViewModel],\n  imports: [HlmCardImports],\n  templateUrl: '.\u002Fhero-detail.html', \u002F\u002F \u003Ch1>{{ vm.hero()?.name }}\u003C\u002Fh1>\n})\nexport class HeroDetail {\n  protected readonly vm = inject(HeroDetailViewModel);\n}\n```\n\nBad:\n\n```ts\n\u002F\u002F state in the component class, and the data service injected past the ViewModel\n@Component({ selector: 'app-hero-detail', templateUrl: '.\u002Fhero-detail.html' })\nexport class HeroDetail {\n  private readonly heroes = inject(HeroService);   \u002F\u002F belongs in the ViewModel\n  readonly hero = signal\u003CHero | null>(null);       \u002F\u002F belongs in the ViewModel\n}\n```\n\n```ts\n\u002F\u002F a ViewModel that is really a singleton store\n@Injectable({ providedIn: 'root' })                 \u002F\u002F must be component-scoped\nexport class HeroDetailViewModel {}\n```\n\n```ts\n\u002F\u002F a ViewModel injected but never provided: this is a runtime NullInjectorError,\n\u002F\u002F and nothing in the build catches it for you\n@Component({ selector: 'app-roster', templateUrl: '.\u002Froster.html' })  \u002F\u002F no providers: [RosterViewModel]\nexport class Roster {\n  protected readonly vm = inject(RosterViewModel);\n}\n```\n\n## Forms: schema-driven with zod\n\nForms in this repo are schema-driven. A zod schema is the single source of truth for a form's shape, its validation, and its field labels; the form component reads from the schema and never restates what the schema already says.\n\n- **The model type is `z.infer\u003Ctypeof schema>`.** Never hand-write a form-model interface; infer it from the schema so the shape lives in one place.\n- **Validation flows through the schema.** Build the form with Angular signal-forms and validate the whole form through zod: `form(model, (path) => validateStandardSchema(path, schema))`. zod 4 is a Standard Schema, so Angular validates it natively. Do NOT restate a rule as a per-field signal-forms validator (`required`, `minLength`, `maxLength`, `min`, `max`, `email`, `pattern`): the schema already owns those. `validateStandardSchema` is the one blessed validator; `validateHttp` and `validateAsync` stay available for server-side checks a schema cannot express.\n- **Labels ride on the schema** via each field's `.meta()`, read with `formMeta(schema)` from `src\u002Fapp\u002Fforms\u002Fzod-meta.ts`. Do not hard-code a label the schema already carries.\n- **Controls are spartan helm.** Wrap each control in `hlm-field`, bind with `[formField]=\"form.name\"`, and show errors from `form.name().errors()`. Submit valid data with `submit(this.form, async () => { ... })`.\n- **No template-driven forms, and no reactive forms.** Do not use `ngModel`, `FormsModule`, or the template-driven directives. Reactive forms (`FormGroup`, `FormControl`, `FormBuilder`, `ReactiveFormsModule`) are not used here either. Angular's own guidance offers reactive forms as the fallback when signal-forms do not fit; this repo overrides that fallback. A form's schema is always known here, so every form is authored with signal-forms and a zod schema, and reaching for reactive forms is a defect, not a permitted fallback.\n\nThe schema lives beside the form as `\u003Cfeature>.schema.ts`, exporting the schema and `export type XModel = z.infer\u003Ctypeof schema>`.\n\nGood:\n\n```ts\n\u002F\u002F hero.schema.ts\nexport const heroSchema = z.object({\n  name: z.string().min(1).meta({ label: 'Name', control: 'text' } satisfies FormFieldMeta),\n});\nexport type HeroModel = z.infer\u003Ctypeof heroSchema>;\n```\n\n```ts\n\u002F\u002F hero-form.ts (no explicit changeDetection: OnPush is the v22 default)\nprotected readonly model = signal\u003CHeroModel>({ name: '' });\nprotected readonly form = form(this.model, (path) => validateStandardSchema(path, heroSchema));\nprotected readonly meta = formMeta(heroSchema);\n```\n\nBad:\n\n```ts\n\u002F\u002F a hand-written model, and a rule the schema already states\ninterface HeroModel { name: string; }             \u002F\u002F should be z.infer\u003Ctypeof heroSchema>\nreadonly form = form(this.model, (path) => {\n  required(path.name);                             \u002F\u002F the schema already requires it\n});\n```\n\n```html\n\u003C!-- template-driven: not used in this repo -->\n\u003Cinput [(ngModel)]=\"hero.name\" name=\"name\" \u002F>\n```\n\n## Responsive correctness\n\nA screen must render without responsive failure at three viewport widths, height fixed at 900px: 375px (a small phone), 768px (a tablet), and 1280px (a laptop). Responsive failure is defined in rendered pixels, so it is decidable rather than a matter of taste. A screen fails when, at any of the three widths, any of these is true (all comparisons carry a 1px tolerance for sub-pixel rounding):\n\n- **The page scrolls horizontally.** The document is wider than the viewport. Content must reflow to the width, never force a sideways scrollbar on the whole page.\n- **An element escapes the viewport.** An element's right edge is past the viewport width, or its left edge is below zero, and nothing intentionally scrollable contains it. An element sitting inside a container you deliberately made scrollable (`overflow: auto` or `overflow: scroll`) is exempt; a wide element under an `overflow: hidden` ancestor is not, because its content is cut off with no way to reach it. An element that is not being shown to the user at all is also exempt: if it, or any ancestor, is `display: none`, `visibility: hidden`, or `aria-hidden=\"true\"`, there is nothing on screen to escape. That exemption is what makes a closed off-canvas navigation drawer legal, and it is exactly why a closed drawer must really be hidden rather than merely parked off-screen with a transform. A drawer translated out of view is still rendered, still focusable, and still counts as an escape.\n- **An element clips its own content.** An element with `overflow: hidden` or `overflow: clip` holds content larger than its box, so text or controls are truncated. Again, `overflow: auto`\u002F`scroll` is exempt: a scroll container is a design choice, not a defect. The not-being-shown exemption applies here too, for the same reason: content clipped inside something the user cannot see is not a visible defect. An element whose rendered box is at most 1x1 CSS pixel in both dimensions is likewise exempt: that is the screen-reader-only pattern, which works precisely by collapsing a box and clipping its text, and a responsive rule must never push back against labeling an icon-only control for assistive technology.\n\nBuild the screen so a narrow width stacks rather than overflows: prefer the layout grammar's responsive grid (`grid-cols-1 sm:grid-cols-2`), let button rows wrap (`flex-wrap`), and avoid fixed pixel widths on inputs and cards that cannot shrink. The detail card, the form field, and the Save\u002FCancel button row must all fit and remain reachable at 375px.\n\n## Why these are written down\n\nThe whole point of this repo is that a written convention is not a guardrail: the model reads good docs and drifts anyway. These conventions exist so the drift has something concrete to be measured and gated against. They are here to be mechanized, not merely remembered.\n",{"name":5,"description":7},"main","4da69517ed5e3a33f87d8110ee59cff71256ad1f",".claude\u002Fskills\u002Fhouse-style","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata","https:\u002F\u002Fgithub.com\u002Fsatish-krishna","2026-11-14 03:41:14",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add satish-krishna\u002Fkata --skill house-style",{"tool":36,"command":37},"bunx","bunx skills add satish-krishna\u002Fkata --skill house-style",{"tool":39,"command":40},"pnpm","pnpm dlx skills add satish-krishna\u002Fkata --skill house-style","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhouse-style\u002FSKILL.md",true,[],[45,52,59,66,71,76],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M75NC157R07ZE86MTXWMXM96","probe","Use when the task says to invoke the probe skill. Test fixture only.","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fcrates\u002Fkata-core\u002Ftests\u002Ffixtures\u002Fhook-probe\u002Fskills\u002Fprobe\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M75NBZBBE2YNKSZV8YVDH8NB","proof-skill","Proof skill for the web folder. Use whenever editing files under web\u002F. Marker PROOF-SKILL-NESTED-7431.","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fcrates\u002Fkata-core\u002Ftests\u002Ffixtures\u002Fbuild-proof\u002Fapp\u002Fweb\u002F.claude\u002Fskills\u002Fproof-skill\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75NBTAVF50RK8YJWDG1F048","spartan","Manages spartan\u002Fui, the Angular UI library - adding, composing, fixing, debugging, and styling UI with the Brain (headless primitives) and Helm (styled) layers. Provides project context, component APIs, and usage examples. Applies when working with spartan\u002Fui, @spartan-ng\u002Fbrain, @spartan-ng\u002Fhelm, the @spartan-ng\u002Fcli generators, or any Angular project with a components.json file. Also triggers for \"spartan init\", \"add a spartan component\", or \"set up spartan\u002Fui\".","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fapp\u002F.claude\u002Fskills\u002Fspartan\u002FSKILL.md",[],[],{"skillNo":67,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M75NBP134GH4PPK9SAMXN9Y9","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fapp\u002F.claude\u002Fskills\u002Fhouse-style\u002FSKILL.md",[],[],{"skillNo":72,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M75NBHCP6EV6KTDR7Y2PFS2R","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fspartan\u002FSKILL.md",[],[],{"skillNo":77,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75NBC9BTZKQCFKC0A3PWB7E","https:\u002F\u002Fgithub.com\u002Fsatish-krishna\u002Fkata\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fhouse-style\u002FSKILL.md",[],[]]