/softlight:clone-appfrom softlight
Clone elements of an existing application to demonstrate a design problem and to use as the basis for future design work.
Ships in softlight. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<problem>Description of a design problem the user is exploring in the application.
<source_code_dir>Absolute path to the source application's codebase. Read TSX/CSS/asset files from here when collecting the page you need to reproduce.
<cloned_code_dir>Absolute path to the pre-scaffolded clone project. Write all your output here.
The harness has already populated this directory with package.json,
vite.config.ts, tsconfig.json, index.html, src/main.tsx, and a
placeholder src/App.tsx, and has run pnpm install.
Your goal is to write the source code for a clone of the application described
by the <problem> into <cloned_code_dir> so it shows EXACTLY what a user
would see if they opened the real application in their browser right now. If a
user held the real app and your preview side by side, they should not be able
to tell which is which.
You are responsible for writing the application code into
<cloned_code_dir>/src/ and getting pnpm build (run from
<cloned_code_dir>) to pass. Do not scaffold a new project, do not run
pnpm preview, and do not start a tunnel — the harness owns those.
CRITICAL — always render the FULL PAGE, not just a component:
Before gathering code, build a complete picture of the page:
Produce the FULL PAGE with the feature visible — all components composed together in their correct positions. NOT a standalone preview of the single component the user mentioned. If the feature lives on the settings page, you provide the entire settings page. If it lives on a dashboard, you provide the entire dashboard. One page, one complete browser viewport. Pick the single most representative state (e.g. the state where the feature is visible and the page has realistic content).
When the feature involves an element that appears on top of or within a page — a dropdown menu, a modal, a tooltip, a popover, a slide-out panel, a toast — always provide the full page code with that element rendered open and visible. Never provide these elements in isolation. The user needs to see where the element is anchored, what it overlays, and how it relates to the surrounding UI. Include all sibling elements too — for example, if the feature is a new menu item under a user icon, the app should show the entire page with the menu open, including all existing menu items, not just the menu by itself.
CRITICAL — self-containment (import graph): For EVERY relative import in every file you collected, make sure the imported file is ALSO in your collection. Walk the full import graph — utilities, hooks, types, constants, context providers, everything. If a file imports "./utils/cn", that utils file must be included. Missing files are the #1 cause of build failures.
CRITICAL — output a Vite + React app (client-side only): The clone is served through a tunnel proxy that rewrites HTML responses (rewriting URLs, injecting scripts). Server-side rendering frameworks break in this setup because the proxy modifies the server-rendered HTML, causing hydration mismatches on the client. The clone must be a plain client-side React app built with Vite. No SSR, no hydration, no server rendering. If the source app uses a framework that does server-side rendering, fully deframework it — the output must have zero dependencies on the original framework.
CRITICAL — no server-side or Node.js APIs: This runs in the browser. You must remove or replace:
Styling:
<link> tags in the root index.html, @import rules in CSS,
@font-face with bundled .woff/.woff2/.ttf/.otf files,
design-system stylesheet imports like @radix-ui/themes/styles.css,
and any --default-font-family / --heading-font-family variables
those wrappers define. Bring ALL of them over to the clone exactly as
the source delivers them. The most common miss is a Google Fonts
<link> in the root index.html paired with a font variable on a
theme root — both must come together. Page-level CSS using
font-family: inherit is a signal the typography is configured higher
up in the app shell; go find it before assuming there's nothing to
copy. Do the same for static assets (images, icons, logos, brand
assets) — copy the real files and preserve the relative paths used in
src / href attributes. Missing fonts and assets are immediately
visible and make the clone look wrong.Data:
IMPORTANT: The code must represent the CURRENT state of the existing UI — how it looks TODAY, before any changes. Do NOT mock up planned changes — Softlight needs to see the real starting point so it can design the improvements.
Write all the code for the application into src/. Generate all TypeScript
code for the clone in one .tsx file (replacing the placeholder
src/App.tsx) and generate all CSS styles for the clone in one .css
file. This limits the number of tool calls required to generate the
application and reduces the likelihood of import errors.
Keep running pnpm build (from the clone directory) and fixing errors
until the build passes. The harness will run and tunnel the app once you
return.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/generate-mocksCreate one focused set of live intake sketches from the transcript and screenshots./generate-prototypeBuild a standalone prototype app from the baseline clone that implements a design idea, run it on its own port, and register it on the canvas./present-canvasOwn the canvas as a communication artifact. Organize and narrate the designer's exploration so the PM can review it and make decisions./run-designer-codegenTurn a Softlight design-jam transcript into three hi-fi prototype PRDs./softlightCreate a Softlight project backed by a long-running agent./start-tunnelCreate a tunnel between a local port and Softlight. Requires an application to already be listening on the port. Returns the tunnel ID and PID.npx claudepluginhub orianna-ai/claude-plugin --plugin softlight