[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FNSVH80DF38Z35X14K6ZCP":3,"skill-same:01M6FNSVH80DF38Z35X14K6ZCP":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":65},"01M6FNSVH80DF38Z35X14K6ZCP","pp-design-system",null,"Use when a new project needs a domain-specific design system (B2B Admin or Hotel\u002FTravel) before specification and UI design work.","ohmyhotelco\u002Fhare-cc-plugins","ohmyhotelco","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F258133233?v=4","01M6CR4HP2N9F9ZWNX1KRHQ2W1","01M6CR4HSJC5J80RVQMD5K9QRN",2,"MIT","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-design-system\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"design system","pp design system","pp","system","design","new project","work","read","write","context","travel","ui design","specification","query","domain","domain-specific","b2b","project","ui","hotel","2026-11-10 10:12:30",false,"---\nname: pp-design-system\ndescription: \"Use when a new project needs a domain-specific design system (B2B Admin or Hotel\u002FTravel) before specification and UI design work.\"\nargument-hint: \"[--domain=b2b-admin|hotel-travel] [--query=\\\"context\\\"]\"\nuser-invocable: true\nallowed-tools: Read, Write, Glob, Grep\n---\n\nYou are executing the **design-system** skill for the Planning Plugin. Generate a comprehensive, domain-specific design system by reading curated CSV databases, applying domain filtering and industry reasoning rules, and writing Markdown output files.\n\n## Step 0: Verify Configuration\n\n1. Read `.claude\u002Fplanning-plugin.json`\n2. If it does not exist, inform the user:\n   > ⚠️ Planning plugin is not initialized. Run `\u002Fplanning-plugin:pp-init` first to set up project configuration.\n3. Stop execution if config is missing.\n\n## Step 1: Parse Arguments\n\nParse the skill arguments. Expected format: `[--domain=b2b-admin|hotel-travel] [--query=\"context\"]`\n\n- `--domain` (required): Must be `b2b-admin` or `hotel-travel`\n- `--query` (optional): Additional context for prioritizing results (e.g., `\"hotel booking CRM\"`)\n\nIf `--domain` is not provided, ask the user to choose:\n\n> Which domain is this project for?\n> 1. **b2b-admin** — Admin panels, dashboards, data management, internal tools\n> 2. **hotel-travel** — Hotel booking, travel platforms, hospitality management\n\n## Step 2: Auto-Detect Context\n\nGather project context automatically:\n\n1. **Project name**: Read `package.json` → use `name` field. If not found, read `CLAUDE.md` or ask the user.\n2. **Existing specs**: Check `docs\u002Fspecs\u002F` for any feature specs. If found, note them for context.\n3. **Existing design system**: Check if `design-system\u002F` already exists.\n   - If it exists, ask the user:\n     > A design system already exists at `design-system\u002F`. Do you want to regenerate it? This will overwrite existing files.\n   - Stop if user declines.\n\n## Step 3: Read CSV Data\n\nRead all 7 CSV files from `${CLAUDE_PLUGIN_ROOT}\u002Fdata\u002Fdesign-system\u002F` using the `Read` tool:\n\n1. `colors.csv` — columns: `id,domain,palette_name,role,hex,hsl,tailwind_name,contrast_ratio,description,tags`\n2. `typography.csv` — columns: `id,domain,scale_name,element,font_family,font_size,line_height,font_weight,letter_spacing,tailwind_class,description,tags`\n3. `styles.csv` — columns: `id,domain,category,name,description,css_values,use_case,tags`\n4. `components.csv` — columns: `id,domain,category,component_name,variant,use_case,props_config,companion_components,description,tags`\n5. `patterns.csv` — columns: `id,domain,category,name,description,page_layout,components_used,user_flow,best_practices,tags`\n6. `industry-rules.csv` — columns: `id,domain,category,rule,rationale,priority,applies_to,tags`\n7. `icons.csv` — columns: `id,domain,context,concept,lucide_name,alternatives,description,tags`\n\nRead all 7 files in parallel for efficiency.\n\n## Step 4: Filter and Apply Reasoning\n\nFor each CSV (except `industry-rules.csv`):\n- **Domain filter**: Keep only rows where `domain` matches the selected domain OR `domain` is `general`\n- If `--query` was provided, prioritize rows whose `tags`, `description`, or name fields are more relevant to the query\n\nFor `industry-rules.csv`:\n- Filter to rows where `domain` matches OR `domain` is `general`\n- Extract **design principles**: all rows with `priority` = `critical` or `recommended`\n- These principles will be used in MASTER.md and as reasoning notes in each page\n\nApply reasoning rules to each page's data:\n- **Critical rules** (`priority=critical`): If a rule's `applies_to` field contains the CSV category name (e.g., `colors`, `components`) or is `all`, note matching items with `[CRITICAL] {rule}` reasoning note\n- **Recommended rules** (`priority=recommended`): Note matching items with `[RECOMMENDED] {rule}` reasoning note\n- **Optional rules** (`priority=optional`): Note matching items with `[OPTIONAL] {rule}` reasoning note\n- Match rules to data rows by checking for token overlap between the rule's `rule`+`tags` fields and the row's text content\n\n## Step 5: Write Markdown Files\n\nCreate 7 files using `Write`. The output directory is `design-system\u002F` at the **project root** (not inside the plugin).\n\nUse the domain label mapping:\n- `b2b-admin` → `B2B Admin \u002F Dashboard`\n- `hotel-travel` → `Hotel \u002F Travel`\n\nUse an ISO-8601 UTC timestamp for generation time.\n\n---\n\n### 5.1: `design-system\u002FMASTER.md`\n\n```markdown\n# {project_name} — Design System\n\n> **Domain**: {domain_label}\n> **Generated**: {timestamp}\n> **Generator**: planning-plugin:pp-design-system\n\n## Design Principles\n\n### Critical\n\n- **{rule}**\n  - _{rationale}_\n\n### Recommended\n\n- **{rule}**\n  - _{rationale}_\n\n## Pages\n\n| Page | Description |\n|------|-------------|\n| [Colors](pages\u002Fcolors.md) | Color system with palettes, roles, and accessibility info |\n| [Typography](pages\u002Ftypography.md) | Type scale, font families, and text styles |\n| [Spacing & Layout](pages\u002Fspacing-layout.md) | Spacing system, grid layouts, and page patterns |\n| [Components](pages\u002Fcomponents.md) | Component library recommendations with props and variants |\n| [Patterns](pages\u002Fpatterns.md) | UX patterns, page templates, and user flows |\n| [Icons](pages\u002Ficons.md) | Icon guidelines with Lucide icon mappings |\n\n## Integration Guide\n\nThis design system is intended to be used with:\n\n- **`\u002Fplanning-plugin:pp-design`** — The `dsl-generator` agent reads `pages\u002Fcomponents.md`, `pages\u002Ficons.md`, `pages\u002Fpatterns.md`, and `MASTER.md` to inform component selection, icon mapping, layout validation, and design constraints. The `stitch-wireframe` agent reads `pages\u002Fcolors.md`, `pages\u002Ftypography.md`, `pages\u002Fpatterns.md`, and `MASTER.md` to inform wireframe color\u002Ffont context and layout validation. The `prototype-generator` agent reads `pages\u002Fcolors.md`, `pages\u002Ftypography.md`, and `pages\u002Fspacing-layout.md` to configure Tailwind theme.\n\n\n### Tailwind Theme Config\n\nApply the color tokens from `pages\u002Fcolors.md` to your `tailwind.config.js`:\n\n\\```js\n\u002F\u002F See pages\u002Fcolors.md for full palette\nmodule.exports = {\n  theme: {\n    extend: {\n      colors: {\n        \u002F\u002F Import from design system color tokens\n      }\n    }\n  }\n}\n\\```\n\n---\n\n_Generated by planning-plugin:pp-design-system at {timestamp}_\n```\n\n---\n\n### 5.2: `design-system\u002Fpages\u002Fcolors.md`\n\n```markdown\n# Color System — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Color Palette\n\n| Role | Name | Hex | HSL | Tailwind | Contrast | Description |\n|------|------|-----|-----|----------|----------|-------------|\n| {role} | {palette_name} | `{hex}` | `{hsl}` | `{tailwind_name}` | {contrast_ratio} | {description} |\n\n## CSS Custom Properties\n\n\\```css\n:root {\n  --color-{role}: {hex};\n}\n\\```\n\n## Tailwind Mapping\n\n\\```js\ncolors: {\n  '{role}': '{hex}', \u002F\u002F {tailwind_name}\n}\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.3: `design-system\u002Fpages\u002Ftypography.md`\n\n```markdown\n# Typography System — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Type Scale\n\n| Element | Font Family | Size | Line Height | Weight | Letter Spacing | Tailwind Class |\n|---------|-------------|------|-------------|--------|----------------|----------------|\n| {element} | {font_family} | {font_size} | {line_height} | {font_weight} | {letter_spacing} | `{tailwind_class}` |\n\n## Font Families\n\n- `{unique_font_family}`\n\n## CSS Custom Properties\n\n\\```css\n:root {\n  --font-size-{element}: {font_size};\n  --line-height-{element}: {line_height};\n  --font-weight-{element}: {font_weight};\n}\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.4: `design-system\u002Fpages\u002Fspacing-layout.md`\n\n```markdown\n# Spacing & Layout — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Spacing Scale\n\n| Token | Value | Usage |\n|-------|-------|-------|\n| `space-1` | 4px | Tight inline spacing |\n| `space-2` | 8px | Default inline gap |\n| `space-3` | 12px | Compact section gap |\n| `space-4` | 16px | Default section gap |\n| `space-5` | 20px | Comfortable padding |\n| `space-6` | 24px | Card\u002Fpanel padding |\n| `space-8` | 32px | Section separation |\n| `space-10` | 40px | Major section spacing |\n| `space-12` | 48px | Page-level spacing |\n\n## Layout Patterns\n\n### {name}\n\n**Category**: {category} | **Domain**: {domain}\n\n{description}\n\n\\```css\n{css_values}\n\\```\n\n**Use case**: {use_case}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.5: `design-system\u002Fpages\u002Fcomponents.md`\n\n```markdown\n# Component Library — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Component Inventory\n\n| Component | Variant | Category | Use Case | Companions |\n|-----------|---------|----------|----------|------------|\n| **{component_name}** | {variant} | {category} | {use_case} | {companion_components} |\n\n## Component Details\n\n### {component_name} ({variant})\n\n{description}\n\n**Category**: {category}\n**Use case**: {use_case}\n\n**Props config**:\n\\```json\n{props_config}\n\\```\n\n**Companion components**: {companion_components}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.6: `design-system\u002Fpages\u002Fpatterns.md`\n\n```markdown\n# UX Patterns — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Pattern Index\n\n| Pattern | Category | Components Used |\n|---------|----------|-----------------|\n| **{name}** | {category} | {components_used} |\n\n## Pattern Details\n\n### {name}\n\n**Category**: {category} | **Domain**: {domain}\n\n{description}\n\n**Page layout**:\n> {page_layout}\n\n**Components used**: {components_used}\n\n**User flow**:\n> {user_flow}\n\n**Best practices**:\n> {best_practices}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.7: `design-system\u002Fpages\u002Ficons.md`\n\n```markdown\n# Icon Guidelines — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Icon Library: Lucide\n\nThis design system uses [Lucide](https:\u002F\u002Flucide.dev) icons via `lucide-react`.\n\n\\```bash\nnpm install lucide-react\n\\```\n\n## Icon Mapping\n\n| Context | Concept | Lucide Icon | Alternatives | Description |\n|---------|---------|-------------|-------------|-------------|\n| {context} | {concept} | `{lucide_name}` | {alternatives} | {description} |\n\n## Usage Guidelines\n\n- **Size**: Use `h-4 w-4` for inline icons, `h-5 w-5` for buttons, `h-6 w-6` for navigation\n- **Color**: Icons inherit text color by default; use `text-muted-foreground` for secondary icons\n- **Accessibility**: Add `aria-label` on icon-only buttons; use `aria-hidden=\"true\"` on decorative icons\n- **Consistency**: Use the primary Lucide name from the mapping above; fall back to alternatives only when context demands it\n\n## Import Pattern\n\n\\```tsx\nimport { IconName } from \"lucide-react\";\n\n\u002F\u002F Inline usage\n\u003CIconName className=\"h-4 w-4\" \u002F>\n\n\u002F\u002F Button with icon\n\u003CButton size=\"icon\" aria-label=\"Description\">\n  \u003CIconName className=\"h-4 w-4\" \u002F>\n\u003C\u002FButton>\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n## Step 6: Review and Summarize\n\nPresent a summary to the user:\n\n> ### ✅ Design System Generated\n>\n> **Project**: {project_name}\n> **Domain**: {domain_label}\n> **Output**: `design-system\u002F`\n>\n> | Page | Items |\n> |------|-------|\n> | Colors | {count} tokens |\n> | Typography | {count} scales |\n> | Spacing & Layout | {count} patterns |\n> | Components | {count} recommendations |\n> | UX Patterns | {count} patterns |\n> | Icons | {count} mappings |\n>\n> Would you like to customize any section?\n\nIf the user wants to customize, read the specific page file and offer to adjust:\n- Add\u002Fremove items\n- Adjust color values\n- Modify component recommendations\n- Edit the page content directly\n\n## Step 7: Update Progress (if in feature context)\n\nIf this skill was invoked from within a feature context (i.e., a feature progress file exists at `docs\u002Fspecs\u002F{feature}\u002F.progress\u002F{feature}.json`):\n\n1. Read the progress file\n2. Add or update the `designSystem` field:\n   ```json\n   {\n     \"designSystem\": {\n       \"status\": \"generated\",\n       \"domain\": \"{domain}\",\n       \"outputDir\": \"design-system\",\n       \"generatedAt\": \"{ISO-8601 timestamp}\"\n     }\n   }\n   ```\n3. Write the updated progress file\n\n## Step 8: Next Steps\n\nPresent next steps to the user:\n\n> ### Next Steps\n>\n> 1. **Review**: Browse the generated pages in `design-system\u002F` and customize as needed\n> 2. **Spec → Design**: Run `\u002Fplanning-plugin:pp-design {feature}` — the DSL generator will reference `design-system\u002Fpages\u002Fcomponents.md` for component selection\n>\n> The design system files are plain Markdown — feel free to edit them directly.\n\n## Important Rules\n\n- Always use `${CLAUDE_PLUGIN_ROOT}` to reference plugin-relative paths for CSV data files\n- The generated `design-system\u002F` directory is at the **project root** (not inside the plugin)\n- Do not modify the CSV data files — they are the curated source of truth\n- If the user asks about a domain not in the list, suggest the closest match or explain that only `b2b-admin` and `hotel-travel` are currently supported\n- Omit the \"Reasoning Notes\" section from a page if there are no applicable reasoning notes for that page's data\n- Deduplicate reasoning notes within each page — do not repeat the same note\n","You are executing the **design-system** skill for the Planning Plugin. Generate a comprehensive, domain-specific design system by reading curated CSV databases, applying domain filtering and industry reasoning rules, and writing Markdown output files.\n\n## Step 0: Verify Configuration\n\n1. Read `.claude\u002Fplanning-plugin.json`\n2. If it does not exist, inform the user:\n   > ⚠️ Planning plugin is not initialized. Run `\u002Fplanning-plugin:pp-init` first to set up project configuration.\n3. Stop execution if config is missing.\n\n## Step 1: Parse Arguments\n\nParse the skill arguments. Expected format: `[--domain=b2b-admin|hotel-travel] [--query=\"context\"]`\n\n- `--domain` (required): Must be `b2b-admin` or `hotel-travel`\n- `--query` (optional): Additional context for prioritizing results (e.g., `\"hotel booking CRM\"`)\n\nIf `--domain` is not provided, ask the user to choose:\n\n> Which domain is this project for?\n> 1. **b2b-admin** — Admin panels, dashboards, data management, internal tools\n> 2. **hotel-travel** — Hotel booking, travel platforms, hospitality management\n\n## Step 2: Auto-Detect Context\n\nGather project context automatically:\n\n1. **Project name**: Read `package.json` → use `name` field. If not found, read `CLAUDE.md` or ask the user.\n2. **Existing specs**: Check `docs\u002Fspecs\u002F` for any feature specs. If found, note them for context.\n3. **Existing design system**: Check if `design-system\u002F` already exists.\n   - If it exists, ask the user:\n     > A design system already exists at `design-system\u002F`. Do you want to regenerate it? This will overwrite existing files.\n   - Stop if user declines.\n\n## Step 3: Read CSV Data\n\nRead all 7 CSV files from `${CLAUDE_PLUGIN_ROOT}\u002Fdata\u002Fdesign-system\u002F` using the `Read` tool:\n\n1. `colors.csv` — columns: `id,domain,palette_name,role,hex,hsl,tailwind_name,contrast_ratio,description,tags`\n2. `typography.csv` — columns: `id,domain,scale_name,element,font_family,font_size,line_height,font_weight,letter_spacing,tailwind_class,description,tags`\n3. `styles.csv` — columns: `id,domain,category,name,description,css_values,use_case,tags`\n4. `components.csv` — columns: `id,domain,category,component_name,variant,use_case,props_config,companion_components,description,tags`\n5. `patterns.csv` — columns: `id,domain,category,name,description,page_layout,components_used,user_flow,best_practices,tags`\n6. `industry-rules.csv` — columns: `id,domain,category,rule,rationale,priority,applies_to,tags`\n7. `icons.csv` — columns: `id,domain,context,concept,lucide_name,alternatives,description,tags`\n\nRead all 7 files in parallel for efficiency.\n\n## Step 4: Filter and Apply Reasoning\n\nFor each CSV (except `industry-rules.csv`):\n- **Domain filter**: Keep only rows where `domain` matches the selected domain OR `domain` is `general`\n- If `--query` was provided, prioritize rows whose `tags`, `description`, or name fields are more relevant to the query\n\nFor `industry-rules.csv`:\n- Filter to rows where `domain` matches OR `domain` is `general`\n- Extract **design principles**: all rows with `priority` = `critical` or `recommended`\n- These principles will be used in MASTER.md and as reasoning notes in each page\n\nApply reasoning rules to each page's data:\n- **Critical rules** (`priority=critical`): If a rule's `applies_to` field contains the CSV category name (e.g., `colors`, `components`) or is `all`, note matching items with `[CRITICAL] {rule}` reasoning note\n- **Recommended rules** (`priority=recommended`): Note matching items with `[RECOMMENDED] {rule}` reasoning note\n- **Optional rules** (`priority=optional`): Note matching items with `[OPTIONAL] {rule}` reasoning note\n- Match rules to data rows by checking for token overlap between the rule's `rule`+`tags` fields and the row's text content\n\n## Step 5: Write Markdown Files\n\nCreate 7 files using `Write`. The output directory is `design-system\u002F` at the **project root** (not inside the plugin).\n\nUse the domain label mapping:\n- `b2b-admin` → `B2B Admin \u002F Dashboard`\n- `hotel-travel` → `Hotel \u002F Travel`\n\nUse an ISO-8601 UTC timestamp for generation time.\n\n---\n\n### 5.1: `design-system\u002FMASTER.md`\n\n```markdown\n# {project_name} — Design System\n\n> **Domain**: {domain_label}\n> **Generated**: {timestamp}\n> **Generator**: planning-plugin:pp-design-system\n\n## Design Principles\n\n### Critical\n\n- **{rule}**\n  - _{rationale}_\n\n### Recommended\n\n- **{rule}**\n  - _{rationale}_\n\n## Pages\n\n| Page | Description |\n|------|-------------|\n| [Colors](pages\u002Fcolors.md) | Color system with palettes, roles, and accessibility info |\n| [Typography](pages\u002Ftypography.md) | Type scale, font families, and text styles |\n| [Spacing & Layout](pages\u002Fspacing-layout.md) | Spacing system, grid layouts, and page patterns |\n| [Components](pages\u002Fcomponents.md) | Component library recommendations with props and variants |\n| [Patterns](pages\u002Fpatterns.md) | UX patterns, page templates, and user flows |\n| [Icons](pages\u002Ficons.md) | Icon guidelines with Lucide icon mappings |\n\n## Integration Guide\n\nThis design system is intended to be used with:\n\n- **`\u002Fplanning-plugin:pp-design`** — The `dsl-generator` agent reads `pages\u002Fcomponents.md`, `pages\u002Ficons.md`, `pages\u002Fpatterns.md`, and `MASTER.md` to inform component selection, icon mapping, layout validation, and design constraints. The `stitch-wireframe` agent reads `pages\u002Fcolors.md`, `pages\u002Ftypography.md`, `pages\u002Fpatterns.md`, and `MASTER.md` to inform wireframe color\u002Ffont context and layout validation. The `prototype-generator` agent reads `pages\u002Fcolors.md`, `pages\u002Ftypography.md`, and `pages\u002Fspacing-layout.md` to configure Tailwind theme.\n\n\n### Tailwind Theme Config\n\nApply the color tokens from `pages\u002Fcolors.md` to your `tailwind.config.js`:\n\n\\```js\n\u002F\u002F See pages\u002Fcolors.md for full palette\nmodule.exports = {\n  theme: {\n    extend: {\n      colors: {\n        \u002F\u002F Import from design system color tokens\n      }\n    }\n  }\n}\n\\```\n\n---\n\n_Generated by planning-plugin:pp-design-system at {timestamp}_\n```\n\n---\n\n### 5.2: `design-system\u002Fpages\u002Fcolors.md`\n\n```markdown\n# Color System — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Color Palette\n\n| Role | Name | Hex | HSL | Tailwind | Contrast | Description |\n|------|------|-----|-----|----------|----------|-------------|\n| {role} | {palette_name} | `{hex}` | `{hsl}` | `{tailwind_name}` | {contrast_ratio} | {description} |\n\n## CSS Custom Properties\n\n\\```css\n:root {\n  --color-{role}: {hex};\n}\n\\```\n\n## Tailwind Mapping\n\n\\```js\ncolors: {\n  '{role}': '{hex}', \u002F\u002F {tailwind_name}\n}\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.3: `design-system\u002Fpages\u002Ftypography.md`\n\n```markdown\n# Typography System — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Type Scale\n\n| Element | Font Family | Size | Line Height | Weight | Letter Spacing | Tailwind Class |\n|---------|-------------|------|-------------|--------|----------------|----------------|\n| {element} | {font_family} | {font_size} | {line_height} | {font_weight} | {letter_spacing} | `{tailwind_class}` |\n\n## Font Families\n\n- `{unique_font_family}`\n\n## CSS Custom Properties\n\n\\```css\n:root {\n  --font-size-{element}: {font_size};\n  --line-height-{element}: {line_height};\n  --font-weight-{element}: {font_weight};\n}\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.4: `design-system\u002Fpages\u002Fspacing-layout.md`\n\n```markdown\n# Spacing & Layout — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Spacing Scale\n\n| Token | Value | Usage |\n|-------|-------|-------|\n| `space-1` | 4px | Tight inline spacing |\n| `space-2` | 8px | Default inline gap |\n| `space-3` | 12px | Compact section gap |\n| `space-4` | 16px | Default section gap |\n| `space-5` | 20px | Comfortable padding |\n| `space-6` | 24px | Card\u002Fpanel padding |\n| `space-8` | 32px | Section separation |\n| `space-10` | 40px | Major section spacing |\n| `space-12` | 48px | Page-level spacing |\n\n## Layout Patterns\n\n### {name}\n\n**Category**: {category} | **Domain**: {domain}\n\n{description}\n\n\\```css\n{css_values}\n\\```\n\n**Use case**: {use_case}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.5: `design-system\u002Fpages\u002Fcomponents.md`\n\n```markdown\n# Component Library — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Component Inventory\n\n| Component | Variant | Category | Use Case | Companions |\n|-----------|---------|----------|----------|------------|\n| **{component_name}** | {variant} | {category} | {use_case} | {companion_components} |\n\n## Component Details\n\n### {component_name} ({variant})\n\n{description}\n\n**Category**: {category}\n**Use case**: {use_case}\n\n**Props config**:\n\\```json\n{props_config}\n\\```\n\n**Companion components**: {companion_components}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.6: `design-system\u002Fpages\u002Fpatterns.md`\n\n```markdown\n# UX Patterns — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Pattern Index\n\n| Pattern | Category | Components Used |\n|---------|----------|-----------------|\n| **{name}** | {category} | {components_used} |\n\n## Pattern Details\n\n### {name}\n\n**Category**: {category} | **Domain**: {domain}\n\n{description}\n\n**Page layout**:\n> {page_layout}\n\n**Components used**: {components_used}\n\n**User flow**:\n> {user_flow}\n\n**Best practices**:\n> {best_practices}\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n### 5.7: `design-system\u002Fpages\u002Ficons.md`\n\n```markdown\n# Icon Guidelines — {domain_label}\n\n> Part of [{project_name} Design System](..\u002FMASTER.md)\n\n## Icon Library: Lucide\n\nThis design system uses [Lucide](https:\u002F\u002Flucide.dev) icons via `lucide-react`.\n\n\\```bash\nnpm install lucide-react\n\\```\n\n## Icon Mapping\n\n| Context | Concept | Lucide Icon | Alternatives | Description |\n|---------|---------|-------------|-------------|-------------|\n| {context} | {concept} | `{lucide_name}` | {alternatives} | {description} |\n\n## Usage Guidelines\n\n- **Size**: Use `h-4 w-4` for inline icons, `h-5 w-5` for buttons, `h-6 w-6` for navigation\n- **Color**: Icons inherit text color by default; use `text-muted-foreground` for secondary icons\n- **Accessibility**: Add `aria-label` on icon-only buttons; use `aria-hidden=\"true\"` on decorative icons\n- **Consistency**: Use the primary Lucide name from the mapping above; fall back to alternatives only when context demands it\n\n## Import Pattern\n\n\\```tsx\nimport { IconName } from \"lucide-react\";\n\n\u002F\u002F Inline usage\n\u003CIconName className=\"h-4 w-4\" \u002F>\n\n\u002F\u002F Button with icon\n\u003CButton size=\"icon\" aria-label=\"Description\">\n  \u003CIconName className=\"h-4 w-4\" \u002F>\n\u003C\u002FButton>\n\\```\n\n## Reasoning Notes\n\n> These notes explain why specific items were selected or prioritized.\n\n- {deduplicated reasoning notes}\n\n---\n\n_Generated at {timestamp}_\n```\n\n---\n\n## Step 6: Review and Summarize\n\nPresent a summary to the user:\n\n> ### ✅ Design System Generated\n>\n> **Project**: {project_name}\n> **Domain**: {domain_label}\n> **Output**: `design-system\u002F`\n>\n> | Page | Items |\n> |------|-------|\n> | Colors | {count} tokens |\n> | Typography | {count} scales |\n> | Spacing & Layout | {count} patterns |\n> | Components | {count} recommendations |\n> | UX Patterns | {count} patterns |\n> | Icons | {count} mappings |\n>\n> Would you like to customize any section?\n\nIf the user wants to customize, read the specific page file and offer to adjust:\n- Add\u002Fremove items\n- Adjust color values\n- Modify component recommendations\n- Edit the page content directly\n\n## Step 7: Update Progress (if in feature context)\n\nIf this skill was invoked from within a feature context (i.e., a feature progress file exists at `docs\u002Fspecs\u002F{feature}\u002F.progress\u002F{feature}.json`):\n\n1. Read the progress file\n2. Add or update the `designSystem` field:\n   ```json\n   {\n     \"designSystem\": {\n       \"status\": \"generated\",\n       \"domain\": \"{domain}\",\n       \"outputDir\": \"design-system\",\n       \"generatedAt\": \"{ISO-8601 timestamp}\"\n     }\n   }\n   ```\n3. Write the updated progress file\n\n## Step 8: Next Steps\n\nPresent next steps to the user:\n\n> ### Next Steps\n>\n> 1. **Review**: Browse the generated pages in `design-system\u002F` and customize as needed\n> 2. **Spec → Design**: Run `\u002Fplanning-plugin:pp-design {feature}` — the DSL generator will reference `design-system\u002Fpages\u002Fcomponents.md` for component selection\n>\n> The design system files are plain Markdown — feel free to edit them directly.\n\n## Important Rules\n\n- Always use `${CLAUDE_PLUGIN_ROOT}` to reference plugin-relative paths for CSV data files\n- The generated `design-system\u002F` directory is at the **project root** (not inside the plugin)\n- Do not modify the CSV data files — they are the curated source of truth\n- If the user asks about a domain not in the list, suggest the closest match or explain that only `b2b-admin` and `hotel-travel` are currently supported\n- Omit the \"Reasoning Notes\" section from a page if there are no applicable reasoning notes for that page's data\n- Deduplicate reasoning notes within each page — do not repeat the same note\n",{"name":5,"description":7,"allowed-tools":43,"argument-hint":44,"user-invocable":45},"Read, Write, Glob, Grep","[--domain=b2b-admin|hotel-travel] [--query=\"context\"]",true,"main","99f07e592261c66756a2927d0440fc5fef950507","planning-plugin\u002Fskills\u002Fpp-design-system",0,"https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins","https:\u002F\u002Fgithub.com\u002Fohmyhotelco","2026-11-13 16:34:32",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":45},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ohmyhotelco\u002Fhare-cc-plugins --skill pp-design-system",{"tool":59,"command":60},"bunx","bunx skills add ohmyhotelco\u002Fhare-cc-plugins --skill pp-design-system",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ohmyhotelco\u002Fhare-cc-plugins --skill pp-design-system","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-design-system\u002FSKILL.md",[],[67,92,109,127,146,165],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":38},"01M6M5QVXQNQMJBP1JZP9T440T","hp-shared","Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fhomepage-plugin\u002Fskills\u002Fhp-shared\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91],"shared","hp shared","state","stack","plugin","how","for","report","code conventions","commands","how to","conventions","false","frontmatter","file","code","hand","check",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":38},"01M6M5PZTN1M0G4AHJV08VF1HV","fe-shared","Shared conventions for every frontend-react-plugin agent and skill — code conventions, state files and locks, accepted deviations, design principles, build working directory, router-mode command matrix, TypeScript check. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Ffrontend-react-plugin\u002Fskills\u002Ffe-shared\u002FSKILL.md",[],[74,99,80,100,82,101,22,102,103,86,89,90,104,91,105,76,78,106,107,108],"fe shared","mode","frontend","design principles","files","react","router","principles","command","build",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":38},"01M6M5GAW7ZZ3580DVCMH51SFQ","be-spring-shared","Shared conventions for every backend-springboot-plugin agent and skill — tech stack, CQRS architecture, naming, coding standards, TDD, commit and build rules, state files. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fbackend-springboot-plugin\u002Fskills\u002Fbe-spring-shared\u002FSKILL.md",[],[74,116,117,103,86,118,119,90,77,120,87,121,122,123,80,124,125,76,78,126],"spring","be spring shared","commit","architecture","coding standards","coding","standards","tech","Rules","cqrs","naming",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":38},"01M6FNV58QMW8K71SA9FGTXMF4","pp-translate","Use after directly editing the working language spec to sync changes to other supported languages.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-translate\u002FSKILL.md",[],[20,134,135,136,137,138,25,139,26,140,141,142,88,143,144,145],"pp translate","translate","feature","name","editing","spec","edit","sync","use","language","true","changes",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M6FNV0PGRKR2MW0AEPS6XP0Q","pp-sync-stitch","Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-sync-stitch\u002FSKILL.md",[],[153,20,154,141,155,156,136,35,157,158,159,142,160,161,162,163,164,137,25,144],"pp sync stitch","stitch","projects","get","re","local","MCP","Bash","id","wireframes","website","screen",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":38},"01M6FNTWW2KHS9XRAR72X33G0B","pp-sync-notion","Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-sync-notion\u002FSKILL.md",[],[20,172,141,173,136,157,174,175,159,142,30,137,25,26,140,176,144],"notion","pp sync notion","search","manual","grep"]