用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill bootstrap命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | bootstrap |
| description | Bootstrap — responsive grid for legacy, server-rendered, WordPress. |
bootstrap in package.json OR bootstrap CSS/JS in HTML <link>/<script> tagsreact-bootstrap or bootstrap-vue packagesdata-bs-* attributes in HTML elements.container, .row, .col-* class patterns.btn, .card, .modal, .navbar, .dropdown class patternsNo official MCP server is available for Bootstrap.
Reference the Bootstrap 5 docs at getbootstrap.com/docs. Configure a documentation search MCP in your CLI's settings if one is available.
| Concept | Detail |
|---|---|
| 12-column grid | .container → .row → .col-* — always nest in this order |
| Breakpoints | xs (<576px), sm (576px), md (768px), lg (992px), xl (1200px), xxl (1400px) |
| Utility classes | Spacing m-*/p-*, display d-*, flex d-flex/gap-*, text text-*, color text-*/bg-* |
| JS components | Modal, dropdown, tooltip, collapse require Bootstrap's JS bundle or data-bs-* API |
| Sass variables | The canonical way to customize Bootstrap before its CSS is compiled |
<!-- Grid — always: container → row → col -->
<div class="container">
<div class="row g-3">
<div class="col-12 col-md-6 col-lg-4">Content</div>
</div>
</div>
<!-- Buttons -->
<button class="btn btn-primary">Primary</button>
<button class="btn btn-outline-secondary btn-sm">Small outline</button>
<!-- Modal — via data attributes, no JS needed for trigger -->
<button data-bs-toggle="modal" data-bs-target="#confirmModal">Open</button>
<div class="modal fade" id="confirmModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class=>...
...
When react-bootstrap is present, use components — not raw class strings:
import { Button, Modal, Container, Row, Col } from 'react-bootstrap'
// Correct — component manages refs and ARIA
<Button variant="primary" size="sm" onClick={handleClick} />
// Wrong — bypasses react-bootstrap's event and ref management
<button className="btn btn-primary btn-sm" onClick={handleClick} />
Bootstrap 4 vs 5 — APIs differ. Confirm version in package.json before writing classes:
ml-*/mr-* (v4) → ms-*/me-* (v5).row-cols-* added in v5m-*/p-*/gap-* consistently; don't introduce arbitrary pixel values that break the spacing rhythmreact-bootstrap — raw HTML + class strings bypass ref and ARIA management$primary: #yourcolor before the Bootstrap import