Website Rebuild 标志

Website Rebuild

社区
lotfb86
website-rebuild

Full website rebuild agent. Takes an existing website URL and rebuilds it from scratch into a world-class, SEO-optimized, WCAG AA accessible, visually stunning website using Astro + Tailwind CSS, deployed to Vercel via GitHub. Executes a rigorous 14-phase process: brand extraction, content scraping, SEO audit, design audit, rebuild planning, full build with design system, copy optimization, 3 QA rounds, competitive tools research, tools build, tools QA, pre-deploy checklist, and Vercel deployment. Produces 11+ documentation deliverables. Triggers on: "rebuild website", "redesign website", "rebuild site from URL", "website rebuild", "redo this website", "make this website better", "rebuild from scratch", "full site redesign", or any request to take an existing URL and create a new, professional website from it. Also triggers when the user provides a URL and asks to build/create/design a new version of that site.

概览

发布者lotfb86
代码仓库web-design-skills
技能名称website-rebuild
星标数
20
复刻数
7
附带文件
5
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 lotfb86 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Website Rebuild AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/lotfb86/web-design-skills/tree/main/05-website-rebuild
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lotfb86/web-design-skills.git /tmp/web-design-skills
mkdir -p .claude/skills
cp -r /tmp/web-design-skills/05-website-rebuild .claude/skills/website-rebuild
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Website Rebuild,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Website Rebuild。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Website Rebuild 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Full Website Rebuild Agent

Take an existing website URL and rebuild it from scratch into an extraordinary, production-ready website. The result should look like a $20,000+ agency build — visually stunning, conversion-optimized, fully accessible, and SEO-complete.

How This Skill Works

This skill runs 14 phases in strict order. Each phase produces documentation before moving on. Do not skip or reorder phases. The user provides a URL and you do the rest.

Input: A website URL (the site to rebuild) Output: A live Vercel-deployed website + GitHub repo + 11 documentation files

Tech Stack — Exact. Do Not Deviate.

Framework: Astro 5.x — static site generator, zero JavaScript by default, perfect for SEO. Styling: Tailwind CSS v4 (via Vite plugin) Images: Astro <Image> component from astro:assets (built-in optimization, WebP/AVIF) SEO: @astrojs/sitemap integration + manual JSON-LD View Transitions: Astro View Transitions (built-in, zero JS page transitions) Blog/Content: Astro Content Collections with MDX. Frontmatter: title, date, description, author, tags, featuredImage. Deployment: Vercel via GitHub (push to main = auto-deploy) Package Manager: npm (not pnpm, not yarn — npm only) Linting: ESLint + Prettier from the start

Initialization — Run These Exact Commands

bash
npm create astro@latest <project-name> -- --template minimal --no-install
cd <project-name>
npm install
npx astro add tailwind --yes
npx astro add sitemap --yes
npx astro add mdx --yes
npm install -D prettier

That's it. The project is ready.

If Something Fails During Build

Fix the code. Do NOT:

  • Switch Node versions
  • Switch package managers
  • Reinstall the framework
  • Add React or any other UI framework unless specifically needed for an interactive tool (Phase 11b)
  • Change the project structure

Astro File Structure

src/
  layouts/
    BaseLayout.astro       ← shared HTML shell, <head>, nav, footer
    BlogPostLayout.astro   ← blog post template
  pages/
    index.astro            ← homepage
    about.astro            ← about page
    services.astro         ← services page
    contact.astro          ← contact page
    blog/
      index.astro          ← blog listing
      [...slug].astro      ← dynamic blog post pages
    tools/                 ← interactive tools (Phase 11b)
    404.astro              ← custom 404
  components/
    Header.astro           ← navigation
    Footer.astro           ← footer
    Hero.astro             ← hero section
    ...                    ← section components as needed
  content/
    config.ts              ← content collection schema
    blog/
      *.mdx                ← blog posts
  styles/
    global.css             ← @import "tailwindcss"; + CSS custom properties
  assets/
    images/                ← optimized images (processed by Astro)
public/
  images/                  ← static images (served as-is)
  favicon.svg
  robots.txt

Astro Basics for This Build

.astro files have a frontmatter script fence (---) at the top and HTML-like template below:

astro
---
import { Image } from 'astro:assets';
import BaseLayout from '../layouts/BaseLayout.astro';
import heroImage from '../assets/images/hero.jpg';
---

<BaseLayout title="Home" description="Meta description here">
  <section class="relative h-[80vh]">
    <Image src={heroImage} alt="Descriptive alt text" class="object-cover w-full h-full" />
  </section>
</BaseLayout>

