project-to-componentlisted
Install: claude install-skill vipincode/exr-agent-skills
# project-to-component
Reproduce a screen that exists in **another codebase** as a production page in the **target Next.js + Tailwind + shadcn/ui project** — porting the *design*, not the code. The source project (a design mock, a legacy app, someone else's frontend) is a **layout / structure / spacing / visual reference only**: its styling system, custom UI components, and framework idioms stay behind. Everything is re-created with the target's design system — oklch theme tokens, shadcn/ui primitives, the shared component library, and the project's conventions.
This is the third member of the design-to-code family. `figma-to-component` reads Figma, `html-to-component` reads an HTML file/URL, this one reads a **project**. All three follow the same rules downstream: contract files first, dedup-first building, one home per component, tokens not raw values.
## The three problems this skill solves
1. **Foreign styling doesn't transplant.** The source styles with CSS Modules, styled-components, SCSS, hex CSS variables, or a different Tailwind theme. Copying any of that across (a `.module.css`, a hex value, a `var(--color-accent)`) produces a page that ignores the target's theme and dies at the next redesign. The fix: derive a **translation map** once per source project — every recurring source value mapped to a target token, every source custom component mapped to a shadcn/shared equivalent — and route every pixel through it.
2. **Designs repeat, ports duplicate.** The same he