Skip to main content
twblazor
Home
  • Get started
  • Tailwind with Blazor
  • Why twblazor?
  • Theme
  • Class Merge
    • Configuring localization
    • RTL Provider
  • Breadcrumb
  • Card
  • Carousel
  • Collapse
  • Context Menu
  • Drawer
  • Footer
  • Menu
  • Navbar
  • On This Page
  • Separator
  • Sidebar
  • Stepper
  • Tabs
  • Tree List
  • Container
  • Flex
  • Grid
  • Text
  • Link
  • Button
  • Form
    • AutocompleteNew
    • Checkbox
    • Color Picker
    • Date Picker
    • Date Range Picker
    • Datetime Picker
    • Datetime Range Picker
    • File Upload
    • Input GroupNew
    • NumericNew
    • Masked InputNew
    • Radio Button
    • Range SliderNew
    • RatingNew
    • Select
    • Slider
    • Switch
    • Tag InputNew
    • Text EditorNew
    • Textfield
    • Time Picker
    • Time Range Picker
  • Toggle
  • Toggle Group
  • Alert
  • Avatar
  • Badge
  • Chip
  • Empty
  • Icon
  • Popover
  • Progress
  • Skeleton
  • Spinner
  • Tooltip
  • Data Table
  • SpreadsheetNew
  • Column Filter Editor
  • Pagination
  • Pick List
  • Barcode
  • QR Code
  • Calendar
  • Table
  • Attachment
  • Overview
    • Bar
    • Bullet
    • Column
    • Dot Plot
    • Dumbbell
    • Icon
    • Lollipop
    • Radial Bar
    • Range
    • Word Cloud
    • Area
    • Bump
    • Bump Area
    • Candlestick
    • Gantt
    • Horizon
    • Line
    • Slope
    • Small Multiples
    • Stream Graph
    • Funnel
    • Gauge
    • Marimekko
    • Nightingale
    • Pie
    • Treemap
    • Waffle
    • Waterfall
    • Circular Treemap
    • Convex Treemap
    • Dendrogram
    • Sunburst
    • Barcode
    • Beeswarm
    • Box Plot
    • Density Plot
    • Histogram
    • Radial Histogram
    • Ridgeline
    • Strip Plot
    • Violin Plot
    • Categorical Scatter
    • Contour
    • Hexagonal Binning
    • Quadrant
    • Scatter
    • Heatmap
    • Matrix
    • Parallel Coordinates
    • Radar
    • Arc Diagram
    • Chord Diagram
    • Flowchart
    • Network Diagram
    • Sankey
    • Euler Diagram
    • Venn Diagram
  • Bubble
  • Marker
  • Message
  • Dialog Service
  • Toast Service
API DocumentationAI Agents & Skills
Home Get Started

Guides

AI Agents & Skills

Help AI coding assistants create twblazor apps with the project template and write correct twblazor code using llms.txt, Markdown pages and Agent Skills.

Last updated 25 October 2026

Overview

AI coding assistants often guess at a component library: they invent parameters, borrow another library's setup steps or write a theme by hand. twblazor publishes everything an assistant needs in the formats assistants read, so it can use the real components from the first try.

For a new app, the assistant should start from the project template: dotnet tool install -g TwBlazor.Templates, then twblazor new MyApp -i wasm -t dashboard. It creates the solution, theme, Tailwind build and layout, so there are no manual setup steps to guess.

All of it is generated from these docs every time the site is built. Each component's parameters come straight from the library's own source, so an assistant only ever sees components and parameters that exist in the current release.

llms.txt

llms.txt is a plain text index written for language models. It sets out the rules for using twblazor, the project template, the manual setup steps and a link to the Markdown page of every component and guide.

The files published for AI assistants
File What it holds
/llms.txt (opens in a new tab) The rules, the project template, the manual setup steps and a link to every page. Start here.
/llms-full.txt (opens in a new tab) llms.txt followed by every page in full, for assistants that read one file.
/button.md (opens in a new tab) Any docs page as Markdown: add .md to its address. Component pages list their examples, keyboard navigation, theme and every parameter.

Point your assistant at llms.txt

Add these lines to the instructions file your assistant reads, such as CLAUDE.md, AGENTS.md, .github/copilot-instructions.md or a Cursor rule. Any assistant that can fetch a web page will then look things up instead of guessing.

MARKDOWN
## twblazor

For a new app, use the twblazor project template instead of setting it up by hand:
`dotnet tool install -g TwBlazor.Templates`, then `twblazor new MyApp -i wasm -t dashboard`.