Key differences from React/Next.js:

  • No JSX — it's HTML. Use class= not className=. Use for= not htmlFor=.
  • No useState, no useEffect, no client-side state. Pages are static HTML.
  • For interactive tools (Phase 11b), use Astro Islands: add client:load to a component that needs JavaScript.
  • Images: Import from src/assets/images/ for optimization, or reference public/images/ for static files.
  • CSS custom properties go in src/styles/global.css and are available everywhere.
  • View Transitions: Add <ViewTransitions /> to the <head> in BaseLayout for smooth page transitions — zero JavaScript.

Google Fonts

Load via @fontsource packages (self-hosted, no external requests):

bash
npm install @fontsource-variable/playfair-display @fontsource/dm-sans

Then import in your layout's frontmatter:

astro
---
import '@fontsource-variable/playfair-display';
import '@fontsource/dm-sans';
---

Design — Delegated to Specialized Skills

All visual design decisions are handled by dedicated design skills. Do NOT make design choices from static rules — invoke the skills instead.

Required Design Skills (invoke during Phase 5 and Phase 6):

  1. frontend-design-anthropic — Use this skill for ALL visual design decisions: color palette, typography, layout composition, motion, component styling. Load this skill before writing any CSS or choosing any visual direction. It handles aesthetic commitment, font selection, color systems, spacing, and animation philosophy.

  2. web-design-guidelines — Use this skill to VALIDATE design choices against professional web design standards. Run this after building each major page to check for compliance issues, accessibility problems, and design anti-patterns.

How to use them in the build process:

  • Phase 5 (Rebuild Plan): Before defining the design direction, invoke frontend-design-anthropic to establish the aesthetic, color palette, typography pairing, and component patterns. Document these choices in REBUILD_PLAN.md.
  • Phase 6 (Build): Apply the design system from frontend-design-anthropic to every component and page. Use it for every visual decision — don't fall back to generic Tailwind defaults.
  • Phase 8-10 (QA): Run web-design-guidelines against each page to validate design quality. Fix any issues flagged before proceeding.

What this skill still owns (non-design):

  • Tech stack decisions (Astro + Tailwind)
  • Self-hosted fonts via @fontsource (the design skill picks WHICH fonts)
  • CSS custom properties architecture
  • Performance targets (Lighthouse 95+)
  • Image optimization via Astro <Image> component

Accessibility & Contrast (Critical)

Read accessibility-spec.md for the complete specification.

Contrast Minimums (WCAG AA)

Text TypeMinimumTarget
Normal body text (< 18px)4.5:17:1
Large text (>= 18px or >= 14px bold)3:14.5:1
UI components, borders, icons3:14.5:1
Placeholder text in inputs4.5:17:1
Focus indicators3:14.5:1

Verification

  • During QA, use preview_eval to run axe-core checks via CDN on each page
  • Fix every CRITICAL and SERIOUS violation before moving on
  • Verify contrast ratios for every color combination — document as comments in global.css
  • Never trust visual inspection alone

