Communitygithub.com

website-prompt-breakdown

Forensic analyzer and end-user remake workflow for complex, high-end websites from prompts or prompt+code specs. Use whenever the user pastes a website, landing-page, or hero prompt, asks for a "website breakdown", "scan this website prompt", "reverse-engineer this prompt", or wants to analyze, customize, reskin, or remake a high-craft website in their own version without wasting credits. Enforces a full architectural scan, an exact "what to upload" asset checklist, and one consolidated refinement questionnaire before generating production-ready code in a single pass.

O que é website-prompt-breakdown?

website-prompt-breakdown is a Claude Code agent skill that forensic analyzer and end-user remake workflow for complex, high-end websites from prompts or prompt+code specs. Use whenever the user pastes a website, landing-page, or hero prompt, asks for a "website breakdown", "scan this website prompt", "reverse-engineer this prompt", or wants to analyze, customize, reskin, or remake a high-craft website in their own version without wasting credits. Enforces a full architectural scan, an exact "what to upload" asset checklist, and one consolidated refinement questionnaire before generating production-ready code in a single pass.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/godsyrup5-png/website-prompt-breakdown/tree/HEAD

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Website Prompt Breakdown & Credit-Saver Remake

Turn any complex website prompt (descriptive prompt, technical spec, or prompt + reference code) into:

  1. Forensic architectural breakdown that uncovers every visual trick, layer, timing formula, shader, and constraint.
  2. An exact upload checklist and one-turn refinement intake gate so you never burn extra credits guessing assets, copy, or dead links.
  3. A single-pass, end-user-ready build—including building out full remaining pages/sections using free UI component MCP servers and registries (ui-components-mcp.md) when requested—with clean customization tokens so future tweaks cost zero credits.

Core Rule: The Zero-Waste Gate

NEVER jump straight to writing remake code after receiving a website prompt unless the user explicitly writes "skip questions", "build with defaults", or "breakdown only".

Why: Jumping straight into code produces placeholder text, mismatched image aspect ratios, missing cutout transparency, dead href="#" links, and wrong stack choices—forcing 5–10 costly correction turns.

Instead, follow the 5-Phase Pipeline strictly in order:

Prompt Input
  ├── Mode A ("breakdown only") ──▶ Phase 1 + Upload Guide ──▶ STOP
  ├── Mode B (default: breakdown + remake) ──▶ Phase 1 + Phase 2 (Upload Checklist + 1 Question Batch) ──▶ HARD STOP GATE
  │                                               └── User replies & uploads ──▶ Phase 3 ──▶ Phase 4 ──▶ Phase 5
  └── Mode C ("skip questions / build now") ──▶ Condensed Phase 1 ──▶ Phase 4 (with swap-ready config) ──▶ Phase 5

Phase 1: Forensic Prompt Scan

Scan the user's prompt (and any attached code/URLs/screenshots). Explicitly distinguish [Specified] facts from [Inferred / Recommended] gaps.

Deliver a clear, structured breakdown covering all 10 Forensic Lenses (read forensic-framework.md for the full pattern catalog and the Lumen Roof benchmark):

  1. Product Concept & The Core Illusion ("Secret Sauce")

    • State the business goal and emotional feel.
    • Apply the 4-Part Separation:
      • What the user sees (visual story)
      • What the user does (triggers/inputs)
      • What the system does internally (DOM/CSS/JS/GPU reality)
      • How success is judged (measurable acceptance checks)
    • Expose any 2D-as-3D tricks (e.g., Y-axis translate3d + transparent subject cutout + masked ground + shader surge hiding a DOM swap).
  2. Layer Stack & Compositing Order (Back-to-Front)

    • List every layer in exact DOM/z-order, masks (mask-image), filters (blur, backdrop-filter), isolation, pointer-events, and why layers are separated.
  3. Asset Inventory & Technical Contracts

    • Tabulate every image, cutout, video, SVG, font, icon, or 3D file: Slot ID | Purpose | Layer | State | Transparency/Mask | Aspect/Resolution | Focal Point.
    • Flag strict rules (e.g., "Cutout MUST have alpha transparency and identical camera angle to the full photo").
  4. State Machine & Interaction Rules

    • Initial state, target states, trigger type (click, scroll, hover, drag, timer), and interruption policy (ignore, queue, reverse, restart).
  5. Single-Clock Timeline, Formulas & Choreography

    • Identify whether transitions run on CSS transitions or one unified clock (requestAnimationFrame, GSAP, ScrollTrigger).
    • Provide a millisecond or scroll-percentage timeline table, easing formulas, and staggered CSS variables (e.g., --k, --k2, --dip, --sink).
  6. Procedural Shaders, Canvas & Graphics Engine

    • Note API (WebGL2, Canvas2D, Three.js, SVG filters), uniforms, noise/math (FBM octaves, domain warping), color mixing, localized lighting, and resolution caps.
  7. Design Tokens, Color Mixing & Typography

    • Fluid viewport units (e.g., --u: min(100vw/1600, 100vh/900) vs clamp()), continuous color-mix() vs discrete themes, split-headline spans, glassmorphism borders/blurs.
  8. Layout Geometry & Optical Centering

    • Header/grid alignment mechanics (e.g., flex: 1 1 0 outer spacers for true mathematical centering), viewport units (100svh), overflow boundaries.
  9. Responsive Re-Choreography

    • Breakpoints, hidden chrome, fluid sizing, and focal-point re-anchoring (object-position crop shifts so key visual subjects stay visible on mobile).
  10. Accessibility, Performance & Production Gaps

    • Semantics (<button>, role="group", aria-pressed), :focus-visible, prefers-reduced-motion, GPU/canvas caps, fallback if WebGL fails.
    • End-User Gap Audit: List missing production pieces in the prompt (e.g., dead href="#" links, missing modal/form, missing SEO/OG tags, missing favicon, unverified contrast).

