0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00
bootstrap/skills/bootstrap-component-js
Mark Otto 0d5f092a94
Add llms.txt files, an AI docs page, and agent skills (#42770)
* Add llms.txt and llms-full.txt for AI tools

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.

* Add LLMs docs page and agent skills for install and bundler setups

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.

* Refine AI docs page and agent skills

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.

* Expand agent skills beyond setup and migration

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.

* fix spellcheck

* Update the component JS skill for the TypeScript sources

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.
History 2026-07-28 15:11:42 -07:00
..
SKILL.md Add llms.txt files, an AI docs page, and agent skills (#42770) 2026-07-28 15:11:42 -07:00