Common Failures to Avoid

  • Light gray text on white (any gray lighter than #595959 on #FFF fails)
  • White text on pale brand color buttons
  • Dark text on dark hero backgrounds
  • Hover/focus states that reduce contrast
  • Overlay text on images without sufficient opacity
  • Gradient text where lightest point fails contrast

The 14 Phases

Execute these in exact order. Do not skip or reorder. Each phase has detailed instructions in phase-details.md.

Phase 1: Visual Inspection & Brand Extraction

Open the URL in Chrome browser. Visit every page. The logo is the design anchor — extract brand colors (hex), typography personality, visual tone. Download logo files. Output: BRAND_BRIEF.md

Phase 2: Data Scraping & Content Classification

Write and run a scraping script. Extract all text, images, links, nav structure, contact info, forms, media, meta tags, testimonials, structured data. Classify as MUST REUSE or CAN MODIFY/REPLACE. Output: CONTENT_INVENTORY.md

Phase 3: Comprehensive SEO Audit

Technical SEO (speed, mobile, URLs, sitemap, robots.txt, HTTPS, canonicals, 404s, redirects). On-page SEO (titles, descriptions, headings, alt text, internal links, keywords). Content strategy (blog gaps, local SEO, schema markup). Output: SEO_AUDIT.md

Phase 4: Design & UX/UI Audit

Visual design (aesthetic, color, typography, spacing, hierarchy). UX (nav, CTAs, mobile, flow, trust signals). Conversion optimization (CTA placement, value prop, social proof). Output: DESIGN_AUDIT.md

Phase 5: Rebuild Plan

Synthesize Phases 1-4. Site architecture, design direction (invoke frontend-design-anthropic skill for typography, color palette, layout direction), image strategy (KEEP/ENHANCE/REPLACE/CREATE), copy strategy, SEO implementation plan, tools research placeholder, technical plan, accessibility targets. All color palettes must pass WCAG AA contrast verification. Output: REBUILD_PLAN.md

Phase 5b: Generate DESIGN.md

After completing the Rebuild Plan, generate a DESIGN.md file in the project root using the design-system-generator skill. This is the machine-readable design system that Phase 6 will consume.

  1. Read 00-design-references/design-md-format.md for the required 9-section structure.
  2. Browse 00-design-references/design-md-index.md and select 1-2 reference DESIGN.md files that match the chosen aesthetic direction. Read them for structural inspiration.
  3. Generate the project's DESIGN.md with all 9 sections populated from the design decisions made during Phase 5 and the frontend-design-anthropic skill invocation.
  4. Every color must include its hex value, semantic role, and WCAG contrast ratio against its intended background.
  5. Typography must include the complete hierarchy table (role, family, size, weight, line-height, letter-spacing).
  6. Component stylings must define button states, card patterns, and input styles with exact CSS values.
  7. The "Design Direction" section in REBUILD_PLAN.md should reference the DESIGN.md file: "See DESIGN.md for the complete design system" plus a 3-line summary.

Output: DESIGN.md in the project root

Phase 6: Build the Website

Read the project's DESIGN.md before writing any visual code. Use Section 2 (Color Palette) as the source for CSS custom properties in global.css. Use Section 3 (Typography) for font imports and the typographic scale. Use Section 4 (Component Stylings) for button, card, input, and nav component implementations. Use Section 6 (Depth & Elevation) for shadow tokens. The DESIGN.md is the single source of truth — do not fall back to generic Tailwind defaults when the DESIGN.md specifies a value.

Invoke the frontend-design-anthropic skill before writing any visual code. Build sequence:

  1. Initialize the Astro project using the exact commands from the Tech Stack section above.
  2. Design system first: CSS custom properties in global.css, component primitives, layout patterns. Document WCAG contrast ratios as comments next to every color pairing.
  3. Build every page per site architecture. Include polished 404. Make each page dramatically better.
  4. Handle images: KEEP→optimize with Astro <Image>, ENHANCE→Nano Banana, REPLACE→Unsplash (download locally). All images must be local files, never external URLs.
  5. Comprehensive SEO: meta tags, JSON-LD schema, sitemap (via @astrojs/sitemap), robots.txt, canonicals, semantic HTML.
  6. Generate favicon — complete set from logo.
  7. Accessibility: WCAG AA verified. Keyboard nav, focus indicators, ARIA, skip-to-content.
  8. Performance: Astro handles most of this (zero JS, static HTML). Self-hosted fonts via @fontsource. Target Lighthouse 95+.

Visual quality bar: Stunning. Not good — stunning. Think Apple, Stripe, Linear.

Phase 7: Copy Audit & Optimization

Value prop clear within 5 seconds. Every page has a benefit-driven CTA visible without scrolling. Lead with benefits, address objections, use specific numbers, 8th-grade reading level. Hook -> Problem -> Solution -> Proof -> Action flow. Output: COPY_CHANGES.md

Phase 8: QA Round 1 — Functional & Content

Run locally, open in Chrome, visit every page. Check links, images, forms, interactives at mobile/tablet/desktop. Verify contrast ratios, fix all critical/serious accessibility violations. Output: QA_ROUND_1.md + update ACCESSIBILITY_AUDIT.md

Phase 9: QA Round 2 — Copy & Messaging

Read entire site as a first-time customer. Can I understand the business in 5 seconds? Do I trust them? Do I know what to do next? Make final copy adjustments. Output: QA_ROUND_2.md

Phase 10: QA Round 3 — Final Visual & Polish

Every page at all viewport sizes. Run web-design-guidelines skill against each page. Animations smooth? Typography distinctive? Whitespace balanced? Colors cohesive? Final accessibility pass. Compare to best in industry — it should be BETTER. Output: QA_ROUND_3.md

Phase 11a: Competitive Tools Research Sprint

This is critical — no tool is built without research first. Budget assumption: unlimited.

  1. Identify top 10-15 competitors and best-in-class sites via web search.
  2. Visit each with Chrome. Document every interactive tool, calculator, quiz, configurator, estimator.
  3. Search broader web: "[industry] calculator/estimator/tool", Product Hunt, G2, industry directories.
  4. Synthesize: competitor inventory, best-in-class examples, gap analysis, ranked shortlist (value x conversion x uniqueness x feasibility), final selection of 2-5 tools. Output: TOOLS_RESEARCH.md

Phase 11b: Client-Facing Tools — Build

Build only tools approved in TOOLS_RESEARCH.md. Create /tools or /resources section.

For interactive tools that need client-side JavaScript, use Astro Islands:

  • Create a component in your preferred UI framework (React, Preact, Svelte, or vanilla JS)
  • Add client:load or client:visible directive when using the component in an .astro page
  • If using React for tools: npx astro add react --yes (ONLY add React when you reach this phase, not before)
  • Each tool gets its own page with title, description, the interactive tool, and a CTA
  • Mobile-responsive, design-system consistent, accessible

Phase 12: QA Round 4 — Tools QA

Test each tool in Chrome with valid inputs, edge cases (zero, huge numbers, empty), mobile viewport. Verify calculations, input validation, errors, appearance, CTA. Accessibility check on every tool page. Output: QA_ROUND_4.md

Phase 13: Pre-Deployment Checklist

Verify every item in the checklist. See phase-details.md for the full checklist covering: SEO, Performance, Accessibility, Contrast, Functionality, Content, Visual, Design System, Favicon, Docs.

Phase 14: Deploy

Initialize git, .gitignore, README.md (project overview, tech stack, how to run, how to add blog posts, structure). Commit and push to new GitHub repo. Connect to Vercel, configure build settings (Astro auto-detected by Vercel). Open live URL in Chrome, spot-check everything. Final accessibility scan against live URL.

Nano Banana Image Enhancement

When enhancing team/people photos, use OpenRouter API. See nano-banana.md for the script template. Verify current model string and endpoint at docs.openrouter.ai before running.

Blog Infrastructure

Set up using Astro Content Collections with MDX. New posts are added by creating an .mdx file in src/content/blog/ with frontmatter (title, date, description, author, tags, featuredImage), then pushing to main. Blog listing auto-picks up new posts sorted by date. Individual posts include: beautiful long-form typography, table of contents for long posts, social sharing buttons, CTA at bottom.

Final Deliverables

#Deliverable
1Live Vercel website — stunning, animated, responsive, SEO-optimized, WCAG AA, with research-validated tools
2GitHub repo — clean code, README with blog instructions, auto-deploys on push
3BRAND_BRIEF.md
4CONTENT_INVENTORY.md
5SEO_AUDIT.md
6DESIGN_AUDIT.md
7REBUILD_PLAN.md
8TOOLS_RESEARCH.md
9ACCESSIBILITY_AUDIT.md
10COPY_CHANGES.md
11QA_ROUND_1.md through QA_ROUND_4.md
12DESIGN.md — structured design system specification with all tokens, typography, components, and shadows

Guiding Principles

  • Quality over speed. Every phase matters. Fix issues before moving on.
  • Visually stunning is not optional. Gorgeous visuals, subtle animations, beautiful typography, intentional whitespace. A living, breathing, premium digital experience.
  • Design excellence is non-negotiable. $150,000+ agency quality. Use the frontend-design-anthropic skill for every visual decision. Validate with web-design-guidelines.
  • Accessibility is baked in from Phase 5. Contrast ratios computed before colors are finalized. Verified at every QA stage. WCAG AA is the floor.
  • SEO is baked in, not bolted on. URL structure, headings, alt text, content strategy — all informed by SEO from the start.
  • The copy must sell. This is a sales tool. Every page guides toward action.
  • Test like a skeptic. Actively try to break things during QA.
  • Think like the customer. What do THEY need? What makes THEM trust and act?
  • Research before you build. Especially for tools. Never build from guesswork.
  • Use your judgment. This gives you the roadmap and standards. You're the expert on execution.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Website Rebuild AI 技能有什么作用?

Full website rebuild agent. Takes an existing website URL and rebuilds it from scratch into a world-class, SEO-optimized, WCAG AA accessible, visually stunning website using Astro + Tailwind CSS, deployed to Vercel via GitHub. Executes a rigorous 14-phase process: brand extraction, content scraping, SEO audit, design audit, rebuild planning, full build with design system, copy optimization, 3 QA rounds, competitive tools research, tools build, tools QA, pre-deploy checklist, and Vercel deployment. Produces 11+ documentation deliverables. Triggers on: "rebuild website", "redesign website", "...

为什么在 TypingMind 中使用 Website Rebuild?

因为您只需安装一次,就能搭配任何模型使用。Website Rebuild 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Website Rebuild?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/lotfb86/web-design-skills/tree/main/05-website-rebuild。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Website Rebuild?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Website Rebuild 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Website Rebuild 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Website Rebuild AI 技能免费吗?

lotfb86 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