💡 摘要
一个增强Bootstrap开发的插件,提供交互式组件生成和主动帮助。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Low。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Bootstrap Expert Plugin
A comprehensive Claude Code plugin for Bootstrap 5.3.8 and Bootstrap Icons front-end development.
Table of Contents
- Features
- Prerequisites
- Installation
- Quick Start
- Skills
- Commands
- Agent
- Bootstrap Version
- Contributing
- License
Features
- 9 Specialized Skills - Deep expertise aligned with Bootstrap's documentation structure
- Component Generator - Interactive command to generate Bootstrap components
- Proactive Agent - Autonomous assistant for Bootstrap development tasks
Prerequisites
- Claude Code installed and configured
Installation
From GitHub (Recommended)
# Add the marketplace /plugin marketplace add sjnims/bootstrap-expert # Install the plugin /plugin install bootstrap-expert@bootstrap-expert-marketplace
Or use the full URL:
/plugin marketplace add https://github.com/sjnims/bootstrap-expert /plugin install bootstrap-expert@bootstrap-expert-marketplace
Local Development
claude --plugin-dir /path/to/bootstrap-expert
Quick Start
Once the plugin is loaded, you can:
-
Ask Bootstrap questions - Skills load automatically based on your question:
"How do I create a responsive navbar?" "What's the Bootstrap grid system?" "How do I add form validation?" -
Generate components - Use the command to create Bootstrap components:
/bootstrap-expert:component navbar /bootstrap-expert:component modal --centered --scrollable /bootstrap-expert:component card --with-image --horizontal -
Get proactive help - The agent triggers automatically when you're working on Bootstrap-related tasks.
Skills
| Skill | Description |
|-------|-------------|
| bootstrap-overview | Getting started, installation, project setup, browser support |
| bootstrap-customize | Sass variables, CSS custom properties, theming, color modes |
| bootstrap-layout | Grid system, containers, breakpoints, columns, CSS Grid |
| bootstrap-content | Typography, images, tables, figures, Reboot |
| bootstrap-forms | Form controls, validation, input groups, floating labels |
| bootstrap-components | All UI components (modals, navbars, cards, accordions, etc.) |
| bootstrap-helpers | Clearfix, ratios, stacks, stretched links, visually hidden |
| bootstrap-utilities | Spacing, colors, display, flex, position, sizing, text |
| bootstrap-icons | Icons library installation, usage, styling, accessibility |
Commands
/bootstrap-expert:component [component-name]
Generate Bootstrap component code interactively or with full arguments.
Interactive mode:
/bootstrap-expert:component navbar
With arguments:
/bootstrap-expert:component navbar --dark --fixed-top --with-search
Supported components:
accordion- Collapsible content panelsalert- Alert messagesbadge- Contextual labels and countersbreadcrumb- Breadcrumb navigationbutton/buttons- Button variants and stylesbutton-group- Grouped buttonscard- Card layouts with images, headers, footerscarousel- Image/content sliderscollapse- Collapsible content sectionsdropdown- Dropdown menusform- Form layouts with validationlist-group- List items with actionsmodal- Modal dialogs with customizable optionsnavbar- Navigation bars with various configurationsoffcanvas- Offcanvas sidebarspagination- Page navigationplaceholders- Loading placeholder animationspopover- Pop-up information boxesprogress- Progress barsspinner- Loading indicatorstable- Responsive data tablestabs/nav-tabs- Tabbed navigationtoast- Toast notificationstooltip- Hover tooltips
Agent
The bootstrap-expert agent triggers proactively when Bootstrap-related work is detected, helping with:
- Component Implementation - Guidance on implementing Bootstrap components correctly
- Layout Troubleshooting - Solving grid system and responsive design issues
- Accessibility - Ensuring components meet WCAG guidelines with proper ARIA attributes
- Code Review - Reviewing Bootstrap code for best practices and optimization
Example triggers:
- Creating or editing HTML files with Bootstrap classes
- Discussing responsive layouts or breakpoints
- Working with Bootstrap JavaScript components
- Asking about Bootstrap customization or theming
Bootstrap Version
This plugin targets Bootstrap 5.3.8 and Bootstrap Icons 1.13.x.
All generated code, class names, and documentation align with these versions. When Bootstrap releases updates, this plugin will be updated accordingly.
Contributing
Contributions are welcome! Please read our Contributing Guide before submitting a Pull Request.
For security issues, please see our Security Policy.
License
MIT - see LICENSE for details.
优点
- 交互式组件生成
- Bootstrap任务的主动帮助
- 与Bootstrap文档对齐
- 支持多种Bootstrap组件
缺点
- 需要安装Claude Code
- 仅限于Bootstrap 5.3.8
- 可能不涵盖所有边缘案例
- 依赖于外部插件系统
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 sjnims.
