SkillAtlasSkill 详情

superloopy-clone

Loop engineering for Codex, Claude Code, and Google Antigravity.

审核状态:已审核Quality 72Security 52

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年9月13日

🌀 Superloopy

Loop engineering for Codex, Claude Code, and Google Antigravity. Type loopy <task> — an agent does the work, proves each piece with real evidence, and only then says it's done.

English · 한국어 · 中文(简体) · 日本語 · Español

franky zoro usopp jinbe robin nami

the crew — optional subagents, one job each

Use it

After installing, type your task in Codex, Claude Code, or Antigravity with a leading loopy:

loopy add the payments module

The agent plans it, proves each piece with a real file, and reports back — you don't run any commands yourself. The packaged Stop hook stays quiet unless SUPERLOOPY_STOP_HOOK=on. Set SUPERLOOPY_CALQUE_NUDGE=on to get an advisory note at your next prompt when the previous Korean reply carried an English calque such as 조용히 실패 or 우아하게 종료.

Why Superloopy?

Superloopy is for Codex, Claude Code, and Antigravity work where "done" needs to mean more than a confident status sentence.

  • Evidence-first: every pass points at a real artifact under .superloopy/evidence/.
  • Lightweight by default: one small CLI, repo-local state, zero runtime dependencies.
  • Agent-friendly: skills, hooks, and optional crew lanes guide the agent without hiding the final gate.

Guarantee scope. Command-backed criteria are the strong guarantee: at completion Superloopy re-runs each command in-process and requires it to reproduce, so a stale or fabricated pass cannot reach "done". Manual (commandless) criteria are verified as a non-empty evidence artifact plus auditor/human judgment — their correctness rests on review, not the deterministic re-run.

Skills

Superloopy keeps the command layer small. Skills carry the specialist workflow: when to use it, what the agent should inspect, and what proof must be left under .superloopy/evidence/.

SkillUse it whenWhat it produces
superloopy-loopYou type loopy <task> or loopy team <task> for a full loop; use loopywork, lpy, or $lpy for guidance-only context.Full loops produce direct, concise, complete progress and final responses alongside a lightweight plan, proof, quality gate, and final evidence report. Exact English/Korean controls affect only the current incomplete loop; new loops reset enabled. Guidance aliases do not mutate state.
superloopy-doctorYou diagnose install, wrapper, plugin cache, hook/bootstrap, agent, Codex/Claude Code host wiring, or stale-version problems.A read-only health report with wrapper/cache/version evidence, failing checks, and the exact repair command to run only if approved.
superloopy-researchYou explicitly invoke Codex $superloopy:superloopy-research or Claude Code /superloopy:superloopy-research, or start the research task with a leading loopy/루피 (such as loopy research). Plain research, investigate, or summarize requests do not activate it.Research axes, expansion waves, a verdict on every retrieval, graded and dated sources, a priced claim ledger, verification notes, and a cited synthesis artifact.
superloopy-cloneYou ask for loopy clone, authorized website cloning, rebuilding, migration, or pixel-focused page recovery.Browser captures, page topology, design tokens, asset inventory, implementation notes, build output, and visual QA evidence.
superloopy-frontendYou explicitly invoke Codex $superloopy:superloopy-frontend or Claude Code /superloopy:superloopy-frontend for supported screen-based application UI across browser-hosted Web (public, authenticated, private/internal, installed PWA, or extension), interactive deployed content-led Web (campaign, publication, or landing experiences with a user journey), desktop, mobile/tablet, embedded/hybrid clients, custom-rendered UI, Qt, or mixed targets, or start that work with a leading loopy/루피. Plain UI, platform, or framework terms do not activate it; TV, wearable, XR, automotive, game UI, TUI, static media/document artifacts, and non-UI work stay excluded.One shared UX contract plus platform/composition routes. Evidence is proportional to changed claims and independently covers each browser, native target/shell, renderer, and mixed target. Standalone runs retain run-scoped receipts; active loops bind them to the goal and criterion.
humanize-koreanUse when Korean users ask to remove AI tone, fix 번역투, or make Korean text sound human without changing facts.Owns Korean naturalness, including semantic review of misplaced modifiers and the P-family calque rules (조용히 실패, 우아하게 종료, 단일 진실 공급원). It writes final.md, summary.md, and audit.json; in Superloopy loops it records evidence under .superloopy/evidence/humanize-korean/.
i-have-adhdYou explicitly invoke Codex $superloopy:i-have-adhd or Claude Code /superloopy:i-have-adhd, or a leading loopy/루피 brief directly asks for ADHD-friendly, action-first, one-step, or easy-to-scan output. Writing style alone never activates it.Shapes progress updates so the next action stays visible. It does not create a Superloopy evidence artifact or weaken planning, safety, validation, or completion gates.
say-it-straightExplicit Codex $superloopy:say-it-straight or Claude /superloopy:say-it-straight for direct, concise, natural prose and supplied task artifacts; never activates from writing style alone. Full Loopy progress/final output is direct by default, with exact English/Korean controls limited to the current incomplete loop.Explicit artifact editing preserves facts, register, protected text, and required detail; file-backed edits use the audit. ADHD owns structure and Korean rewriting remains with humanize-korean.
superloopy-slidesYou ask for slides, a presentation, a deck, or a PPT/PPTX-to-web conversion.A zero-dependency single-file HTML deck on a fixed 16:9 stage, three style previews to pick from, and a rendered-screenshot visual-QA artifact under .superloopy/evidence/slides/.