If the user selected Mode A (Breakdown Only), also output the filled 15-Section Master Prompt using prompt-template.md and a summary of what assets they would need to remake it, then stop.


Phase 2: Credit-Saver Intake Gate (Tell User What to Upload + Ask Questions)

HARD STOP RULE: In Mode B, combine Part A (What to Upload) and Part B (Refinement Questions) into ONE single message, then stop and wait. Never drip-feed questions across multiple turns.

Part A: Exact "What to Upload" Checklist

Generate a slot-by-slot checklist mapped directly to the Asset Inventory from Phase 1 (consult asset-upload-specs.md for exact specs). For each required asset, tell the user:

  • Slot & File Role (e.g., [A1] Hero Cutout — Morning, [A2] Hero Full Photo — Morning, [L1] Brand Logo)
  • Format & Transparency (e.g., PNG/WebP with clean transparent background vs full-bleed JPG/WebP)
  • Framing & Alignment Rule (e.g., Must share exact camera angle and framing with the Night pair and Ground image so swaps never jump)
  • Resolution & Safe Crop Zone (e.g., Landscape 16:9, >= 1920px wide (2560px ideal); keep hero subject within horizontal 50%–72% so mobile crop preserves it)
  • Logo SVG Rule (e.g., Clean SVG with viewBox and monochrome paths—no embedded bitmap—so color-mix() recolors it smoothly)
  • How to deliver: Drop files into an ./assets/ folder (or workspace root), paste URLs, attach in chat, or tell me "generate/stock placeholders for [slots]".

Part B: Consolidated Refinement Questionnaire