This project uses the twblazor component library. Before writing or changing twblazor code, read
https://twblazor.com/llms.txt and the Markdown page of each component you use. Use only the parameters
those pages list, and never write Theme.cs by hand: generate it at https://twblazor.com/theme.

Agent skills

A skill is a folder with a SKILL.md file and the reference pages it needs. The assistant reads only each skill's short description up front, and loads the rest when a task calls for it, so a skill adds detailed guidance without filling the context. Each twblazor skill bundles the Markdown pages it refers to, so it also works offline.

The twblazor agent skills
Skill What it covers Download
twblazor-components Writes Razor markup with twblazor components such as TwButton, TwTextfield, TwSelect, TwDataTable, TwDialog, toasts and TwChart, using only the parameters each component really has. Use whenever building or changing UI with twblazor, or when converting markup from another Blazor component library to twblazor. .zip
twblazor-localization Translates twblazor components and configures date and time formats and right to left layouts, using the 24 built-in languages, the app's own .resx files, options.Localization in AddTwBlazor, a custom ITwLocalizer and TwDirectionProvider. Use when localizing a twblazor app, rewording built-in component text, or supporting Arabic, Hebrew or other right to left languages. .zip
twblazor-setup Creates a new twblazor app with the project template, or adds twblazor to an existing Blazor Server or Blazor WebAssembly app. Covers the NuGet package, App.razor links, imports, toast and dialog providers, Theme.cs, AddTwBlazor and the Tailwind build. Use when creating a twblazor project, adding twblazor to an existing project, or when twblazor components render unstyled or throw on startup. .zip
twblazor-theming Creates and changes the Theme.cs that styles every twblazor component, using the twblazor Theme builder for brand colours, surfaces, rounding, shadows, default variants and the components to include, plus dark mode and per-instance Class overrides. Use when theming twblazor, changing its look, adding a component to the theme or fixing a missing component theme. .zip

Download every skill in one zip

Install the skills in Claude Code

Extract the zip into .claude/skills at the root of your project. Commit the folder and everyone working on the project gets the skills too. To use them in every project instead, extract it into ~/.claude/skills in your home folder.

macOS and Linux:

BASH
curl -L -o twblazor-skills.zip https://twblazor.com/skills/twblazor-skills.zip
mkdir -p .claude/skills
unzip -o twblazor-skills.zip -d .claude/skills
rm twblazor-skills.zip

Windows PowerShell:

POWERSHELL
Invoke-WebRequest https://twblazor.com/skills/twblazor-skills.zip -OutFile twblazor-skills.zip
Expand-Archive twblazor-skills.zip -DestinationPath .claude/skills -Force
Remove-Item twblazor-skills.zip

Claude Code finds the skills when a session starts and uses them whenever a task matches their descriptions, such as adding twblazor to a project or building a form. Run the same commands again after upgrading twblazor to pick up the new release.

Use the skills in the Claude apps

Download a single skill's zip from the table above and upload it in the skills section of Claude's settings. Upload each skill you want separately, since an upload holds one skill.

Other assistants

The skills use the open Agent Skills format: a folder holding a SKILL.md with a name and description. Assistants that support the format can read the same folders from their own skills directory. For an assistant that does not, use the llms.txt instructions above.

How they stay accurate

  • The pages, the component list and the descriptions come from these docs and from components.json, the same source as the sidebar.
  • Every parameter table is read from the [Parameter] properties and XML documentation in the library's source.
  • The install command names the same version as the Get started guide, which moves with every release.
  • The code samples are the same samples these pages render live, so they compile with the current release.

On this page

  • Overview
  • llms.txt
  • Point your assistant at llms.txt
  • Agent skills
  • Install the skills in Claude Code
  • Use the skills in the Claude apps
  • Other assistants
  • How they stay accurate
twblazor

The Tailwind CSS component library for Blazor. Accessible, themeable and MIT licensed.

Discord (opens in a new tab) GitHub(opens in a new tab)

Get started

  • Install guide
  • Theming
  • Class merging
  • Localization

Guides

  • Tailwind CSS with Blazor
  • Why twblazor?
  • Right to left
  • AI agents and skills

Resources

  • API documentation (opens in a new tab)
  • llms.txt (opens in a new tab)
  • MIT License (opens in a new tab)

Community

  • Contributing (opens in a new tab)
  • Code of conduct (opens in a new tab)
  • Report an issue (opens in a new tab)

twblazor is and always will be free and open source.

An unhandled error has occurred. Reload