web-clone
Skill5 starsChanged 13 days agoMITView on GitHub
URL-driven website cloning with visual + functional verification
5 other projects use a version of this.
Adopted by
Most recently taken up by
- imMamdouhaboammar/Mimeratheir own version, first seen Nov 8, 2026
- betterlmy/agent-skillstheir own version, first seen Oct 15, 2026
- Jane-xiaoer/claude-skill-web-clonetheir own version, first seen Jun 30, 2026
- acentrist/web-clone-skillstheir own version, first seen May 30, 2026
- an8079/take-skillstheir own version, first seen Mar 30, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Jane-xiaoer/claude-skill-web-clone★ 981same name
- an8079/take-skills★ 4same name
- betterlmy/agent-skills★ 3same name
- acentrist/web-clone-skills★ 1same name
- imMamdouhaboammar/Mimera★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- frontend-designSkill
- python-background-jobsSkill
- python-executorSkill
- python-testing-patternsSkill
- seoSkill
- ai-slop-cleanerSkill
- analyzeSkill
- api-and-interface-designSkill
- ask-claudeSkill
- ask-geminiSkill
- autopilotSkill
- browser-testing-with-devtoolsSkill
- build-fixSkill
- cancelSkill
- ci-cd-and-automationSkill
- clawd-change-workflowSkill
- code-review-and-qualitySkill
- code-reviewSkill
- code-simplificationSkill
- configure-notificationsSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deep-interviewSkill
- deepsearchSkill
- deprecation-and-migrationSkill
- doctorSkill
- documentation-and-adrsSkill
- ecomodeSkill
- frontend-ui-engineeringSkill
- frontend-ui-uxSkill
- git-masterSkill
- git-workflow-and-versioningSkill
- helpSkill
- hudSkill
- idea-refineSkill
- incremental-implementationSkill
- intent_routerSkill
- keyword_registrySkill
- mode_stateSkill
- noteSkill
- omx-setupSkill
- performance-optimizationSkill
- pipeline_orchestratorSkill
- pipelineSkill
- planning-and-task-breakdownSkill
- planSkill
- ralph-initSkill
- ralph_loopSkill
- ralphSkill
- ralplanSkill
- android-reverse-engineeringSkill
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- browser-automationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 13 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Legal notice: Only clone sites you own or have explicit permission to replicate.
- Very specific: line 48
Before first tool use, call ToolSearch("browser") or ToolSearch("playwright") to discover available browser tools.
- Distinctive: line 49
If no browser tools are found, instruct the user:
- Very specific: line 64
Before first MCP tool use, call ToolSearch("browser") or ToolSearch("playwright") to discover deferred Playwright MCP tools.
- Distinctive: line 65
If no browser tools are found, stop immediately and instruct the user to configure Playwright MCP.
- Very specific: line 66
Use browser_snapshot (accessibility tree) for structural understanding — it is far more token-efficient than screenshots.
- Very specific: line 67
Use browser_take_screenshot only when visual verification is needed (Pass 1 baseline, Pass 4 comparison).
- Very specific: line 68
Use browser_evaluate for DOM/style extraction — pass the scripts from this skill EXACTLY as written (do not modify them).
- Very specific: line 69
If running within ralph, use state_write / state_read for web-clone state persistence between iterations.
- Very specific: line 76
After Pass 1 completes: Write extraction summary to .omx/state/{scope}/web-clone-extraction.json containing:
- Very specific: line 84
On completion or failure: Write final status with completed_at or failed_at timestamp.
- Very specific: line 90
DOM tree: If the serialized JSON exceeds ~30KB, reduce depth parameter from 8 to 4 and re-extract.
- Distinctive: line 91
Accessibility snapshot: If it exceeds ~20KB, this is normal for complex pages.
- Distinctive: line 159
Keep all extraction results in working memory for Pass 2.
- Distinctive: line 209
Scaffold: Create the directory structure and base files.
- Very specific: line 215
Use actual extracted text content.
- Distinctive: line 221
Responsive: If the original uses responsive breakpoints (detectable from media queries in computed styles or from viewport behavior), add …
- Distinctive: line 227
Serve the clone: Start a local server for the generated project:
- Very specific: line 231
If npx serve is unavailable, fall back to: python3 -m http.server 3456 -d {output_dir}.
- Very specific: line 236
Run $visual-verdict with: reference_images=["target-full.png"], generated_screenshot="clone-full.png", category_hint="web-clone".
- Distinctive: line 244
Functional spot-check: Test 2–3 detected interactions via Playwright:
- Very specific: line 248
Use browser_click and browser_snapshot to verify state changes.
- Distinctive: line 292
After each verification pass, emit a composite web-clone verdict JSON:
- Distinctive: line 330
Structure pass: all major landmarks present
- Distinctive: line 331
Overall pass: all three dimensions pass
- Distinctive: line 336
Playwright MCP unavailable: Stop. Instruct user to configure it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<Purpose>
Clone a target website from its URL, replicating both visual appearance and core interactive functionality. Uses Playwright MCP for live page extraction, LLM-driven code generation, and iterative verification with `$visual-verdict` for visual scoring.
</Purpose><Use_When>
- User provides a target URL and wants the site replicated as working code
- User says "clone site", "clone website", "copy webpage", or "web-clone"
- Task requires both visual fidelity AND functional parity with the original
- Reference is a live URL (not a static screenshot — use
$visual-verdictfor screenshot-only tasks) </Use_When>
<Do_Not_Use_When>
- User only has screenshot references without a live URL — use
$visual-verdictdirectly - User wants to modify, redesign, or "improve" the site — use standard implementation flow
- Target requires authentication, payment flows, or backend API parity — out of scope for v1
- Multi-page / multi-route deep cloning — v1 handles single-page scope only </Do_Not_Use_When>
<Scope_Limits> v1 scope: Single page clone of the provided URL.
Included:
- Layout structure (header, nav, content areas, sidebar, footer)
- Typography (font families, sizes, weights, line heights)
- Colors, spacing, borders, border-radius
- Core interactions: navigation links, buttons, form elements, dropdowns, modals, toggles
- Responsive hints from the extracted layout (flexbox/grid patterns)
Excluded:
- Backend API integration or data fetching
- Authentication flows or protected content
- Dynamic/personalized content (user-specific data)
- Multi-page crawling or route graph cloning
- Third-party widget functionality (maps, embeds, chat widgets)
- Image/asset replication (use placeholders for external images)
Legal notice: Only clone sites you own or have explicit permission to replicate. Respect copyright and trademarks. </Scope_Limits>
<Prerequisites>
Playwright MCP server must be available for browser automation.- Before first tool use, call
ToolSearch("browser")orToolSearch("playwright")to discover available browser tools. - If no browser tools are found, instruct the user:
Playwright MCP is required. Configure it: codex mcp add playwright npx "@playwright/mcp@latest" - Required tools:
browser_navigate,browser_snapshot,browser_take_screenshot,browser_evaluate,browser_wait_for. Optional:browser_click,browser_network_requests.</Prerequisites>
<Inputs>
- `target_url` (required): The URL to clone
- `output_dir` (optional, default: current working directory): Where to generate the clone project
- `tech_stack` (optional, inferred from project context): HTML/CSS/JS, React, Vue, Svelte, etc.
</Inputs><Tool_Usage>
- Before first MCP tool use, call
ToolSearch("browser")orToolSearch("playwright")to discover deferred Playwright MCP tools. - If no browser tools are found, stop immediately and instruct the user to configure Playwright MCP.
- Use
browser_snapshot(accessibility tree) for structural understanding — it is far more token-efficient than screenshots. - Use
browser_take_screenshotonly when visual verification is needed (Pass 1 baseline, Pass 4 comparison). - Use
browser_evaluatefor DOM/style extraction — pass the scripts from this skill EXACTLY as written (do not modify them). - If running within ralph, use
state_write/state_readfor web-clone state persistence between iterations. - Skip Codex consultation for straightforward extraction; use it only if verification repeatedly fails on the same issue. </Tool_Usage>
<State_Management> Persist extraction and progress data so the pipeline can resume if interrupted.
- After Pass 1 completes: Write extraction summary to
.omx/state/{scope}/web-clone-extraction.jsoncontaining:target_url,extracted_attimestampscreenshot_path(path totarget-full.png)landmark_count(number of nav, main, footer, form elements)interactive_count(number of detected interactive elements)extraction_size_kb(approximate size of DOM extraction data)
- After each Pass 4 verification: Append the composite verdict to
.omx/state/{scope}/web-clone-verdicts.json. - When running within ralph: Also persist the
visualportion of the composite verdict to.omx/state/{scope}/ralph-progress.jsonfor ralph compatibility, mappingvisual.score→ top-levelscoreandvisual.verdict→ top-levelverdict. - On completion or failure: Write final status with
completed_atorfailed_attimestamp. </State_Management>
<Context_Budget> Pass 1 extraction can produce very large data. Apply these limits proactively:
- DOM tree: If the serialized JSON exceeds ~30KB, reduce
depthparameter from 8 to 4 and re-extract. Focus on top-level structure. - Accessibility snapshot: If it exceeds ~20KB, this is normal for complex pages. Summarize key landmarks rather than keeping the full tree.
- Interactive elements: Cap at 50 elements. If more exist, keep only visible ones (
isVisible: true). - Total extraction context: Aim for under 60KB combined. If exceeded, prioritize: screenshot > accessibility snapshot > interactive elements > DOM styles.
- Image tokens: Full-page screenshots are expensive. Take one baseline in Pass 1 and one comparison in Pass 4. Do not take screenshots between iterations unless debugging a specific region. </Context_Budget>
<Steps>Pass 1 — Extract
Capture the target page's structure, styles, interactions, and visual baseline.
- Navigate:
browser_navigatetotarget_url. - Wait for render:
browser_wait_forwith appropriate condition (network idle or timeout of 5s) to ensure full render including lazy-loaded content. - Accessibility snapshot:
browser_snapshot— captures the semantic tree (roles, names, values, interactive states). This is your primary structural reference. - Full-page screenshot:
browser_take_screenshotwithfullPage: true— save as reference baselinetarget-full.png. - DOM + computed styles:
browser_evaluatewith the following script. COPY THIS SCRIPT EXACTLY — do not modify it:(() => { const walk = (el, depth = 0) => { if (depth > 8 || !el.tagName) return null; const cs = window.getComputedStyle(el); return { tag: el.tagName.toLowerCase(), id: el.id || undefined, classes: [...el.classList].slice(0, 5), styles: { display: cs.display, position: cs.position, width: cs.width, height: cs.height, padding: cs.padding, margin: cs.margin, fontSize: cs.fontSize, fontFamily: cs.fontFamily, fontWeight: cs.fontWeight, lineHeight: cs.lineHeight, color: cs.color, backgroundColor: cs.backgroundColor, border: cs.border, borderRadius: cs.borderRadius, flexDirection: cs.flexDirection, justifyContent: cs.justifyContent, alignItems: cs.alignItems, gap: cs.gap, gridTemplateColumns: cs.gridTemplateColumns, }, text: el.childNodes.length === 1 && el.childNodes[0].nodeType === 3 ? el.textContent?.trim().slice(0, 100) : undefined, children: [...el.children].map(c => walk(c, depth + 1)).filter(Boolean), }; }; return walk(document.body); })() - Interactive elements:
browser_evaluateto catalog all interactable elements. COPY THIS SCRIPT EXACTLY — do not modify it:(() => { const results = []; document.querySelectorAll( 'button, a[href], input, select, textarea, [role="button"], ' + '[onclick], [aria-haspopup], [aria-expanded], details, dialog' ).forEach(el => { results.push({ tag: el.tagName.toLowerCase(), type: el.type || el.getAttribute('role') || 'interactive', text: (el.textContent || '').trim().slice(0, 80), href: el.href || undefined, ariaLabel: el.getAttribute('aria-label') || undefined, isVisible: el.offsetParent !== null, }); }); return results; })() - Network patterns (optional):
browser_network_requests— note XHR/fetch calls for reference. Do not attempt to replicate backends.
Keep all extraction results in working memory for Pass 2.
Pass 2 — Build Plan
Analyze extraction results and decompose into a component plan.
- Identify page regions: From DOM tree + accessibility snapshot, identify major sections:
- Navigation bar / header
- Hero / banner section
- Main content area(s)
- Sidebar (if present)
- Footer
- Overlay elements (modals, drawers)
- Map components: For each region, define:
- Component name and responsibility
- Key style properties (from computed styles)
- Content summary (headings, text, images)
- Child components if nested
- Create interaction map: From interactive elements list:
- Navigation links → anchor tags with
href - Form elements → proper
<form>with inputs, labels, validation - Buttons → click handlers (toggle, submit, navigate)
- Dropdowns/modals → show/hide toggle with transitions
- Accordions/tabs → state-based visibility
- Navigation links → anchor tags with
- Extract design tokens: Identify recurring values:
- Color palette (primary, secondary, background, text colors)
- Font stack (families, size scale, weight scale)
- Spacing scale (padding/margin patterns)
- Border radius values
- Define file structure:
Adapt to{output_dir}/ ├── index.html (or App.tsx / App.vue) ├── styles/ │ ├── globals.css (reset + tokens) │ └── components.css (or scoped styles) ├── scripts/ │ └── interactions.js (toggle, modal, dropdown logic) └── assets/ (placeholder images)tech_stackif specified (React components, Vue SFCs, etc.).
Pass 3 — Generate Clone
Implement the clone from the plan. Work component-by-component.
- Scaffold: Create the directory structure and base files.
- Design tokens first: Implement CSS custom properties or Tailwind config from extracted tokens.
- Layout shell: Build the page-level layout matching the original's flexbox/grid structure.
- Components: Implement each region top-down:
- Match DOM structure from extraction (semantic tags, landmark roles)
- Apply computed styles — prioritize layout properties, then typography, then decorative
- Use actual extracted text content; use placeholder
<img>for external images
- Interactions: Wire up detected behaviors:
- Navigation: working
<a>tags (to#anchors or stubs for v1) - Forms: proper structure with
<label>, input types, placeholder text - Toggles: JavaScript for dropdowns, modals, accordions
- Hover/focus states: CSS transitions matching original behavior
- Navigation: working
- Responsive: If the original uses responsive breakpoints (detectable from media queries in computed styles or from viewport behavior), add basic responsive rules.
Pass 4 — Verify
Compare the clone against the original across three dimensions.
- Serve the clone: Start a local server for the generated project:
Ifnpx serve {output_dir} -l 3456 --no-clipboardnpx serveis unavailable, fall back to:python3 -m http.server 3456 -d {output_dir}. The clone will be accessible athttp://localhost:3456. - Visual verification:
- Navigate to the clone with Playwright:
browser_navigateto clone URL. - Take full-page screenshot of clone.
- Run
$visual-verdictwith:reference_images=["target-full.png"],generated_screenshot="clone-full.png",category_hint="web-clone". - The visual portion of the verdict feeds directly into the composite verdict below.
- Visual pass threshold: score >= 85.
- Navigate to the clone with Playwright:
- Structural verification: Compare landmark counts:
- Count
<nav>,<main>,<footer>,<form>,<button>,<a>in both original and clone. - Structure passes when all major landmarks exist (missing landmarks = fail).
- Count
- Functional spot-check: Test 2–3 detected interactions via Playwright:
- Click a navigation link → verify URL change or scroll behavior
- Toggle a dropdown/modal → verify visibility change
- Interact with a form field → verify it accepts input
- Use
browser_clickandbrowser_snapshotto verify state changes.
- Emit composite verdict:
{
"visual": {
"score": 82,
"verdict": "revise",
"category_match": true,
"differences": ["Header spacing tighter than original"],
"suggestions": ["Increase nav gap to 24px"]
},
"functional": {
"tested": 3,
"passed": 2,
"failures": ["Dropdown does not open on click"]
},
"structure": {
"landmark_match": true,
"missing": [],
"extra": []
},
"overall_verdict": "revise",
"priority_fixes": [
"Fix dropdown toggle interaction",
"Increase header nav spacing"
]
}Pass 5 — Iterate
Fix highest-impact issues and re-verify.
- Prioritize fixes by impact: layout > interactions > spacing > typography > colors.
- Apply targeted edits: Fix only the issues listed in
priority_fixes. Do not refactor working code. - Re-verify: Repeat Pass 4.
- Loop: Continue until
overall_verdictispassOR max 5 iterations reached. - Final report: Summarize what was successfully cloned, any remaining differences, and elements that could not be replicated.
</Steps><Output_Contract> After each verification pass, emit a composite web-clone verdict JSON:
{
"visual": {
"score": 0,
"verdict": "revise",
"category_match": false,
"differences": ["..."],
"suggestions": ["..."],
"reasoning": "short explanation"
},
"functional": {
"tested": 0,
"passed": 0,
"failures": ["..."]
},
"structure": {
"landmark_match": false,
"missing": ["..."],
"extra": ["..."]
},
"overall_verdict": "revise",
"priority_fixes": ["..."]
}Rules:
visualfollows theVisualVerdictshape from$visual-verdictfunctional.tested/passedare counts;failureslist specific interaction failuresstructure.landmark_matchistruewhen all major HTML landmarks (nav, main, footer, forms) are presentoverall_verdict:passwhen visual.score >= 85 AND functional.failures is empty AND structure.landmark_match is truepriority_fixes: ordered by impact, drives the next iteration </Output_Contract>
<Iteration_Thresholds>
- Visual pass: score >= 85
- Functional pass: zero failures on tested interactions
- Structure pass: all major landmarks present
- Overall pass: all three dimensions pass
- Max iterations: 5 (report best achieved result if threshold not met) </Iteration_Thresholds>
<Error_Handling>
- Playwright MCP unavailable: Stop. Instruct user to configure it. Do not attempt to clone without browser tools.
- Page fails to load: Report the URL and HTTP status. Suggest the user verify the URL is accessible.
- browser_evaluate returns empty: The page may use heavy client-side rendering. Wait longer (
browser_wait_forwith extended timeout) and retry once. - Visual score stuck below threshold after 3 iterations: Report the current state as best-effort. List the unresolved differences for the user.
- Extraction data too large for context: Truncate deep DOM branches (depth > 6). Focus on top-level structure and defer nested details to iteration fixes. </Error_Handling>
<Example>
**User**: "Clone https://news.ycombinator.com"Pass 1: Navigate to HN. Extract: table-based layout, orange (#ff6600) nav bar, story list with links + points + comments, footer. Screenshot saved.
Pass 2: Regions: nav bar (logo + links), story table (30 rows × title + meta), footer. Tokens: orange #ff6600, gray #828282, Verdana font, 10pt base. Interaction map: story links (external), comment links, "more" pagination.
Pass 3: Generate index.html with HN-style table layout, CSS matching extracted colors/fonts, working <a> tags for stories.
Pass 4: Visual score=78 (font size off, spacing between stories too tight). Functional 2/2 (links work). Structure match=true.
Pass 5 iteration 1: Fix font to Verdana 10pt, increase row padding → score=88. Functional 2/2. Structure match. → overall_verdict: pass. Done.
</Example>
<Final_Checklist>
- Pass 1 extraction completed and summarized (screenshot + accessibility tree + DOM styles + interactions)
- Pass 2 component plan created with file structure
- Pass 3 clone generated and files written to
output_dir - Clone serves locally without errors
- Pass 4 composite verdict emitted with all three dimensions
overall_verdictispass, or max 5 iterations reached with best-effort report- When in ralph: visual verdict persisted to
ralph-progress.json - Extraction summary persisted to
web-clone-extraction.json</Final_Checklist>
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.

