.claude/skills/create-page/SKILL.md
Generate web pages composed from existing components following directory-based routing conventions. Use when user says "create page", "make a page", "new page", "build a page", or describes a web page they want to create.
npx skillsauth add TETRA2000/figma-web-studio create-pageInstall 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.
repository or local (default: ask user)When the user provides a reference URL (or mentions a website they want the page to look like):
playwright-cli open {referenceUrl}
playwright-cli screenshot --filename=reference-page.png
playwright-cli snapshot --filename=reference-structure.yaml
playwright-cli press End
playwright-cli screenshot --filename=reference-page-bottom.png
playwright-cli close
Use the captured layout and structure as a reference — adapt section ordering, visual hierarchy, and spacing patterns to the project's existing components and Tailwind theme tokens. Do not copy arbitrary CSS values; map everything to the project's design system.
shared/references/component-registry.md to discover existing componentsshared/references/tailwind-theme.md for design tokensdocs/components.md for the full component indexIf scope not specified, ask the user:
src/pages/{route}/index.tsxsrc/pages/_local/{route}/index.tsxCreate nested directories as needed for multi-segment routes.
Create index.tsx at the route path:
docs/pages.md (repository) or docs/_local/pages.md (local)Format:
## {Title}
- **Route**: `/{route}`
- **Title**: {page title}
- **Description**: {description}
- **Path**: `src/pages/{route}/index.tsx`
- **Dependencies**: {list of components used}
- **Figma**: —
playwright-cli to capture a screenshot if availableReport:
/{route}User: "Create an about page with a hero section, team member cards, and a contact form"
Creates:
src/pages/about/index.tsx — Page composing Hero, Card, and form elementsdocs/pages.mdUser: "Create a landing page like https://linear.app — route it to /landing"
Captures the Linear website via playwright-cli for layout reference, then creates:
src/pages/landing/index.tsx — Page with hero, features grid, and CTA sections inspired by Linear's layoutdocs/pages.mddevelopment
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.