# Shadcn Preset Refactor

> 将指定 shadcn preset 应用于现有前端，保留业务行为。

- Skill: `bronc-x/shadcn-preset-refactor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add bronc-x/shadcn-preset-refactor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bronc-x/shadcn-preset-refactor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bronc-x (https://skillmd.com/u/bronc-x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/bronc-x/shadcn-preset-refactor

---


# Shadcn preset refactor

Treat the preset as a design-system input, not permission to rewrite the application.

Read [references/full-workflow.md](references/full-workflow.md) before applying a preset to an existing project. A review or feasibility question can use only the relevant section.

Preserve business logic, routes, data flow, analytics, accessibility, and unrelated dirty files. Inspect the preset output in a disposable location, map its tokens and primitives to the existing system, then migrate the smallest coherent surface. Do not use destructive Git commands to recover from conflicts.

Completion means the selected surface uses the intended preset, existing behavior remains intact, relevant builds and tests pass, the rendered result is inspected at affected viewports, and failures have been fixed and rechecked.

