Skip to content

Dev Frontend Prompts — Claude Code Prompt Templates

Savoy Signature Hotels — Multi-Site Headless Platform
Purpose: Ready-to-use prompt templates for AI-assisted (Claude Code) frontend development
Phase Focus: Phase 1 — Design System + Figma-to-FE Integration


TemplateFilenameFocus
0000_INDEX.mdThis index
0101_MODULE.mdModule development (Static or Interactive)
0303_IMAGE_HEAVY_MODULE.mdModule with heavy image usage
0404_FORM_MODULE.mdForm module with validation and submission
0505_EXTRACT_THEME_TOKENS.mdExtracting design tokens from Figma
0606_CREATE_THEME_VARIANT.mdCreating or extending a site theme variant
0707_RESPONSIVE_IMAGE_SETUP.mdResponsive image setup with ResponsiveImage component
0808_STORYBOOK_FIRST_DEVELOPMENT.mdDeveloping UI components in Storybook first
0909_FIX_ACCESSIBILITY.mdAuditing and fixing accessibility issues
1010_OPTIMIZE_PERFORMANCE.mdPerformance auditing and optimization
1111_ADD_TESTS.mdWriting Vitest unit and integration tests
1212_RESPONSIVE_LAYOUT.mdResponsive layout and breakpoint handling
1313_COMPLEX_DATA_MAPPER.mdComplex Umbraco-to-React mapper functions
1414_CLIENT_STATE_MANAGEMENT.mdClient state management for interactive modules
1515_MULTI_THEME_OVERRIDE.mdSite-specific theme overrides
1616_CMS_CONTENT_TYPE.mdUmbraco Element Type for a module (Phase C — after frontend)

  1. Pick the template that matches the task you need to accomplish
  2. Copy the prompt from the “Prompt Template” section
  3. Fill in the {PLACEHOLDER} values with your specific module/component details
  4. Paste the completed prompt into Claude Code
  5. Claude Code will read the context files listed at the top of the template, then execute the task
  • Always let Claude Code read the context files first — they provide the project conventions and patterns
  • The “Acceptance Criteria” section doubles as a PR review checklist
  • The “Common Pitfalls” section lists frequent mistakes — review these before accepting the output
  • Combine templates when tasks overlap (e.g., 01 + 03 for a module with heavy images)

Module development follows a frontend-first approach:

Phase A — Storybook → Stories + mock data + visual validation
Phase B — React/Next.js → Component + SCSS + types + mapper + tests
Phase B.5 — Pixel Perfect → Fetch Figma baselines, run visual tests, iterate, promote baselines (MANDATORY)
Phase C — Umbraco → Element Type + API integration + real content

MANDATORY: No module is complete without passing Pixel Perfect visual tests. See template 01 for the full visual testing workflow.


Templates for creating modules. Start with 01 (frontend), then 16 (backend) when ready for CMS integration.

TemplateUse When
01 ModuleSTART HERE — Create any module (Static or Interactive)
03 Image-Heavy ModuleModule features hero images, galleries, or many visual assets
04 Form ModuleModule contains user input forms (contact, newsletter, enquiry)
16 CMS Content TypeAFTER FRONTEND — Define the Umbraco Element Type (Phase C)

Workflow: Run 01 first (+ 03 if image-heavy, + 04 if form) → then 16 when ready for CMS.

TemplateUse When
05 Extract Theme TokensPulling tokens from a new Figma file
06 Create Theme VariantAdding or modifying a site theme
TemplateUse When
07 Responsive Image SetupSetting up desktop/mobile image pattern
08 Storybook-First DevelopmentDeveloping and validating standalone UI components in Storybook
09 Fix AccessibilityReviewing and fixing a11y issues
10 Optimize PerformanceAuditing bundle size, LCP, CLS, runtime
11 Add TestsWriting Vitest tests for modules or utilities
12 Responsive LayoutImplementing responsive layout and breakpoints
13 Complex Data MapperBuilding complex Umbraco JSON to React props mappers
TemplateUse When
14 Client State ManagementManaging state in interactive Client Components
15 Multi-Theme OverrideSite-specific theme overrides and variant handling