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.

referencesreact-bulma-componentscomponent-map.md

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

Component map: react-bulma-components v4 → @allxsmith/bestax-bulma

Every RBC v4 export and compound sub-component, with its bestax target. Auto = the codemod converts it; Flagged = it leaves a TODO(bestax-migrate) comment (see unmappables.md for the recipes).

Top-level components

RBC bestax Notes
Block Block Auto
Box Box Auto
Breadcrumb Breadcrumb Auto; align → alignment (center→centered)
Button Button Auto for literal remove (by value, not presence — truthy → <Delete/>, remove={false} stays Button); dynamic flagged
Card Card Auto
Columns Columns Auto; breakpoint="mobile"→isMobile, multiline→isMultiline, …
Container Container Auto; breakpoint="fluid"→fluid, max→isMax
Content Content Auto
Dropdown Dropdown Structure auto; controlled value/onChange and color (the trigger's) flagged
Element — Flagged: no generic element; use a semantic component + helper props
Footer Footer Auto
Form.* flat imports See Form table below
Heading Title / SubTitle / <h1 class="heading"> Auto for literal subtitle/heading (by value, not presence — subtitle={false} is Title); the heading label stays the element RBC rendered (<h1>, or a literal renderAs) with its size and weight classes, flagged, since Bulma v1 has no rule for the class; dynamic value flagged; size may become textSize
Hero Hero Auto; hasNavbar→fullheightWithNavbar; halfheight/gradient flagged
Icon Icon <i class="fas fa-x"> children → name/library/variant props; else flagged
Image Image Auto; numeric size={128} → size="128x128", rounded→isRounded
Level Level Auto; breakpoint="mobile"→isMobile
Loader plain <div className="loader"> Auto (Bulma v1 still ships the class); swap in bestax's Loader by hand for its progressbar role and accessible name
Media Media Auto
Menu Menu Auto
Message Message Auto; unknown or dynamic size flagged
Modal Modal show→active, closeOnEsc→closeOnEscape; closeOnBlur/showClose flagged (compound form renders neither)
Navbar Navbar Auto; see dropdown note below
Notification Notification Auto; light→isLight
Pagination Pagination onChange→onPageChange, delta→siblingCount, next/previous→nextLabel/previousLabel; showFirstLast/showPrevNext/autoHide flagged
Panel Panel Auto
Progress Progress Auto
Section Section Auto
Table Table Auto; size="fullwidth"→isFullwidth, striped→isStriped, …
Tabs Tabs Auto; children wrapped in a plain <ul>; type="toggle-rounded"→toggle rounded
Tag Tag Auto; remove→isDelete, rounded→isRounded
Tile — Flagged: Bulma v1 replaced tiles with Grid/Cell

Compound sub-components

RBC bestax
Breadcrumb.Item plain <li><a href=…> (active → is-active), or the renderAs tag
Button.Group Buttons (align="right"→isRight); unknown or dynamic size flagged
Card.Header / .Title / .Icon Card.Header / .Header.Title / .Header.Icon
Card.Image Card.Image wrapping an inner <Image>
Card.Content Card.Content
Card.Footer / Card.Footer.Item Card.Footer / Card.FooterItem
Columns.Column Column (flat import)
Dropdown.Item / .Divider Dropdown.Item / Dropdown.Divider
Hero.Header / .Body / .Footer Hero.Head / Hero.Body / Hero.Foot
Icon.Text IconText
Level.Side align / Level.Item Level.Left or Level.Right / Level.Item
Media.Item align MediaLeft / MediaContent / MediaRight (flat)
Menu.List (+ title) Menu.List (+ a Menu.Label sibling)
Menu.List.Item Menu.Item
Message.Header / .Body Message.Header / Message.Body
Modal.Content Modal.Content
Modal.Card .Header/.Body/.Footer/.Title Modal.Card .Head/.Body/.Foot/.Title
Navbar.Brand/.Burger/.Menu/.Item/.Link/.Divider same names
Navbar.Container align Navbar.Start / Navbar.End
Navbar.Item wrapping a dropdown Navbar.Dropdown (container)
Navbar.Dropdown (the menu) Navbar.DropdownMenu
Panel.Header Panel.Heading
Panel.Tabs / Panel.Tabs.Tab Panel.Tabs / plain <a> children
Panel.Block / Panel.Icon Panel.Block / Panel.Icon (icon child → name)
Table.Container isResponsive on the child Table, which takes the container's aria-label or aria-labelledby unless it has its own (or <div class="table-container">)
Tabs.Tab Tabs.Item (inside a generated plain <ul>)
Tag.Group Tags (gapless → hasAddons)

Form namespace → flat imports

RBC bestax
Form.Field Field (kind="group"→grouped, kind="addons"→hasAddons, align folds into the value, multiline→grouped="multiline")
Form.Field.Label FieldLabel
Form.Field.Body FieldBody
Form.Control Control (fullwidth→isExpanded, loading→isLoading)
Form.Input Input (rounded→isRounded, status="focus"→isFocused)
Form.Label plain <label className="label">
Form.Textarea TextArea (fixedSize→hasFixedSize)
Form.Select Select (loading→isLoading, fullwidth→isFullwidth)
Form.Checkbox Checkbox
Form.Radio Radio
Form.Help plain <p className="help is-…"> (prefer Field message/messageColor)
Form.InputFile File (filename→fileName+hasName, boxed→isBoxed, label→buttonLabel)

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