Index of every page on this site: llms.txt
All skills
allxsmith avatar

/bestax-migrate

@9cf369a
by Alex Smithallxsmith/bestax15 stars
2
Run it yourself

Migrate an existing React app to @allxsmith/bestax-bulma on Bulma v1, from raw Bulma CSS classes on plain JSX (className="button is-primary") or in static HTML pages and templates styled with Bulma, or from an unmaintained React Bulma library (react-bulma-components v4, rbx v2, bloomer 0.6). Run the bestax-migrate codemod, then resolve every TODO(bestax-migrate) comment it leaves using the per-source mapping references. Use when a React app styles its markup with Bulma classes and wants bestax components instead, when static HTML pages or templates styled with Bulma should become React components, when a repo imports react-bulma-components, rbx or bloomer, when TODO(bestax-migrate) comments are present in a codebase, or when asked to convert Bulma classNames to bestax-bulma.

Use this Skill: https://skilld.dev/gh/allxsmith/bestax/bestax-migrate

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesbloomercomponent-map.md

≈3.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

bloomer → bestax-bulma component map

Every bloomer export. bloomer's exports are all flat names, while bestax groups the same components into dotted compounds — so most rows here rename a flat identifier onto a Parent.Child target, and the codemod imports the parent. structural means the codemod rewrites the element's shape rather than renaming it (see unmappables.md for what each one produces). A todo row has no bestax counterpart — the codemod keeps the bloomer import, annotated, so the app still runs while you convert it.

This table mirrors MAPPING in bestax-migrate/src/sources/bloomer/mapping.ts, which a coverage test holds to bloomer's own export surface (108 exports, vendored from its src/index.ts) in both directions.

bloomer bestax-bulma status
Box Box mapped
Breadcrumb Breadcrumb mapped
BreadcrumbItem structural mapped
Button Button mapped
Card Card mapped
CardContent Card.Content mapped
CardFooter Card.Footer mapped
CardFooterItem Card.FooterItem mapped
CardHeader Card.Header mapped
CardHeaderIcon Card.Header.Icon mapped
CardHeaderTitle Card.Header.Title mapped
CardImage Card.Image mapped
Checkbox Checkbox mapped
Column Column mapped
Columns Columns mapped
Container Container mapped
Content Content mapped
Control Control mapped
Delete Delete mapped
Dropdown Dropdown partial
DropdownContent — (see unmappables) todo
DropdownDivider Dropdown.Divider mapped
DropdownItem Dropdown.Item mapped
DropdownMenu — (see unmappables) todo
DropdownTrigger — (see unmappables) todo
Field Field mapped
FieldBody Field.Body mapped
FieldLabel Field.Label mapped
Footer Footer mapped
Heading structural partial
Help structural mapped
Hero Hero mapped
HeroBody Hero.Body mapped
HeroFooter Hero.Foot mapped
HeroHeader Hero.Head mapped
HeroVideo structural mapped
Icon Icon partial
Image Image mapped
Input InputBase mapped
Label structural mapped
Level Level mapped
LevelItem Level.Item mapped
LevelLeft Level.Left mapped
LevelRight Level.Right mapped
Media Media mapped
MediaContent Media.Content mapped
MediaLeft Media.Left mapped
MediaRight Media.Right mapped
Menu Menu mapped
MenuLabel Menu.Label mapped
MenuLink Menu.Item mapped
MenuList Menu.List mapped
Message Message mapped
MessageBody Message.Body mapped
MessageHeader Message.Header mapped
Modal Modal partial
ModalBackground Modal.Background mapped
ModalCard Modal.Card mapped
ModalCardBody Modal.Card.Body mapped
ModalCardFooter Modal.Card.Foot mapped
ModalCardHeader Modal.Card.Head mapped
ModalCardTitle Modal.Card.Title mapped
ModalClose Modal.Close mapped
ModalContent Modal.Content mapped
Nav — (see unmappables) todo
NavCenter — (see unmappables) todo
NavItem — (see unmappables) todo
NavLeft — (see unmappables) todo
NavRight — (see unmappables) todo
NavToggle — (see unmappables) todo
Navbar Navbar mapped
NavbarBrand Navbar.Brand mapped
NavbarBurger Navbar.Burger mapped
NavbarDivider Navbar.Divider mapped
NavbarDropdown structural mapped
NavbarEnd Navbar.End mapped
NavbarItem structural mapped
NavbarLink Navbar.Link mapped
NavbarMenu Navbar.Menu mapped
NavbarStart Navbar.Start mapped
Notification Notification mapped
Page structural mapped
PageControl structural mapped
PageEllipsis Pagination.Ellipsis mapped
PageLink Pagination.Link mapped
PageList Pagination.List mapped
Pagination Pagination mapped
Panel Panel mapped
PanelBlock Panel.Block mapped
PanelHeading Panel.Heading mapped
PanelIcon Panel.Icon partial
PanelTab structural mapped
PanelTabs Panel.Tabs mapped
Progress Progress mapped
Radio Radio mapped
Section Section mapped
Select SelectBase mapped
Subtitle SubTitle mapped
Tab Tabs.Item mapped
TabLink structural mapped
TabList structural mapped
Table Table mapped
Tabs Tabs mapped
Tag Tag mapped
TextArea TextAreaBase mapped
Tile — (see unmappables) todo
Title Title mapped
withHelpersModifiers — (see unmappables) todo

