.claude/skills/export-html/SKILL.md
Export individual pages as self-contained HTML files with all CSS and JavaScript inlined. Use when user says "export HTML", "export page", "build HTML", "static export", "export as HTML", or wants a standalone HTML file.
npx skillsauth add TETRA2000/figma-web-studio export-htmlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
src/pages/{route}/index.tsx existsEnsure vite-plugin-singlefile is installed:
npm list vite-plugin-singlefile || npm install vite-plugin-singlefile --save-dev
Create a temporary Vite config for single-page export at vite.export.config.ts:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { viteSingleFile } from 'vite-plugin-singlefile'
export default defineConfig({
plugins: [tailwindcss(), react(), viteSingleFile()],
build: {
outDir: `dist/${route}`,
rollupOptions: {
input: 'index.html',
},
},
})
Create a temporary index.html and entry point that renders only the target page:
Run the Vite build:
npx vite build --config vite.export.config.ts
The output will be a single index.html with all CSS and JS inlined.
playwright-clidist/{route}/index.htmlReport:
dist/{route}/index.htmldevelopment
Fetch current Figma design state and apply changes back to React code. Use when user says "sync from Figma", "pull Figma changes", "update from Figma", "apply Figma changes", or wants to bring Figma edits into code.
tools
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
testing
Import an exported project archive, placing assets into the correct directories. Use when user says "import project", "import bundle", "import package", "unpack project", or has a .tar.gz archive to import.
tools
Push React components and pages to Figma using the Figma MCP server. Use when user says "export to Figma", "push to Figma", "create Figma design", "send to Figma", or wants to create a Figma design from code.