chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable…
Review, convert, and improve UI code using Chakra UI v3. Use this skill whenever a user wants to review Chakra UI code for issues, convert plain HTML/CSS, Tailwind, CSS Modules, or styled-components to Chakra UI, clean up messy Chakra components, fix layout structure or token
$ npx -y skills add chakra-ui/chakra-ui --skill chakra-ui-refactor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/chakra-ui-refactorContext preview
The summary Claude sees to decide when to auto-load this skill.
Review, convert, and improve UI code using Chakra UI v3. Use this skill whenever a user wants to review Chakra UI code for issues, convert plain HTML/CSS, Tailwind, CSS Modules, or styled-components to Chakra UI, clean up messy Chakra components, fix layout structure or token
name: chakra-ui-refactor description: > Review, convert, and improve UI code using Chakra UI v3. Use this skill whenever a user wants to review Chakra UI code for issues, convert plain HTML/CSS, Tailwind, CSS Modules, or styled-components to Chakra UI, clean up messy Chakra components, fix layout structure or token usage, or asks anything like "is this correct", "what's wrong with this", "review my component", "refactor this", "clean up", "convert", or "chakra-ify this" — even without the words "review" or "refactor". Trigger on any request to check, improve, or convert Chakra UI code, however casually phrased.
You are reviewing and improving UI code using Chakra UI v3. Depending on what the developer needs, you produce a structured critique, rewritten code, or both. Read the code and project context fully before producing any output.
---
Before any output, establish:
styled-components
"review my code" → produce a critique with targeted fixes, no full rewrite
this up" → produce rewritten code
State your reading at the top of the response (e.g. "Reviewing as existing Chakra v3 code. Assuming Next.js App Router.").
If code isn't shared yet, ask for it. Don't review a description of code.
---
Work through the code across these dimensions regardless of output mode. For review, they become findings. For refactor, they become the checklist of what to fix.
**Accessibility**
buttons, `htmlFor`/`id` on label+input pairs, `alt` on images)
elements are actually focusable)
style shortcut)
`Field.ErrorText`?
**Responsiveness**
viewports)
**Chakra API correctness**
`colorScheme`, `gap` not `spacing`, `open` not `isOpen`)
`Dialog.Root`/`Dialog.Content`, etc.)
`useColorModeValue`, `sx` prop)
**Token and style usage**
`bg="bg.subtle"`)
respect dark mode.
**Component structure**
be cleaner?
`SimpleGrid`)
**Maintainability**
recipe)
---
Use this when the user wants a critique, not a rewrite.
Categorize findings by impact:
**Critical** — bugs and accessibility failures that break behavior or exclude users
v3)
**Improvements** — correctness and quality issues that aren't urgent
**Optional suggestions** — non-blocking ideas
For each critical issue and significant improvement, show a minimal fix:
**Missing aria-label on close button** (Critical)
The IconButton for closing the dialog has no accessible label.
// Before
<IconButton icon={<CloseIcon />} onClick={onClose} />
// After
<IconButton aria-label="Close dialog" icon={<CloseIcon />} onClick={onClose} />Skip sections with nothing to report. Calibrate length to the code — a 20-line component needs a tight review, not an exhaustive one.
---
Use this when the user wants rewritten code.
**From plain HTML / CSS**
| HTML | Chakra equivalent | | ------------------------ | ------------------------------------------- | | `<div>` layout wrapper | `Box`, `Flex`, `Stack`, `Grid` | | `<section>`, `<article>` | `Box as="section"`, `Box as="article"` | | `<nav>` | `Box as="nav"` | | `<ul>` / `<li>` | `Box as="ul"`
Chakra UI is a component system for building SaaS products with speed ⚡️
Repo: chakra-ui/chakra-ui
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable…
Migrate Chakra UI projects from v2 to v3, covering package changes, codemods, provider setup, color mode, prop renaming, compound components, theming, recipes,…