Menu

Docs for LLMs

The Tabler documentation is also published as plain markdown, so AI tools and agents can read it without parsing HTML.

Large language models work better when they read the real documentation instead of guessing class names. Tabler publishes its docs in two machine-readable forms. There's one index file that lists every page, and there's a markdown copy of each page.

Overview

llms.txt is a simple convention. A site puts one markdown file at its root that describes what the site is about and links to the pages worth reading. Tabler follows it:

  • https://docs.tabler.io/llms.txt - the index of the whole documentation.
  • https://docs.tabler.io/<page>.md - the markdown version of a single page.

Both are plain text. You can open them in a browser, download them with curl, or paste the url into a chat with an AI assistant.

The index file

Fetch the index to see the full map of the docs:

curl https://docs.tabler.io/llms.txt

llms.txt contains:

  • A short description of what Tabler is.
  • Every documentation page, grouped the same way as the sidebar, with a one-line description and a link to its markdown file.
  • A class reference for every component that has one, so a model can look up which classes exist without opening each page.

In the class reference, a name in braces stands for a family of classes. alert-{color} means any base color, and table-mobile-{breakpoint} means any breakpoint.

Markdown pages

Add .md to any docs url to get the same page as markdown:

curl https://docs.tabler.io/ui/components/button.md

The markdown file keeps the page title, the summary, the prose, and the markup of every example as fenced code blocks. It drops the navigation, the styling, and everything else that only matters in a browser.

The home page is the one exception. Use /index.md, because /.md is not a valid url.

Every docs page also links to these files in its <head>, so a crawler that already has the html can find them:

<link rel="alternate" type="text/plain" href="/llms.txt" title="llms.txt" />
<link
  rel="alternate"
  type="text/markdown"
  href="/ui/components/button.md"
  title="Button (markdown)"
/>

Usage

Point your tool at the file that fits the task:

  • For the whole library, give the assistant https://docs.tabler.io/llms.txt when it needs to know what Tabler offers and which page to read next.
  • For one component, give it the page's .md url when you are working on a single component and want the exact markup.
  • For local context, download the files into your project and commit them. Then everyone on the team uses the same context, and so do tools that can't fetch urls.

A short prompt is usually enough:

Read https://docs.tabler.io/ui/components/card.md and build a card with a header, a footer and a table inside.

Agent skills

Coding agents that support Agent Skills can load a ready-made Tabler skill instead of a prompt. There are two:

  • tabler tells the agent how to install Tabler, how a page is structured, where to read the markup of a component and which rules keep the output consistent.
  • tabler-upgrade walks the agent through an upgrade to the latest release. It finds the installed version, reads the upgrade guide of every release in between, changes the affected code and checks the result.

Both are published for discovery:

  • https://docs.tabler.io/.well-known/agent-skills/index.json - the discovery index, per the Agent Skills Discovery RFC.
  • https://docs.tabler.io/.well-known/agent-skills/tabler/SKILL.md and https://docs.tabler.io/.well-known/agent-skills/tabler-upgrade/SKILL.md - the skills themselves.

The fastest way to add them to a project is the skills CLI, which puts the files into the skills directory of every agent it finds. Use --skill to pick one:

npx skills add tabler/tabler
npx skills add tabler/tabler --skill tabler-upgrade

Claude Code can also install them as a plugin, which keeps them up to date on its own:

/plugin install tabler --marketplace tabler/tabler

You can also copy a SKILL.md into your agent's skills directory by hand, for example .claude/skills/tabler/SKILL.md for Claude Code. The index carries a sha256 digest of each file, so a tool can check the copy is intact.

The same resources are also listed in https://docs.tabler.io/.well-known/ai-catalog.json, an Agentic Resource Discovery manifest that registries use to index a site.

Where the markup comes from

The examples are taken from the rendered page, not from the documentation source. A .md file gives you the same markup as the copy button on the html page, with every icon and helper already expanded to plain html.