AI Support & Agent Tools
Official machine-readable documentation, Agent Skills CLI, and anti-hallucination prompts for building with Bootstrap 6 and LLMs.
Written against Bootstrap 6.0.0-alpha.1. Designed for LLMs, Claude Code, Cursor, Copilot, and agent workflows.
1. LLM-Ready Documentation (llms.txt)
Bootstrap publishes standardized markdown-based documentation files designed specifically for AI tools, coding assistants, and context windows.
| File Endpoint | Description | Best Use Case |
|---|---|---|
/llms.txt |
A curated index of all official documentation pages, organized by topic with titles, paths, and summaries. | Agent tool lookups, Cursor docs index, quick search without filling context window. |
/llms-full.txt |
The complete text of the entire Bootstrap 6 documentation concatenated into a single plain-text resource. | Deep context ingestion, offline LLM embeddings, comprehensive prompt uploads. |
# Curated documentation index:
https://getbootstrap.com/llms.txt
# Full concatenated documentation:
https://getbootstrap.com/llms-full.txt
How to use in your favorite AI tool:
- Cursor: Add
https://getbootstrap.com/llms.txtunder Cursor Settings > Features > Docs. - ChatGPT / Claude: Paste the link or download
llms-full.txtto attach to your custom project instructions. - CLI / Copilot: Point system instructions to the remote URL to ensure the model uses v6 syntax rather than hallucinating v5 or v4 patterns.
2. Official Coding Agent Skills
Bootstrap provides pre-packaged agent skills—actionable playbooks that teach autonomous AI agents how to correctly write, style, test, and migrate Bootstrap 6 projects.
npx skills add twbs/bootstrap
Available Official Skills Catalog
Adds Bootstrap 6 to projects via CDN or package managers; sets up initial HTML templates and module scripts.
Audits and refactors v5 code: transforms breakpoint infixes (col-md-6 → md:col-6), dialogs, and ESM imports.
Handles legacy upgrades jumping directly from Bootstrap 4 to Bootstrap 6 in a structured, verified sequence.
Generates compliant component markup, modifier variants, and CSS token overrides following Bootstrap 6 conventions.
Integrates TypeScript/ESM behavior, extends BaseComponent, wires data attributes, and integrates Floating UI.
Configures Sass color maps, CSS custom properties, light/dark themes, and semantic color scales.
Defines custom utility classes, extends the utility map, and trims generated CSS bundles.
Configures modern bundlers, Sass compilation, and tree-shaking for production deployments.
3. Manual Ingestion (Without CLI)
If your AI assistant or agent does not use the Skills CLI, you can point it directly to the official SKILL.md files located in the Bootstrap repository.
# Base URL in the official repository:
https://github.com/twbs/bootstrap/tree/main/skills/
# Example: Migration Skill direct file:
https://raw.githubusercontent.com/twbs/bootstrap/main/skills/bootstrap-v5-v6-migration/SKILL.md
Copy the contents of the relevant SKILL.md into your agent prompt or project system rules (e.g. .cursorrules, CLAUDE.md, or AGENTS.md).
4. Anti-Hallucination Rules for Bootstrap 6
Because LLMs are heavily trained on Bootstrap 4 and 5, they frequently hallucinate deprecated classes. Add these 4 golden rules to your AI instructions:
| Topic | What AI Tend to Hallucinate (v5) | Correct Bootstrap 6 Syntax |
|---|---|---|
| Responsive Utilities | col-md-6, d-lg-none, text-sm-center |
Prefix with colon: md:col-6, lg:d-none, sm:text-center |
| Overlays & Modals | modal, offcanvas, dropdown |
Native elements: dialog, drawer, menu |
| Button Variants | btn-primary, btn-outline-danger |
Variant + theme token: btn-solid theme-primary, btn-outline theme-danger |
| JavaScript Bundle | <script src="bootstrap.bundle.min.js">, window.bootstrap |
ESM-Only: <script type="module" src="...">, import { Dialog } from 'bootstrap' |
You are an expert Bootstrap 6 developer. Follow official Bootstrap 6 conventions:
1. Always use responsive prefix syntax (e.g., md:col-6, lg:d-flex, not col-md-6).
2. Use modern component names: Dialog instead of Modal, Drawer instead of Offcanvas, Menu instead of Dropdown.
3. Use button variants with theme tokens: btn-solid theme-primary, not btn-primary.
4. JavaScript is ESM-only. Always use <script type="module"> and avoid legacy window.bootstrap.
5. Refer to official docs at https://getbootstrap.com/llms.txt when uncertain.
5. Interactive AI Prompt Generator
Select your task below to generate a calibrated, hallucination-resistant prompt tailored for ChatGPT, Claude, or Cursor.