Skills
Give your AI assistant deep knowledge of Blazix components, patterns, and best practices.
Skills give AI assistants like Claude Code project-aware context about Blazix. When installed, your AI assistant knows how to find, install, compose, and customize components using the correct Razor APIs and patterns for your project.
For example, you can ask your AI assistant to:
- "Add a login form with email and password fields."
- "Create a settings page with a form for updating profile information."
- "Build a dashboard with a sidebar, stats cards, and a data table."
- "Add a chat view that streams the assistant's replies."
- "Switch my components to Tabler icons."
The assistant reads your project's configuration and uses the right namespace, icon set and render modes, then
writes components the way the docs do: FieldGroup for forms, ToggleGroup for option sets,
Render for custom triggers, semantic colors for everything.
Install
npx skills add HGCollier/Blazix
This installs the Blazix skill into your project with skills,
which sets it up for the agents you use (Claude Code, Codex, Cursor and others). pnpm dlx and
bunx work too. Once installed, your AI assistant loads it automatically when working in a Blazix project.
Installing is the only step that uses Node.js. Without it, copy the
skills/blazix
folder from the repository into your agent's skills folder, such as .claude/skills/blazix for Claude Code.
blazix info --json, which needs Blazix.Cli 0.7.0 or later.
With an earlier CLI, it reads blazix.json instead.
What's Included
The skill gives your AI assistant knowledge of:
Project Context
On every interaction, the skill runs blazix info --json to get your project's configuration: the
components project and its server host, the render modes Program.cs enables and whether App.razor makes every page
interactive, the components' namespace and folder, the icon library and its class, whether components are
right-to-left, the installed components, and the paths of the files it may edit.
CLI Commands
Full reference for init, add, diff, list, info,
docs and the migrate commands, including when to ask before overwriting files you've
changed. docs gives it each component's page, with examples and API reference, to read before it writes code.
Razor and Blazor
What changes from shadcn/ui's React examples: Class on components and class on elements,
PascalCase parameters and enum members (Variant="ButtonVariant.Outline"), Render
with context.Attributes for custom triggers, @bind-Value, render modes, and registering
services in each Program.cs.
Forms, Composition and Icons
Rules with incorrect and correct examples: Field layouts and validation with EditForm,
InputGroup, items inside their groups, titles on dialogs, toasts with ToastManager,
data-icon and labels on icons from your icon library, and the chat components.
Theming and Customization
The theme tokens in Styles/theme.css, adding tokens, radius, contrast, dark mode, right-to-left, and when to
change your copy of a component.
How It Works
- Project detection: the skill activates when it finds a
blazix.jsonfile in your project, or when you ask for Blazix. - Context injection: it runs
blazix info --jsonto load your project's configuration. - Pattern enforcement: the AI follows Blazix's composition rules, such as
FieldGroupfor forms,Renderfor custom triggers, and semantic colors. - Component discovery: it uses
blazix listandblazix docsto find components and read their docs before writing code.
The skill is open source, in
skills/blazix.
Learn More
- CLI: the commands the skill uses.
- blazix.json: the configuration it reads.
- Theming: the tokens it edits.
- Forms: the form patterns it follows.
- skills.sh: more about skills.