chakra-ui-refactor

chakra-ui-refactor is a skill for Claude Code, Codex from punkadillo/figma-code-composer. It costs 139 tokens per session (2,755 once invoked), scanned A, a copy of chakra-ui-refactor, MIT.

Instructions for reviewing or refactoring user-interface code with Chakra UI version 3. Chakra UI is a React component library that provides reusable interface elements and styling tools.

In plain words
What is it for?
Use them to review, fix, or convert HTML, CSS, Tailwind, CSS Modules, styled-components, or Chakra UI code in a React project.
Why use it?
They make the review account for the project's framework, Chakra version, source style, and the difference between asking for critique and asking for rewritten code. This reduces the risk of applying the wrong kind of change.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/punkadillo/figma-code-composer/chakra-ui-refactor
Any agent
npx skills add punkadillo/figma-code-composer --skill chakra-ui-refactor
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chakra-ui-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/chakra-ui-refactor.svg)](https://agentmods.dev/skills/punkadillo/figma-code-composer/chakra-ui-refactor)
Your own site
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/chakra-ui-refactor"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/chakra-ui-refactor.svg" alt="Measured on agentmods" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00139 $0.02755
Opus 5 $0.00069 $0.01378
Sonnet 5 $0.00028 $0.00551
Haiku 4.5 $0.00014 $0.00276

Measured 4d ago against content hash 7b9a8bed2596, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

chakra-ui-refactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to chakra-ui-refactor — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.figma-pipeline/skills/chakra-ui-refactor/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chakra UI Refactor & Review

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.


Step 1 — Orient and determine intent

Before any output, establish:

  • Chakra UI version — check package.json; use v3 by default
  • Framework — Next.js App Router, Pages Router, Vite, plain React
  • Source type — existing Chakra, plain HTML/CSS, Tailwind, CSS Modules, styled-components
  • What the user is asking:
    • Review only — "check this", "is this correct/idiomatic", "what's wrong", "review my code" → produce a critique with targeted fixes, no full rewrite
    • Refactor / convert — "refactor this", "convert from Tailwind", "clean this up" → produce rewritten code
    • Both — "review and fix" → critique first, then the 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.


Step 2 — Analyze the 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

  • Do all interactive elements have accessible labels? (aria-label on icon buttons, htmlFor/id on label+input pairs, alt on images)
  • Is keyboard navigation possible? (focus rings not suppressed, interactive elements are actually focusable)
  • Does the heading hierarchy make sense? (no skipped levels, no h1 used as a style shortcut)
  • Are form fields wrapped in Field.Root with Field.Label and Field.ErrorText?
  • Does the component work without color as the only signal?

Responsiveness

  • Do layout components specify behavior at multiple breakpoints?
  • Are there hardcoded pixel values where responsive tokens would work better?
  • Would this break on mobile? (fixed widths, overflow: hidden on small viewports)

Read the full file on GitHub · 285 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 285 lines · 139 tokens per session scan A 7b9a8bed2596

Subscribe to this mod's changes

chakra-ui-refactor is a skill published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 16d ago), licensed MIT. It adds 139 tokens to every session and 2,755 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to chakra-ui-refactor, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ux-design

Create comprehensive UX design with user flows, wireframes, and design systems.

a5c-ai/babysitter · 0 tokens

moai-domain-frontend

Frontend development specialist covering React 19, Next.js 16, Vue 3.5, and modern UI/UX patterns with component architecture. Use when building web UIs, implementing components, optimizing frontend performance, or integrating state management.

modu-ai/moai-adk · 54 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

figma-build

Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g.…

awdr74100/figwright · 180 tokens

from-intake

다른 워크스페이스에서 넘겨받은 자료에서 브랜드 근거를 뽑아 에셋에 반영한다.

TOKTOKHAN-DEV/agent-company · 3 tokens

kirby-panel-and-blueprints

Designs Kirby blueprints and Panel UI, including blueprint reuse/extends, programmable blueprints, and custom Panel fields/sections/areas. Use when changing the Panel experience or schema.

bnomei/kirby-mcp · 44 tokens