Skip to content

Dev Guides — Claude Code Development Reference

Savoy Signature Hotels — Multi-Site Headless Platform
Purpose: Actionable development guides for AI-assisted (Claude Code) and human FE development
Phase Focus: Phase 1 — Design System + Figma-to-FE Integration


GuideFilenameFocus
0000_INDEX.mdThis index
0101_FIGMA_TO_CODE_WORKFLOW.mdEnd-to-end workflow from Figma design to production component
0202_DESIGN_TOKENS_EXTRACTION.mdHow to extract, name, and implement design tokens from Figma
0303_MODULE_DEVELOPMENT_LIFECYCLE.mdStep-by-step guide for creating a new module (M01-Mxx)
0404_STORYBOOK_FIRST_DEVELOPMENT.mdDeveloping and validating components in Storybook before integration
0505_BEM_SASS_THEMING.mdBEM + SASS conventions, CSS variables, and multi-theme support
0606_RESPONSIVE_IMAGES_PATTERN.mdDesktop + Mobile image handling with ResponsiveImage component
0707_CLAUDE_PROMPTING_CONVENTIONS.mdHow to prompt Claude Code for this project: context, patterns, and examples
0909_GIT_WORKFLOW.mdBranch naming, git worktree isolation, and PR-to-develop workflow

These guides serve as the operational manual when implementing FE tasks. Before starting any module or component:

  1. Read the relevant PRD document (e.g., docs/PRD/07_Modules_and_Templates.md)
  2. Read the corresponding dev guide for the workflow you’re executing
  3. Follow the file conventions, naming patterns, and acceptance criteria exactly

These guides document the team’s conventions for the Savoy project. They complement the PRD (which defines what to build) by explaining how to build it consistently.


PRD DocumentRelated Dev Guide(s)
04_Frontend_Architecture.md01, 03, 05
05_Design_System_and_Theming.md02, 04, 05
07_Modules_and_Templates.md01, 03, 04, 06
13_Media_and_Image_Pipeline.md06
14_Accessibility_and_Compliance.md03, 04
18_QA_Pipeline_and_Testing.md03, 04 (+ Pixel Perfect visual testing)

For Phase 1 (Design System + Core Modules), follow these guides in order:

  1. 02 Design Tokens — Extract tokens from Figma, create _base.css + 8 theme files
  2. 05 BEM + SASS + Theming — Understand the CSS architecture before writing any component
  3. 04 Storybook-First — Set up Storybook with theme decorator, validate tokens visually
  4. 01 Figma-to-Code — Full workflow for converting a Figma screen to a module
  5. 03 Module Lifecycle — Detailed module creation checklist (M01-M06 first)
  6. 06 Responsive Images — Implement desktop/mobile image pattern
  7. 07 Claude Conventions — Reference for AI-assisted implementation sessions
  8. 09 Git Workflow — Branch-per-feature, worktree isolation, PR to develop

Every module MUST pass Pixel Perfect visual tests before merging. This is an absolute rule enforced across all development:

  • Initial development: Rendered stories are compared against Figma baselines (screenshot comparison)
  • Ongoing development: Code changes are validated against regression baselines
  • Tool: Pixel Perfect addon in Storybook (custom panel with KPIs, diff viewer, baseline management)
  • Command: pnpm --filter storybook visual:test
  • Guides: See 03_MODULE_DEVELOPMENT_LIFECYCLE.md Step 8 and 04_STORYBOOK_FIRST_DEVELOPMENT.md Section 11