The renames worth memorising

The flat-to-dotted pattern is regular — CardHeaderTitle → Card.Header.Title, ModalCardBody → Modal.Card.Body, NavbarBurger → Navbar.Burger — with a handful of names that change along the way:

bloomer bestax-bulma why
Subtitle SubTitle bestax's casing
HeroHeader Hero.Head bestax follows Bulma's hero-head / hero-foot
HeroFooter Hero.Foot
ModalCardHeader Modal.Card.Head same, for modal-card-head / modal-card-foot
ModalCardFooter Modal.Card.Foot
CardFooterItem Card.FooterItem one component in bestax, not a child of Card.Footer
MenuLink Menu.Item bestax's item renders the <a>
FieldLabel Field.Label and FieldBody → Field.Body
Tab Tabs.Item the plain <li>; bestax's Tabs.Tab is the controlled API
PageLink Pagination.Link isCurrent becomes active
NavbarDropdown Navbar.DropdownMenu bestax's Navbar.Dropdown is the container — see below

Value-chosen targets

Some targets depend on a prop or a child, so the codemod picks them element by element:

bloomer becomes decided by
PageControl Pagination.Previous / Pagination.Next isNext (bloomer's default is previous)
NavbarItem Navbar.Item / Navbar.Dropdown hasDropdown
Page folded into its child / <li> whether the child is a PageLink/PageEllipsis; attributes on the Page move onto the link, with a component:Page note
PanelBlock Panel.Block / the plain block the element: an <a>, a <div> or a <label> is the component; any other tag, or a dynamic one, stays plain markup
MenuLink in a literal <li> Menu.Item, the <li> folded away bestax's item renders its own <li>
Breadcrumb around a literal <ul> Breadcrumb, the <ul> folded away bestax's breadcrumb renders its own <ul>
Icon, PanelIcon name/library/variant / an <i> child whether the icon classes are FA5/6 or MDI
Help, Label, Heading <p class="help">, <label class="label">, <p class="heading"> always plain markup
BreadcrumbItem, PanelTab, TabLink, TabList, HeroVideo <li>, <a>, <a>, <ul>, <div class="hero-video"> always plain markup; a TabList stays the <ul> it was, since bestax's Tabs.List adds role="tablist" and the Tabs.Items in it aren't tabs

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts18d3 checks · Risk SAFE
  • Gen Agent Trust Hub18d

    The skill provides comprehensive instructions and reference material for migrating React applications or static HTML pages to the @allxsmith/bestax-bulma library using the bestax-migrate codemod. No malicious patterns or security risks were identified.

  • Socket18d

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 9cf369a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 days ago

README badge

README badge for allxsmith/bestax/bestax-migrate