/ngxsmk:using-ngxsmkfrom ngxsmk
Build Angular UIs with the NGXSMK UI kit (@ngxsmk/core, @ngxsmk/theme). Covers standalone imports, signal-based component APIs, theming tokens, dark mode, layout primitives, and state machines.
Ships in ngxsmk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
NGXSMK is a signals-native, zoneless Angular UI kit (Angular 17.3–22, MIT).
Install via the NGXSMK Claude Code plugin
(/plugin marketplace add NGXSMK/ngxsmk-ui-kit, then /plugin install ngxsmk@ngxsmk),
or copy this skill folder into any consumer project's .claude/skills/.
Standalone imports. Every component/directive is standalone. Import the
class from its secondary entry point and add it to imports:
import { NgxsmkButton } from '@ngxsmk/core/button';
import { NgxsmkCard } from '@ngxsmk/core/card';
Signal APIs. Inputs are input() signals — bind with [prop]="...".
Outputs bind with (event)="...". model() inputs support [(prop)].
Never use @ViewChild tricks or assign to inputs imperatively.
Selectors. Element selectors are ngxsmk-* (<ngxsmk-card>). Some are
attribute directives on native elements, e.g. buttons keep native semantics:
<button ngxsmk-button variant="outline" size="sm">Cancel</button>
<a ngxsmk-button variant="link" href="/docs">Docs</a>
Theming. Import theme CSS once (e.g. in styles.css):
@import '@ngxsmk/theme/styles/ngxsmk.css';. Customize ONLY via --ngxsmk-* custom
properties (--ngxsmk-color-primary, --ngxsmk-radius-md,
--ngxsmk-space-4, ...). Never override internal .ngxsmk-* classes.
Dark mode: add the dark class to <html>.
Layout. Prefer kit layout primitives (stack, h-stack, grid,
center, container, app-shell) over ad-hoc flex CSS. In CSS grid, use
minmax(0, 1fr) instead of 1fr to avoid mobile overflow.
State machines. For mutually exclusive UI lifecycles, use
@ngxsmk/cdk/state-machine instead of parallel booleans:
import { createMachine, createPresence } from '@ngxsmk/cdk/state-machine';
// Animated overlay presence (cancels exit on re-open)
const presence = createPresence();
presence.open();
await presence.close(() => playExit(el, motion));
// Async / status flows
const status = createMachine({
initial: 'idle',
states: {
idle: { START: 'loading' },
loading: { SUCCESS: 'success', FAIL: 'error' },
success: { RESET: 'idle' },
error: { RESET: 'idle' },
},
});
Prefer a single status / state signal (AsyncStatus, AiRunStatus, or
a domain union) over isLoading + isError + isSuccess. Overlay open
state should go through createPresence so mid-exit re-open cannot phantom-close.
@ngxsmk/mcp MCP server configured, use its tools:
ngxsmk_search_components then ngxsmk_explain_api.llms-full.txt from the package repo (also at
https://ngxsmk.github.io/ngxsmk-ui-kit/llms-full.txt) for the full generated list of selectors,
inputs, and outputs.chart-*),
AI/chat (ai-chat, chat-*, streaming-text, reasoning-timeline,
agent-card, voice-input), overlays (dialog, sheet, popover, tooltip),
layout & navigation.import { Component, signal } from '@angular/core';
import { NgxsmkAiChat } from '@ngxsmk/core/ai-chat';
@Component({
standalone: true,
selector: 'app-assistant',
imports: [NgxsmkAiChat],
template: `
<ngxsmk-ai-chat
[messages]="messages()"
[isTyping]="isTyping()"
(sendMessage)="onSend($event)"
/>
`,
})
export class AssistantPage {
readonly messages = signal([]);
readonly isTyping = signal(false);
onSend(text: string) {
/* call your backend */
}
}
NGXSMK is Angular-first and Ionic-friendly. In Ionic apps:
@ngxsmk/theme/styles/ngxsmk.css).provideNgxsmkIonicTheme() next to provideIonicAngular() so --ngxsmk-* syncs to --ion-*.@ngxsmk/core/<entry> for forms, tables, AI chat, and overlays.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ngxsmk/ngxsmk-ui-kit --plugin ngxsmkOther plugins' skills for the same job