Automatic reassurance-copy gate. Every full Loopy start or resume carries this conditional gate. It activates only when an affected artifact creates or changes user-visible Korean product-behavior copy, then adds RC-1 through RC-4 and humanize-korean naturalness review to the plan criterion. Internal logs and diagnostics, developer documentation and comments, test narration, quotations, general or marketing prose, and non-Korean copy are excluded. The gate uses supplied behavior and records a blocker or question when facts are missing instead of inventing an outcome; it has no standalone skill or invocation name.

The loop skill is the default guardrail. A complete leading loopy token starts or resumes the evidence loop; loopy team escalates to crew mode. Leading loopywork, lpy, and $lpy tokens only inject starter guidance. Structured SUPERLOOPY_STEER directives can adjust an active loop. Full-loop direct output never silently rewrites supplied prose or task artifacts: direct editing remains explicit-only. The prompt hook does not infer frontend or Korean-writing modes from ordinary text; invoke specialist skills explicitly or let an already-active loop route a real specialist subtask.

Clone Demo

Transferloom.com clone reference

superloopy-clone reproduced Transferloom.com locally and passed desktop/mobile browser validation. The reference run preserved the sticky nav, animated hero, app preview sections, comparison table, security panel, sister app banner, footer, local assets, and Superloopy evidence trail.

Slides Demo

Fileloom intro deck built with superloopy-slides

superloopy-slides generated this live multilingual deck → — a zero-dependency single-file HTML presentation on a fixed 16:9 stage in English · 한국어 · 中文 · 日本語 · Español. It passed real-browser visual-QA (standalone, phone letterbox, and iframe embed) recorded under .superloopy/evidence/slides/.

Writing Comparison Demo

Writing comparison app showing an original document next to its Say It Straight rewrite

The live writing-comparison viewer → puts one source document next to its humanize-korean (A), i-have-adhd (B), and say-it-straight (C) rewrites across fourteen Korean and English samples, plus eight benchmark fixtures with each skill's measured output and a benchmark page with the cost and latency numbers. Every Say It Straight edit carries a rationale note, and any comparison is shareable by URL.

Qt Kanban Demo

The Northstar Qt Kanban demo is a runnable Qt Quick prototype acceptance fixture built through the superloopy-frontend Qt route, not production-editor proof. Board, search, filters, cards, drawers, and task creation are exercised; Timeline and Inbox are visibly passive demo-only context, Settings and Help are absent, and persistence and Undo remain out of scope. With Qt 6.11.1, CMake, and Ninja available, configure, build, and launch it from the repository root:

qt-cmake -S examples/qt-kanban -B build/qt-kanban -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/qt-kanban --parallel
build/qt-kanban/src/app/qtkanban --window-size 1600x1000

# macOS: verify the exported native accessibility contract
examples/qt-kanban/scripts/audit-macos-accessibility.sh \
  build/qt-kanban/src/app/qtkanban

The crew

