Skip to content

Add llms.txt files, an AI docs page, and agent skills - #42770

Merged
mdo merged 6 commits into
v6-devfrom
mdo/docs-ai-skills
Jul 28, 2026
Merged

Add llms.txt files, an AI docs page, and agent skills#42770
mdo merged 6 commits into
v6-devfrom
mdo/docs-ai-skills

Conversation

@mdo

@mdo mdo commented Jul 28, 2026

Copy link
Copy Markdown
Member

Bootstrap ships no machine-readable documentation and no guidance for coding agents, so AI tools either scrape the site or guess at v6 APIs — and they guess wrong, since v6 renamed components, moved customization to CSS token maps, and dropped jQuery.

This adds two generated routes: /llms.txt as a curated index of every docs page, and /llms-full.txt as the concatenated page bodies for direct ingestion. Both are built by traversing site/data/sidebar.yml, so they inherit the same ordering and inclusion rules as the site nav. A new Getting started > AI page documents them.

It also adds eleven agent skills under skills/, each a SKILL.md playbook: setup (install, npm, Webpack, Parcel, Vite), migration (v4-to-v6 and v5-to-v6), and authoring (component CSS, component JavaScript, the color system, and the utility API). Frontmatter on each skill names the human guide it pairs with, and the table on the AI page is generated from that frontmatter so the two cannot drift apart.

Supersedes #42728, which carried only the llms.txt routes.

mdo added 4 commits July 28, 2026 14:50
Generate /llms.txt (a curated, llmstxt.org-style index of the docs) and
/llms-full.txt (the full docs text concatenated for ingestion) from the
sidebar and docs content, and link both from the install page.
Pull in the getting-started/llms page, the bundler/install agent skills
(bootstrap-v6-install, -npm, -webpack, -parcel, -vite), guide callouts
linking each skill, and the eslint allowance for skill code blocks.
Rename the getting-started page to /getting-started/ai (ai.mdx) and its
sidebar entry to AI. Generate the skills table from each SKILL.md
frontmatter via a new skills lib and SkillsTable shortcode, adding a
guide key to every skill so the table never drifts from the files.

Standardize skill customization on CSS-token overrides ($root-tokens and
$*-tokens), matching the Customize › Sass docs, and note that token names
are authored unprefixed (PostCSS adds the --bs- prefix). Rename workflow
'Phase' to 'Step' throughout, add SRI integrity placeholders to the CDN
snippet, and fix the Vite file-tree box drawing.
Agents had guidance for installing Bootstrap and moving off v5, but
nothing for everyday work, so add skills for authoring a component and
its JavaScript, customizing the color system, and generating utilities.
A v4-to-v6 skill covers projects skipping v5 entirely, and the v5-to-v6
skill now points there and fixes its layer list and `$radius` example.
@mdo
mdo requested a review from a team as a code owner July 28, 2026 21:52
@mdo mdo added this to v6.0.0 Jul 28, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Jul 28, 2026
mdo added 2 commits July 28, 2026 14:59
The skill still described the pre-rebase toolchain: JS sources in js/src, a
js/index.js barrel, Karma, and Jasmine specs. Rewrite it against what is on
v6-dev now — TypeScript sources with the config/field/override conventions the
compiler options force, the js/src/index.ts barrel, the type tests that guard
the shipped declarations, and Vitest browser mode with its Jasmine shim.

TypeScript code blocks in markdown need a parser, so point ESLint at the
TypeScript one for them; the blocks are checked for syntax only.
@mdo
mdo merged commit 0d5f092 into v6-dev Jul 28, 2026
12 checks passed
@mdo
mdo deleted the mdo/docs-ai-skills branch July 28, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant