restyle
Skill14 starsChanged 4 months agoMITView on GitHub
Rebrand a cloned website with your own identity — swaps colors, fonts, logo, favicons, and rewrites all copy for your brand while keeping the cloned layout, spacing, animations, and interactions pixel-intact. Run after /clone-website. Reads BRAND.md at the repo root. Use when the user wants to "make it mine", rebrand, restyle, or customize the clone.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/project.mdcCursor rule
- clone-websiteSkill
- restyleSkill
- clone-websiteSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read BRAND.md at the repo root.
- Very specific: line 18
If the user has brand assets (logo files, product screenshots), ask them to drop the files into public/brand/ and tell you the filenames.
- Very specific: line 42
Check every page route, not just /.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Restyle
Turn the cloned site into the user's site: their brand, their words, their logo — on top of the cloned structure. Layout, spacing, animations, and interactions stay untouched. That separation works because the clone pipeline keeps all content in src/data/*.ts and all brand tokens in globals.css — you swap those layers only.
$ARGUMENTS
Step 1 — Read the brand
Read BRAND.md at the repo root. If it's missing or has unfilled TODO fields, ask the user for what's missing (max 3 questions at a time). Never ask for secrets in chat — anything sensitive belongs in env files, not BRAND.md.
If the user has brand assets (logo files, product screenshots), ask them to drop the files into public/brand/ and tell you the filenames.
Step 2 — Take "before" screenshots
npm run dev # background
node scripts/extract/screenshot.mjs http://localhost:3000 --name before-restyleThese are your regression reference: after restyling, layout must still match them structurally.
Step 3 — Swap the brand layers (in this order)
- Colors —
src/app/globals.css: replace the cloned palette in:root/.darkwith the brand colors from BRAND.md. Keep the same token names so no component changes. Preserve relative contrast: if the original had a dark section, keep it dark in the new palette. - Fonts —
src/app/layout.tsx: swapnext/fontfamilies to the brand fonts. Keep the size/weight structure the clone extracted — only families change. - Logo & icons — replace
LogoIconinsrc/components/icons.tsx(or the logo<img>asset) with the brand logo frompublic/brand/. Keep the rendered dimensions of the original logo so the header layout doesn't shift. - Favicons & SEO — regenerate
public/seo/(favicon, apple-touch-icon, OG image if provided), updatelayout.tsxmetadata: title, description, OG tags — from BRAND.md positioning. - Copy — rewrite every string in
src/data/*.tsfor the brand: same structure, same approximate length (±20% — long copy breaks cloned layouts), brand voice from BRAND.md. Headlines sell the user's offer, not the original company's. Placeholder patterns like testimonials get realistic brand-appropriate content clearly marked as placeholders unless BRAND.md provides real ones. - Images — where the clone shows the original company's product shots, swap in files from
public/brand/if provided; otherwise leave the cloned image and list it in the report as "needs replacement".
Step 4 — Verify
npm run build— must passnode scripts/extract/screenshot.mjs http://localhost:3000 --name after-restyle- Compare before/after at all 3 viewports: layout identical, only brand layers changed. Overflowing text = shorten the copy, never change the layout.
- Check every page route, not just
/.
Report
- What was swapped (colors, fonts, logo, favicon, N copy blocks across M data files)
- Images still showing the original site's content (need user-provided replacements)
- Any copy that had to be shortened/lengthened to fit
- Anything in BRAND.md still marked TODO
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

