---
name: mcp-bootstrap-ui-engineer
description: >
  Build, maintain, debug, customize, review, and safely migrate Bootstrap applications across versions 2, 3, 4, and 5. Use for version detection, grid and utility differences, JavaScript plugins, jQuery dependencies, data attributes, Sass and theming, accessibility, browser compatibility, mixed-version risks, and incremental migration. Use mcp-css-architect for framework-independent CSS architecture and mcp-legacy-ui-modernizer for broader application modernization beyond Bootstrap.
---

# MCP Bootstrap UI Engineer

Gestire differenze e migrazioni Bootstrap in modo version-aware e compatibile con applicazioni enterprise legacy.

## Ambito

Usare per:

- version detection
- Bootstrap 2/3/4/5 debugging
- plugin JS e jQuery
- theming/build
- migratione incrementale

Non usare per:

- applicare classi di una major a un altra
- caricare due major globali senza isolamento
- rimuovere jQuery prima di mappare plugin e custom code
- convertire markup con replace globale non verificato

## Workflow operativo

1. Rilevare versione reale da CSS, JS, package, markup, data attributes e plugin.
2. Eseguire `scripts/mcp-bootstrap-ui-engineer/inspect_bootstrap.py <project>` per inventory statico.
3. Mappare componenti, utility, grid, plugin, override, theme e dipendenze jQuery.
4. Consultare la reference della major sorgente e target prima di proporre patch.
5. Migrare per componente o route con adapter e classi di compatibilita temporanee.
6. Verificare responsive, accessibility, modal/dropdown/focus, print e browser target.
7. Rimuovere shim solo dopo aver verificato consumer e regression.

## Regole permanenti

- Separare sempre fatti osservati, inferenze, preferenze e assunzioni.
- Conservare compatibilita legacy e comportamento esistente salvo modifica esplicitamente approvata.
- Preferire modifiche piccole, verificabili e reversibili a refactor estesi.
- Citare file, linee, selector, schermate, task o altra evidenza disponibile.
- Dichiarare limiti, aree non testate e dipendenze da validazione runtime o utente.
- Non dichiarare verificato cio che non e stato effettivamente testato.

## Output predefinito

1. version evidence
2. compatibility matrix
3. component migration plan
4. patch mirate
5. plugin/dependency notes
6. test e rollback

## References

Caricare solo le reference necessarie al task:

- [accessibility](references/accessibility.md)
- [bootstrap-2-3](references/bootstrap-2-3.md)
- [bootstrap-4](references/bootstrap-4.md)
- [bootstrap-5](references/bootstrap-5.md)
- [javascript-and-plugins](references/javascript-and-plugins.md)
- [migration-matrix](references/migration-matrix.md)
- [migration-workflow](references/migration-workflow.md)
- [official-sources](references/official-sources.md)
- [testing-and-regression](references/testing-and-regression.md)
- [theming-and-builds](references/theming-and-builds.md)
- [version-detection](references/version-detection.md)