For bigger work, Superloopy ships six optional subagents — each owns one lane. Claude Code uses the plugin-bundled agents/*.md. On Codex, bootstrap, superloopy install, and superloopy agents install materialize personal TOMLs under $CODEX_HOME/agents; model routing is resolved during that installation step.

Codex calls the stable model/list method only when resolution state is missing, the policy version or target changed, the cache is at least 24 hours old, or --refresh-models is supplied. When fresh state still matches the managed files, it reuses the exact manifest without a query or state rewrite. Profiles select the first supported complete model/effort/tier tuple: gpt-5.6-terra / high / priority for standard, gpt-5.6-sol / xhigh / priority for deep, and gpt-5.6-luna / low / fast for fast. If a preferred model is unavailable, that profile uses its explicit gpt-5.5 compatibility tuple. gpt-6-astra is allowed for the orchestrator (your own Codex session) when you select it in Codex; crew lanes keep their pins and never inherit the orchestrator's model. An unknown first probe conservatively selects policy compatibility; an unknown refresh preserves a valid existing resolution. --compat makes the compatibility choice deterministically without querying.

Upgrades from pre-managed Superloopy releases are hash-bound: a complete exact legacy fleet is adopted and upgraded without --force, while one edit, symlink, missing file, or unknown hash keeps the whole fleet in conflict. Changed agent definitions require a Codex restart; an unchanged fresh manifest does not. superloopy doctor --refresh-models can report preferred availability before managed state exists, detects a wrapper/plugin split-brain, and never rewrites resolution state or agent files.

Resolution finishes before launch, with no post-launch retry or model switch. The TOML pins configure routing, but a host that does not expose agent_type plus resolved-model attestation remains model_unverified; Superloopy never presents that as a proven GPT-5.6 runtime gate. The policy details are in docs/superloopy-model-policy.md (Codex) and docs/superloopy-model-policy-claude.md (Claude Code).

Installed-plugin truth. installedPluginTruth runs the read-only codex plugin list --json authority probe. A confirmed superloopy@beefiker version mismatch is informational in source scope, but fails installed scope. Missing Codex, no registered plugin, and invalid authority output stay informational and do not fail doctor. Never infer the installed version from cache directory names or repair without approval.

franky
franky
builds it
zoro
zoro
reviews it
usopp
usopp
tests it
jinbe
jinbe
gates it
robin
robin
audits it
nami
nami
finds it

Summon the crew with loopy team <task> — or loopy crew, the one-word loopycrew, or just ultrawork <task>. Superloopy fans the work out across the lanes in parallel and still proves every piece before it calls it done. A plain loopy <task> stays solo and only delegates when the slices are clearly independent.

For full crew runs, the parent records each lane with superloopy loop handoff, checks superloopy loop fleet --json, and keeps the human final gate report separate from the machine gate JSON. A gate report can be Markdown evidence; superloopy loop finish --artifact is for .json quality gate output.

When a tracked crew handoff finishes, Superloopy can print one original crew line before the normal handoff or fleet status. It follows the user's language from the assignment or scoped brief when it matches the supported catalog, with English as the safe fallback. The line is personality only; the verdict, evidence artifact, outstanding list, and attention list stay authoritative.

Works with Superpowers

Superloopy sits well next to the Superpowers plugin. They handle different halves of the same job, so you don't have to choose one.

  • Superpowers runs the front of the loop: brainstorming, planning, and its TDD and code-review methodology.
  • Superloopy runs the finish: command-backed criteria that re-run at completion, so "done" is proven, not just claimed.

When Superpowers is installed (on Codex or Claude Code), Superloopy notices and steers its own guidance to match. It leaves design, planning, and TDD to Superpowers and keeps itself as the outer evidence gate. Detection is best-effort and only shapes advice; it never weakens a gate. Set SUPERLOOPY_SUPERPOWERS=off to opt out or on to force it, and run superloopy doctor to see what was found. More in docs/superloopy-interop-superpowers.md.

Q&A

  • Do I need both? No. Superloopy works on its own. If Superpowers is there too, the two coordinate instead of overlapping.
  • Which stage does each own? Superpowers owns brainstorm, plan, and build. Superloopy owns the proof at the end. Keep one driver per task: don't run loopy team and the Superpowers subagent flow on the same slices at once.
  • Who decides a task is done? Superloopy. Its check re-runs the real command at the end and blocks a false pass.
  • How is Superpowers detected? By looking in your Codex and Claude Code plugin folders. You can always override with SUPERLOOPY_SUPERPOWERS=on|off.

Install

Superloopy installs on both Codex and Claude Code from one repo. The core (loop state, evidence gates, doctor) is host-agnostic; each host gets its own thin plugin manifest, hook wiring, and agent format.

For agent-driven installs such as install https://github.com/beefiker/superloopy, use installation.md. It is written as a host-selection and verification checklist for Codex and Claude Code agents.

Codex

Needs Node.js ≥ 22 and Codex CLI ≥ 0.131.0 for codex plugin add. Superloopy is dependency-free — zero runtime dependencies, just Node.

codex plugin marketplace add https://github.com/beefiker/superloopy
codex plugin add superloopy@beefiker

Restart Codex after installing the plugin. If Codex asks you to review hooks, approve them; the next approved session runs a SessionStart hook that does a one-time bootstrap — it installs the superloopy command and the agents. If superloopy isn't found, its folder isn't on your PATH; the bootstrap prints the exact line to add. Check everything with superloopy doctor.

Installing from a checkout instead? Run node src/cli.js install --json.

Claude Code

Needs Node.js ≥ 22. From the same repo:

/plugin marketplace add beefiker/superloopy
/plugin install superloopy@beefiker

Reload plugins (or restart Claude Code) and approve the hooks when prompted. On Claude Code the skills, subagents (agents/*.md), and hooks (hooks/hooks.json) are plugin-bundled — there is no ~/.codex install step and no superloopy wrapper; the hooks invoke the CLI directly via ${CLAUDE_PLUGIN_ROOT}, and SessionStart is a clean no-op (nothing to bootstrap). For local development, point Claude Code at a checkout with claude --plugin-dir <checkout>. Verify with node "${CLAUDE_PLUGIN_ROOT}/src/cli.js" doctor --json. The subagents' advisory model defaults for Claude are documented in docs/superloopy-model-policy-claude.md.

Update

Codex

If you installed from the Codex marketplace, refresh the marketplace snapshot:

codex plugin marketplace upgrade beefiker

Superloopy checks for updates on SessionStart. Marketplace installs are Codex-managed, so Superloopy never starts an npx self-update for them; when a newer version is detected, it tells you to run the marketplace upgrade and re-approve modified hooks.

Restart Codex after the upgrade. If hooks show up as Modified, approve them; the following approved SessionStart automatically reconciles the generated wrapper, all six agents, and model-routing state from the new plugin version. No Superloopy migration command is required. If definitions changed, follow only the Codex restart notice so the host reloads them.

If a confirmed installedPluginTruth version mismatch still looks stale or degraded after that, approve a repair reinstall from the refreshed marketplace:

codex plugin add superloopy@beefiker --json

Then start a new Codex session.

If you installed from a checkout, update the checkout and rerun the installer:

git pull --ff-only
node src/cli.js install --json
superloopy doctor

Checkout installs are not npx-managed. npx self-update is reserved for a future installer that writes a superloopy-install.json snapshot into a stable install root.

Claude Code

Refresh the marketplace, update the installed plugin, then reload — no restart needed:

/plugin marketplace update beefiker
/plugin update superloopy@beefiker
/reload-plugins

/plugin update resolves the new version from the refreshed marketplace, and /reload-plugins applies it in the current session (no Claude Code restart, and hooks do not need re-approval). Verify with node "${CLAUDE_PLUGIN_ROOT}/src/cli.js" doctor --json. If you loaded a checkout with --plugin-dir, just git pull --ff-only and run /reload-plugins.

Google Antigravity

Pull the latest version in the plugin directory and validate:

git -C ~/.gemini/config/plugins/superloopy pull --ff-only
agy plugin validate ~/.gemini/config/plugins/superloopy

Troubleshooting

If plugin install or upgrade commands fail, update the Codex CLI first. codex plugin add is available in Codex CLI 0.131.0 and newer; older builds can have trouble with current plugin marketplace commands and hook approval flows.

After updating the CLI, restart Codex, run the marketplace install or upgrade command again, approve any Modified hooks, then check with superloopy doctor.

On Claude Code, if /plugin commands fail or the plugin looks stale, run /reload-plugins (or restart Claude Code) and verify with node "${CLAUDE_PLUGIN_ROOT}/src/cli.js" doctor --json.

Uninstall

Codex

Remove the installed plugin from Codex:

codex plugin remove superloopy@beefiker

If you no longer need the marketplace source, remove it too:

codex plugin marketplace remove beefiker

Restart Codex after uninstalling. Optional local bootstrap cleanup: plugin removal handles Codex's plugin config and cache, but the superloopy wrapper and copied personal agents can remain. Review before deleting them, especially if you customized any agent file.

rm -f ~/.local/bin/superloopy
rm -f ~/.codex/agents/franky.toml ~/.codex/agents/zoro.toml ~/.codex/agents/usopp.toml ~/.codex/agents/jinbe.toml ~/.codex/agents/robin.toml ~/.codex/agents/nami.toml
Remove-Item "$env:APPDATA\npm\superloopy.cmd" -ErrorAction SilentlyContinue
Remove-Item "$env:USERPROFILE\.codex\agents\franky.toml", "$env:USERPROFILE\.codex\agents\zoro.toml", "$env:USERPROFILE\.codex\agents\usopp.toml", "$env:USERPROFILE\.codex\agents\jinbe.toml", "$env:USERPROFILE\.codex\agents\robin.toml", "$env:USERPROFILE\.codex\agents\nami.toml" -ErrorAction SilentlyContinue

If you installed with CODEX_HOME, SUPERLOOPY_BIN_DIR, or CODEX_LOCAL_BIN_DIR, clean up those configured paths instead.

Claude Code

/plugin uninstall superloopy@beefiker
/plugin marketplace remove beefiker

Then run /reload-plugins. Nothing else to clean up — Claude Code installs are fully plugin-bundled (no superloopy wrapper, no ~/.codex writes). Removing the marketplace from its last remaining scope also uninstalls the plugin.

Google Antigravity

agy plugin disable superloopy
rm -rf ~/.gemini/config/plugins/superloopy
agy plugin disable superloopy
Remove-Item "$env:USERPROFILE\.gemini\config\plugins\superloopy" -Recurse -Force -ErrorAction SilentlyContinue

Optional wrapper cleanup: if you do not also use Superloopy on Codex, remove the command wrapper:

rm -f ~/.local/bin/superloopy
Remove-Item "$env:APPDATA\npm\superloopy.cmd" -ErrorAction SilentlyContinue

If you keep Superloopy on Codex, keep the wrapper or run superloopy install to repoint it to your Codex installation. Agents and skills on Antigravity are plugin-bundled so no agent TOMLs are placed. If you installed with SUPERLOOPY_BIN_DIR, clean up that configured path instead.

MIT licensed.

浏览器与自动化Agent / MCP / Skill 创作

高风险

  • 来源需自行核对维护者身份。
  • 包含脚本或命令调用,安装前请复核。
  • 可能需要外部 token、网络权限或第三方服务。
  • 存在潜在风险命令,请谨慎安装。
  • 扫描发现:2 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/beefiker/superloopy.git
  3. 将 "skills/superloopy-clone" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/beefiker/superloopy.git
  3. 将 "skills/superloopy-clone" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/beefiker/superloopy.git
  3. 将 "skills/superloopy-clone" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/beefiker/superloopy.git
  3. 将 "skills/superloopy-clone" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/beefiker/superloopy.git
  3. 将 "skills/superloopy-clone" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: superloopy-clone
description: Use when the user asks for Superloopy clone or asks to clone, rebuild, reverse-engineer, replicate, or copy a website or page into a Superloopy-governed implementation. Triggers on "loopy clone", target URLs plus requests such as "clone this site", "rebuild this page", "make a copy of this website", "pixel-perfect clone", or "AI website clone". Requires browser automation and records component specs, assets, implementation, build output, and visual QA as Superloopy evidence.

Superloopy Clone

Reverse-engineer a target URL into a working local implementation with audit artifacts. Use this only for authorized cloning, migration, learning, or recovery work. Do not help with phishing, deceptive impersonation, credential capture, or evading a site's terms.

When multiple URLs are provided, process each host independently. Keep every site's research, screenshots, assets, and evidence isolated under paths like docs/research/<hostname>/, docs/design-references/<hostname>/, and .superloopy/evidence/website-clone/<hostname>/.

This is not "inspect once, then redraw." Act as the foreman: inspect one section, write the exact spec, dispatch or build that bounded slice, then keep extracting the next section while builders run. A hard section is where extraction gets stricter, not where approximation becomes acceptable.

Reference Example

Transferloom.com is a reference result for this workflow: superloopy-clone reproduced the page locally and passed desktop/mobile browser validation with preserved sticky navigation, animated hero, app preview sections, comparison table, security panel, sister app banner, footer, local assets, and a Superloopy evidence trail.

Use that bar for completion claims. A clone is successful only when it has this shape of evidence: source screenshots, research notes, component specs, downloaded assets, local browser screenshots, validation output, visual QA notes, and a final evidence artifact.

Superloopy Contract

  • Create or reuse a Superloopy plan. Use an evidence root like .superloopy/evidence/website-clone/<hostname>/.
  • Preserve extraction artifacts: screenshots, topology, behavior notes, component specs, asset inventory, validation output, and visual QA notes.
  • Record final proof with SUPERLOOPY_EVIDENCE: <path-under-active-evidence-root> when a worker is involved, or superloopy loop evidence when recording from the parent.
  • Do not add dependencies without asking. If a clone needs a package for parity, explain why and get approval first.

Scope Defaults

Unless the user gives different requirements, clone exactly what is visible at the target URL:

  • Fidelity: pixel-focused parity for layout, spacing, typography, color, animation, responsive behavior, and visible interactions.
  • In scope: visual layout, component structure, client-side interactions, responsive design, local assets, and demo data needed to render the page.
  • Out of scope: real backend, authentication, payment flows, analytics, SEO optimization, and accessibility audit unless the user explicitly asks.
  • Customization: none. Do not improve, restyle, rewrite copy, or replace assets during extraction.

Fidelity Gate

Pixel-perfect means the default is extraction-first, not inspired reconstruction. If a section is driven by custom JavaScript, CSS keyframes, canvas, video, Lottie, WebGL, marquees, scroll timelines, masks, or layered absolute positioning, use verbatim port mode first:

  • Preserve the original DOM subtree, CSS class block, and JS driver, then adapt asset URLs and framework boundaries.
  • Write a dependency graph for the section: DOM roots, CSS selectors/keyframes, scripts/listeners, assets, timing, z-index, masks, and external libraries.
  • Reimplementation is allowed only after proving the original implementation cannot be ported cleanly, recording why in the spec, and getting user approval when fidelity would drop.
  • An unapproved approximation of an above-the-fold, animated, fixed, sticky, or interaction-heavy section is a blocker, not a known gap.
  • Do not choose a similar redraw because the section is difficult. Dissect the original implementation and transplant it; if you cannot, stop and report the blocker with evidence.

Preflight

  1. Verify browser automation is available. Prefer Chrome or Playwright-style tools. If none are available, ask for a browser tool before proceeding.
  2. Normalize and validate each target URL. Confirm the page loads. For multiple targets, prepare separate docs/research/<hostname>/ and docs/design-references/<hostname>/ folders before extraction.
  3. Inspect the local app stack and existing commands before editing. Run the smallest existing check that proves the baseline, such as npm run build, npm run typecheck, or npm test.
  4. Create research folders if needed: docs/research/<hostname>/, docs/research/<hostname>/components/, docs/design-references/<hostname>/, scripts/, and the Superloopy evidence root.
  5. State authorization assumptions if the target is a third-party site.

Superloopy Crew Dispatch

Use Superloopy actively when the clone has independent extraction, build, QA, or review lanes. Superloopy handoffs are parent-side bookkeeping; the host spawns workers, while Superloopy records and reconciles them.

  • Treat loopy team ... loopy clone, loopy team <url> clone, loopy crew ... clone, loopycrew ... clone, and ultrawork ... clone as full-crew clone requests. Start with the crew plan, split extraction/build/QA/review lanes early, and record handoffs from the first dispatched lane.
  • A plain loopy clone may stay solo only for a small static page or one clearly bounded component. The moment there are multiple sections, responsive states, animations, unknown assets, or parallelizable QA/review work, escalate to crew dispatch instead of continuing solo.
  • nami: read-only navigator for target app structure, candidate selectors, route layout, existing component patterns, and asset paths. Use before broad repo searches or when multiple search angles are needed.
  • franky: builder for exactly one bounded component, wrapper, or asset integration slice. Give the full spec inline, allowed files, validation command, artifact target, and SUPERLOOPY_EVIDENCE requirement.
  • usopp: QA lane for build/typecheck/browser checks, screenshot capture, interaction sweep replay, and evidence reports.
  • zoro: drift reviewer. Ask it to compare implementation against the component spec and call out simplified lookalikes, missing states, missing assets, and wrong interaction models.
  • robin: audit lane for high-risk evidence, source attribution, suspicious extraction gaps, and final claim review. It ends with SUPERLOOPY_AUDIT: <artifact>.
  • jinbe: final gate lane for fleet status, accepted evidence, outstanding blockers, and release readiness.

Record every dispatch with superloopy loop handoff --agent <name> --assignment <self-contained task>. When a worker returns, update that handoff with --verdict <PASS|REJECT|NEEDS_CONTEXT> and --artifact <path> when accepted. Run superloopy loop fleet --json before any final completion claim. Accepted handoffs require artifacts under the active evidence root; an ack-only worker is inconclusive, never a pass.

Phase 1 - Reconnaissance

Capture the original before building:

  • Full-page desktop screenshot at about 1440px.
  • Mobile screenshot at about 390px.
  • PAGE_TOPOLOGY.md listing sections from top to bottom, fixed layers, z-index relationships, and each section's interaction model.
  • BEHAVIORS.md from scroll, click, hover, time, and responsive sweeps.
  • DESIGN_TOKENS.md with fonts, colors, spacing, radii, shadows, animation timings, and global page behavior.
  • ASSETS.md listing images, videos, background images, SVGs, favicons, fonts, and local target paths.
  • DEPENDENCY_GRAPH.md mapping each complex section to its DOM roots, CSS blocks, JS drivers/listeners, keyframes, assets, masks, z-index layers, and third-party libraries.

Use computed styles, DOM inspection, and real assets. Do not estimate colors, spacing, text, or breakpoints when the browser can provide them.

Mandatory Interaction Sweep

Run this sweep after initial screenshots and before component specs:

  • Scroll before click. Move slowly from top to bottom first, because scroll-driven sidebars, sticky panels, snap points, reveal animations, and section-aware nav can masquerade as click tabs.
  • Click every interactive-looking button, tab, pill, link, card, modal trigger, carousel control, and accordion. Extract each state's content and styles.
  • Hover buttons, nav items, cards, images, and links. Record before/after values and transition timing.
  • Wait for time-driven elements such as autoplaying carousels, counters, marquees, videos, Lottie animations, canvas loops, and WebGL scenes.
  • Repeat at desktop 1440px, tablet 768px, and mobile 390px. Record breakpoints and layout changes.

BEHAVIORS.md is the behavior source of truth. If a component spec conflicts with it, re-extract before building.

Phase 2 - Foundation

Build the shared foundation before sections:

  • Fonts and metadata.
  • Global CSS tokens and keyframes.
  • Shared icon components from extracted SVGs.
  • Content/type shapes for repeated section data.
  • Downloaded assets under the project's existing public asset structure.
  • A scripts/download-assets.mjs script or equivalent existing project script that downloads discovered images, videos, fonts, favicons, OG images, and binary assets into the local public asset tree with stable names.

Run the relevant build or typecheck after the foundation change and save the output under the Superloopy evidence root.

Asset Discovery Script Pattern

Run a browser-side asset inventory before writing download code. Capture at least:

  • <img> sources, natural dimensions, alt text, parent classes, sibling image count, position, and z-index.
  • <video> sources, posters, autoplay, loop, muted, and source children.
  • CSS background images from all elements, including pseudo-layer containers.
  • Inline SVG count and deduplicated icon candidates.
  • Fonts from link tags and sampled computed styles.
  • Favicons, apple touch icons, webmanifest, and OG images.

Layered assets matter. A single visual may be a background, foreground image, mask, overlay icon, and clipped absolute layer. Enumerate all layers before assigning a builder. Do not build mockup HTML for content that is actually video, Lottie, canvas, or WebGL.

Use browser automation to gather this shape:

JSON.stringify({
  images: [...document.querySelectorAll("img")].map((img) => ({
    src: img.currentSrc || img.src,
    alt: img.alt,
    width: img.naturalWidth,
    height: img.naturalHeight,
    parentClasses: img.parentElement?.className?.toString(),
    siblingImages: img.parentElement ? img.parentElement.querySelectorAll("img").length : 0,
    position: getComputedStyle(img).position,
    zIndex: getComputedStyle(img).zIndex
  })),
  videos: [...document.querySelectorAll("video")].map((video) => ({
    src: video.currentSrc || video.src || video.querySelector("source")?.src,
    poster: video.poster,
    autoplay: video.autoplay,
    loop: video.loop,
    muted: video.muted
  })),
  backgroundImages: [...document.querySelectorAll("*")]
    .map((element) => ({ element, backgroundImage: getComputedStyle(element).backgroundImage }))
    .filter((item) => item.backgroundImage && item.backgroundImage !== "none")
    .map(({ element, backgroundImage }) => ({
      url: backgroundImage,
      selectorHint: `${element.tagName.toLowerCase()}.${element.className?.toString().split(" ").slice(0, 3).join(".")}`
    })),
  svgCount: document.querySelectorAll("svg").length,
  favicons: [...document.querySelectorAll('link[rel*="icon"]')].map((link) => ({ href: link.href, sizes: link.sizes?.toString() })),
  fonts: [...new Set([...document.querySelectorAll("*")].slice(0, 250).map((element) => getComputedStyle(element).fontFamily))]
});

Phase 3 - Component Specs

Before building each section, write a component spec at docs/research/<hostname>/components/<component>.spec.md. The spec is the contract for implementation and must include:

  • Target component file.
  • Screenshot path.
  • DOM structure.
  • Exact computed styles for the container and important children from getComputedStyle().
  • Interaction model: static, click-driven, scroll-driven, hover-driven, time-driven, or mixed.
  • States and behaviors, including trigger, before/after values, transition, and implementation approach.
  • Real text content.
  • Assets with local paths.
  • Responsive behavior for desktop, tablet, and mobile.
  • Original implementation inventory for any complex section: DOM subtree, CSS class block, JS driver, keyframes, event listeners, timers, masks, z-index layers, and asset paths.
  • Parity decision: verbatim port, framework-adapted port, or approved reimplementation; include the reason and approval if not porting.

If a spec grows beyond one focused component or a builder prompt exceeds about 150 lines, split it. Builders should not guess.

Computed Style Extraction Contract

For each component container, run a browser extraction script instead of hand-measuring. The output goes into the spec and builder prompt:

(function extractComponent(selector) {
  const root = document.querySelector(selector);
  if (!root) return JSON.stringify({ error: `missing ${selector}` });
  const props = [
    "fontSize", "fontWeight", "fontFamily", "lineHeight", "letterSpacing", "color",
    "background", "backgroundColor", "padding", "margin", "width", "height", "maxWidth",
    "display", "flexDirection", "justifyContent", "alignItems", "gap", "gridTemplateColumns",
    "borderRadius", "border", "boxShadow", "overflow", "position", "top", "right", "bottom",
    "left", "zIndex", "opacity", "transform", "transition", "objectFit", "objectPosition",
    "mixBlendMode", "filter", "backdropFilter", "whiteSpace", "textOverflow"
  ];
  function styles(element) {
    const computed = getComputedStyle(element);
    return Object.fromEntries(props.map((prop) => [prop, computed[prop]]).filter(([, value]) => value && value !== "normal" && value !== "auto" && value !== "none"));
  }
  function walk(element, depth = 0) {
    if (depth > 4) return null;
    return {
      tag: element.tagName.toLowerCase(),
      classes: element.className?.toString(),
      text: element.childNodes.length === 1 && element.childNodes[0].nodeType === Node.TEXT_NODE ? element.textContent.trim() : null,
      styles: styles(element),
      image: element.tagName === "IMG" ? { src: element.currentSrc || element.src, alt: element.alt, width: element.naturalWidth, height: element.naturalHeight } : null,
      children: [...element.children].slice(0, 30).map((child) => walk(child, depth + 1)).filter(Boolean)
    };
  }
  return JSON.stringify(walk(root), null, 2);
})("SELECTOR");

For stateful components, capture state A, trigger the behavior with browser automation, capture state B, then record the exact property diff, trigger, and transition.

Component Spec Template

Each spec must include these headings. If a heading truly does not apply, write N/A with a reason:

  • Overview: target file, screenshot, source URL, selector, and interaction model.
  • DOM Structure: extracted hierarchy and source class names.
  • Computed Styles: exact values for root and important children.
  • States and Behaviors: trigger, state A, state B, transition, and implementation approach.
  • Per-State Content: each tab, slide, accordion panel, or timed state.
  • Assets: local paths for every image, background, overlay, SVG, video, font, mask, and poster.
  • Text Content: verbatim live copy.
  • Responsive Behavior: desktop, tablet, mobile, and observed breakpoints.
  • Original Implementation Inventory: DOM subtree, CSS class block, JS driver/listeners, keyframes, timers, masks, layers, and third-party libraries.
  • Parity Decision: verbatim port, framework-adapted port, or approved reimplementation.

Pre-Dispatch Checklist

Before dispatching any builder, verify every item:

  • Spec file exists under docs/research/<hostname>/components/.
  • Every CSS value is extracted with getComputedStyle(), not guessed from utility classes.
  • Interaction model is identified after scroll before click.
  • Every state has content, styles, trigger, and transition.
  • Scroll-driven components include threshold, mechanism, before/after styles, and transition.
  • Hover states include before/after values and timing.
  • All layered assets, overlays, masks, videos, Lottie, canvas, and SVGs are inventoried.
  • Responsive behavior is documented for 1440px, 768px, and 390px.
  • Builder prompt includes the full spec inline and stays under about 150 lines; otherwise split the component.

Phase 4 - Build

Implement one bounded section or component at a time. For parallel workers, send the full spec inline; do not tell a worker to "go read the docs" for missing details. Use a handoff like:

TASK: build <component> from this spec.
TARGET: <file path>
SCOPE: only this component and directly required local assets.
VERIFY: run the focused typecheck/build command.
DELIVERABLE: report artifact under <active evidence root> and end with SUPERLOOPY_EVIDENCE: <artifact>.
SPEC:
<paste the component spec here>

After each merge or parent implementation pass:

  • Run the focused validation command.
  • Fix type, lint, or build errors immediately.
  • Record the output as evidence.
  • For verbatim-port sections, verify the original DOM/CSS/JS relationships still exist after adaptation. Do not replace them with simplified lookalikes unless the spec records approved reimplementation.

Phase 5 - Assembly

Wire sections into the page after their components pass local validation:

  • Preserve the page topology from PAGE_TOPOLOGY.md.
  • Implement page-level scrolling, sticky layers, section transitions, and responsive layout.
  • Keep real content and assets connected through props or local data.
  • Preserve global behaviors such as scroll snap, smooth scroll wrappers, section theme transitions, parallax layers, and fixed overlays when present.
  • Run the project build or closest available full check.

Phase 6 - Visual QA

Do not declare completion after the build alone. Compare original and clone:

  • Desktop screenshot comparison.
  • Mobile screenshot comparison.
  • Section crop comparison for every above-the-fold, animated, fixed, sticky, or interaction-heavy component.
  • Scroll, click, hover, and timed behavior checks.
  • Section-by-section discrepancy list.

For every mismatch, decide whether extraction was wrong or implementation drifted. Re-extract, update the spec, and fix the component. If an approximation remains in a complex section without recorded approval, stop and mark the task blocked. Save VISUAL_QA.md under the evidence root.

What NOT to Do

  • Do not similar redraw, inspired-rebuild, or "make something close" when the source section is complex. Exact extraction is the job.
  • Do not build click-based tabs before testing whether the original is scroll-driven. Scroll before click.
  • Do not extract only the default state. Capture every tab, slide, hover, scroll, and timed state.
  • Do not miss overlay or layered images. Check children, backgrounds, masks, z-index, and absolute-positioned layers.
  • Do not replace videos, Lottie, canvas, or WebGL with static cards unless the user explicitly approves the fidelity drop.
  • Do not approximate CSS from utility classes when computed values are available.
  • Do not dispatch builders without a spec file and full inline spec.
  • Do not combine unrelated sections into one worker or exceed the 150 lines complexity budget.
  • Do not mark a worker pass from a status sentence. Require artifact-backed SUPERLOOPY_EVIDENCE, update superloopy loop handoff, then reconcile with superloopy loop fleet --json.

Completion Report

Report:

  • Target URLs.
  • Sections built.
  • Components created or changed.
  • Spec files written.
  • Assets downloaded or recreated.
  • Validation commands and results.
  • Visual QA result and remaining gaps.
  • Final Superloopy evidence artifact.

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!