rosdal

S2s — Development skill for Claude Code

Development community

Turn a live URL into a buildable reconstruction of its frontend source, then hand it to Claude Code.

How to install S2s

This entry records only its repository, not the path inside it, so there is no exact command to give. Open rosdal/s2s and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What S2s does

Turn a live URL into a buildable reconstruction of its frontend source, then hand it to Claude Code.

Alternatives in Development

  • OpenMythos — A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the availabl 14.8k ★
  • Cs2 Knife — Create a high-fidelity procedural Three.js 3D reconstruction of 14.1k ★
  • Claude Code — Claude Code Source - Buildable Research Fork 287 ★

README

s2s — Site-to-Source

[![CI](https://github.com/Rosdal/s2s/actions/workflows/ci.yml/badge.svg)](https://github.com/Rosdal/s2s/actions/workflows/ci.yml) ![status: alpha](https://img.shields.io/badge/status-alpha-orange) [![license: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

s2s turns a live URL into a plausible, buildable reconstruction of its frontend source. The CLI does the deterministic work: it captures the page in a real browser, recovers source maps, detects third-party packages, unbundles and cleans up the first-party code, and scaffolds a project. Then it writes `AGENTS.md` and `PROMPT.md`, so the reasoning-heavy part (naming, structure, types) runs in Claude Code on your own subscription, with a screenshot-diff verify loop to check the result.

**Status: alpha.** Every stage runs end to end on the test fixtures. Expect rough edges on real sites.

Usage

s2s needs Node 22 or later, Google Chrome (or Playwright's Chromium: `npx playwright install chromium`), git, and a package manager (pnpm, npm, yarn or bun).

npx @rosdal/s2s grab https://example.com

`grab` captures the site, recovers what it can, writes a Vite project that builds as is, and checks that project against the capture. It ends by printing the next step:

cd example-com && claude "$(cat PROMPT.md)"

![A recorded s2s grab run against the vite-react test fixture: capture, maps, detect, unbundle, scaffold, then a passing verify and the Claude Code command](.github/assets/demo.svg)

The recording is a real run against a local test fixture (`.github/assets/demo.cast`; replay it with `asciinema play`).

Run `s2s` with no arguments for a guided prompt instead. Each stage is also its own command, and every stage resumes from the workspace's `manifest.json`, so rerunning `grab` after an interruption continues where it stopped:

Command Stage