Ask only the questions not already answered by the prompt (max 6–8 crisp items). Put a sensible (Recommended) default on each choice so the user can even reply "defaults except 1 and 4". You may use ask_question for tight multiple-choice items if appropriate, or keep all numbered items + upload list together in one cohesive turn so the user answers everything at once:

  1. Brand & Domain Identity: Brand/company name, industry/product, and core offer (so copy, metadata, and visuals feel authentic).
  2. Exact Copy & Headline Split: Your main headline (noting whether to keep multi-line / two-tone highlight structure), caption/subheadline, nav links, and state/toggle labels (e.g., Morning / Night, Before / After, Pro / Studio).
  3. Remake Scope:
    • A (Recommended if matching a hero prompt): Refined Hero Reskin — preserve the exact engine, timings, and visual craft; customize brand, palette, copy, and assets.
    • B: Creative Remix — swap shader/effect mood (e.g., fog -> aurora/water/embers), timing feel, or number of states.
    • C: Full End-User Landing Page — keep this hero seamless at top + design and build remaining sections below (Features, Proof/Cases, Pricing/Calculator, Interactive Demos, FAQ, Footer) using verified free UI component MCPs & registries (ui-components-mcp.md).
  4. Real Wiring (No Dead Links): Where should nav links and primary CTA buttons point?
    • Interactive Quote/Lead modal right inside the page (with validation + confirmation state) (Recommended for single-page launches)
    • Smooth-scroll section anchors (#how-it-works, #cases, etc.)
    • Specific external URLs / Calendly / mailto: / webhook endpoint (Formspree, Web3Forms, API).
  5. Tech Stack & Output Structure:
    • Single self-contained index.html (zero build step, instant deploy)
    • Static bundle (index.html + css/styles.css + js/main.js + ./assets/)
    • React / Next.js / Vite + Tailwind component.
  6. Palette & Theme Behavior: Keep original colors, supply your brand hexes (light/dark/accent), or auto-derive harmonious color-mix() light/dark palettes from your logo/assets.
  7. Asset Source & Launch Polish: Confirm whether you are uploading assets now, want AI-generated/SVG visuals, or clean placeholders; plus any needed launch extras (custom domain OG tags, favicon, analytics ID, cookie/consent note).

End Phase 2 with:

"Upload/drop any assets above and reply once with your answers (or say 'use defaults except ...'). I will validate your assets and build the finished, end-user-ready site in one pass."


Phase 3: Pre-Build Asset & Spec Validation

Before writing code after the user replies:

  1. Inspect uploaded files (check existence, file extension, pixel dimensions, aspect ratio, orientation).
  2. Verify cutout alpha channels on every slot marked transparent cutout (e.g., via Python/PIL or image check if local file). If the user accidentally uploaded an opaque-background image for a cutout slot, catch it before generating broken layered CSS and either fix/flag it cleanly.
  3. Verify paired alignment (if Morning/Night or Ground/Cutout pairs differ wildly in aspect ratio, compute safe fallback or warn immediately).
  4. Lock a brief 5-line Build Map internally or briefly confirm adjustments before writing files.

Phase 4: Single-Pass End-User-Ready Build

Build the complete remake cleanly in one turn adhering to these production standards:

  • Top-of-File Customization Block: Put all editable copy, URLs, timings, colors (:root variables), and an ASSETS config object in one clean, commented block at the top so the user can tweak text, swap images, or adjust colors later with zero AI credits.
  • Compose Remaining Sections via Free UI MCPs (When Expanding Beyond Hero): If the user selected a full multi-section site or asks you to build the rest of the website using your own judgment, consult ui-components-mcp.md and only use 100% free, zero-API-key component MCPs & registries:
    • Use shadcn MCP (with free components.json registries such as @kokonutui via https://kokonutui.com/r/{name}.json, @tailark, @magicui, @aceternity, @react-bits, @cult-ui, @animate-ui, @coss), watermelon, magicui, frontend-inspo (also covers plain HTML/CSS/JS from freefrontend + threejs + refero), heroui, and context7 (for DaisyUI, Motion, GSAP, Tailwind docs).
    • Never install paid Pro registries or API-key-gated blocks.
    • Always restyle imported components to match the hero's exact typography, spacing, border/glass treatment, and color tokens (including --k / color-mix() polarity if the hero switches themes).
  • Single-Clock Integrity: When replicating choreographed motion, drive transforms, color mixes, UI fades, and canvas/shader uniforms from one requestAnimationFrame clock (never mix independent CSS transitions on synchronized scene layers).
  • Real Interactive Wiring:
    • Never leave primary CTAs as dead href="#" unless explicitly requested.
    • If the user chose an interactive quote/contact modal, implement full keyboard support (Esc to close, focus management, accessible labels, field validation, inline success feedback, and clean endpoint hook).
  • Graceful Fallbacks:
    • If WebGL2 / WebGL fails or is disabled, render a styled CSS radial/linear mist or atmosphere fallback so the layout never breaks.
    • Include system font fallbacks alongside Google Fonts / local .woff2.
  • Accessibility & Contrast:
    • Native <button>, aria-pressed, role="group", :focus-visible outlines, semantic landmarks (<header>, <main>), and instant state switching under prefers-reduced-motion: reduce.
    • Verify readable contrast across every interpolated theme state (not just start and end, also mid-mix if readable).
  • Production Metadata:
    • Proper <title>, <meta name="description">, OpenGraph (og:title, og:description, og:image if provided), viewport meta, and inline SVG favicon derived from the brand icon.

Phase 5: Verification & Zero-Credit Handoff

After writing the files:

  1. Verify what you built:
    • Check HTML/CSS/JS syntax, confirm every referenced local asset path exists and resolves cleanly, check GLSL shader syntax carefully, and verify there are no missing IDs, broken imports, or orphaned tags.
    • If testing in a browser is appropriate and requested/available, verify both desktop and mobile viewports, toggle states, modal interactions, and console cleanliness; report only checks you actually ran.
  2. Provide a Zero-Credit Handoff Summary:
    • Clickable file links to everything created.
    • Quick-Edit Map: Exact CSS variables / config lines to edit copy, swap images, or tune colors/timings manually in seconds.
    • Next-Step Checklist: Anything requiring external deployment keys (e.g., form endpoint URL, analytics ID, domain OG URL).
    • Offer to export the updated 15-Section Prompt Blueprint (using prompt-template.md) for their new version if they want to archive or iterate on it later.

Habilidades Relacionadas