[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EX45RF2XZKRC3KDJDTT1PH":3,"skill-same:01M7EX45RF2XZKRC3KDJDTT1PH":58},{"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":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7EX45RF2XZKRC3KDJDTT1PH","wireframe",null,"Generate JSON wireframe with HTML preview","mhyahya854\u002FAI-Second-Brain_Universal-Rules","mhyahya854","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194078115?v=4","01M7EGSP2M9T858SDHJMXQ257Y","01M7EGSP3N6HN6879SVDPMD4DZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: wireframe\ndescription: Generate JSON wireframe with HTML preview\n---\n\n# \u002Fwireframe\n\nGenerate a JSON wireframe definition and render it as a self-contained HTML preview.\n\n## Input\n\nTwo modes:\n\n1. **Conversation**: Describe the layout you want to wireframe. Claude generates JSON from the description.\n2. **`design-id` argument**: `\u002Fwireframe {design-id}` — reads `designs\u002F{design-id}\u002Foutput\u002Fdesign-spec.md` and extracts layout structure from the Information Architecture section.\n\n## Output\n\nTwo files per screen:\n\n- `{name}.wireframe.json` — Machine-readable wireframe definition\n- `{name}.wireframe.html` — self-contained HTML preview (open in browser)\n\n**HTML preview features:**\n- Collapsible right panel showing live JSON (syncs on every edit)\n- Drag-and-drop reordering within the same parent\n- Save button (Chrome \u002F Edge — uses File System Access API, first save opens picker, subsequent saves write directly)\n- Copy and Download buttons (all browsers)\n- Panel collapse state persists across sessions via localStorage\n\n**Output path:**\n- With `design-id`: `designs\u002F{design-id}\u002Foutput\u002Fwireframe\u002F` (automatic)\n- Without `design-id`: prompted — ask user for directory path\n\n## Execution Steps\n\n### Step 1: Determine input\n\nIf a `design-id` argument is provided:\n1. Read `designs\u002F{design-id}\u002Foutput\u002Fdesign-spec.md`\n2. Extract layout structure from the Information Architecture section\n3. Identify all views\u002Fscreens described\n\nIf no argument:\n1. Use the conversation context to understand the desired layout\n2. Ask clarifying questions if the layout description is ambiguous\n\n### Step 2: Load cognitive model and generate wireframe JSON\n\n1. Load the wireframe designer cognitive model from `wireframe-designer.md` in this skill's directory\n2. Follow the perception sequence (Phases 1–7) to reason about the layout before producing JSON\n3. Produce a JSON object following the schema below\n\n**Schema rules** (mechanical — these constrain the JSON format, not design judgment):\n\n- Every node MUST have a `name`\n- Layout containers MUST have `direction` and `children`\n- Leaf elements SHOULD have a `type`\n- The JSON maps 1:1 to CSS flexbox — think in flex terms\n- Apply the sizing constraints from the Element types table. In particular: `button`, `link`, and `text` elements must never have fixed `width` — use `height` only and let content determine width. `input` elements use `height` plus `grow` or `maxWidth`, never a fixed `width` alone\n\n### Step 3: Determine output location\n\nDerive `{name}` (the filename stem) from the JSON `name` field: English words, lowercase, joined by hyphens. Translate a non-English `name` into English first.\n\n**If `design-id` was provided:**\n- Output directory is `designs\u002F{design-id}\u002Foutput\u002Fwireframe\u002F` (no prompt needed)\n\n**If no `design-id`:**\n- Ask the user where to save the JSON: \"Where should I save the wireframe JSON? Provide a directory path.\"\n- Use `AskUserQuestion` with a simple text prompt\n- Create the directory if it doesn't exist\n\nBoth `.wireframe.json` and `.wireframe.html` go in the same output directory, referred to below as `{output_dir}`.\n\nWrite the JSON to `{output_dir}\u002F{name}.wireframe.json` with the Write tool.\n\n### Step 4: Generate HTML preview\n\nUse a Bash command to splice the JSON into the template. This avoids outputting the ~1300-line template through the Write tool (which is slow because every line becomes output tokens):\n\n```bash\npython3 -c \"\nt = open('{skill_dir}\u002Fwireframe-template.html').read()\nd = open('{output_dir}\u002F{name}.wireframe.json').read()\nopen('{output_dir}\u002F{name}.wireframe.html', 'w').write(t.replace('const WIREFRAME_DATA = null;', 'const WIREFRAME_DATA = ' + d + ';'))\n\"\n```\n\nReplace `{skill_dir}` with the absolute path of the directory that contains this SKILL.md, and `{output_dir}` and `{name}` with the values from Step 3. Use absolute paths.\n\n**Do NOT** read the template with the Read tool or write the HTML with the Write tool. The Python script handles both file operations directly on disk.\n\n### Step 5: Output\n\n1. Open the HTML preview in the browser: `open {output_dir}\u002F{name}.wireframe.html`\n2. Confirm to the user:\n   ```\n   Wireframe generated:\n   - JSON: {output_dir}\u002F{name}.wireframe.json\n   - Preview: {output_dir}\u002F{name}.wireframe.html (opened in browser)\n   ```\n\n---\n\n## JSON Wireframe Schema\n\n```json\n{\n  \"name\": \"Screen Name\",\n  \"viewport\": { \"width\": 1280, \"height\": 800 },\n  \"root\": {\n    \"name\": \"Root\",\n    \"direction\": \"vertical\",\n    \"children\": []\n  }\n}\n```\n\n### Top-level fields\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | Yes | Screen\u002Fwireframe name |\n| `viewport` | `{ width, height }` | Yes | Canvas dimensions in px |\n| `root` | node | Yes | Root layout node |\n\n### Node fields\n\n**Identity:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | Yes | Node label (shown in wireframe) |\n| `type` | string | No | Element type for placeholder rendering |\n| `variant` | string | No | Text hierarchy: `\"display\"` (32px), `\"heading\"` (24px), `\"caption\"` (12px). Default body (16px). Only for `type: \"text\"`. |\n\n**Layout (for containers with children):**\n\n| Field | Type | Default | CSS equivalent |\n|-------|------|---------|---------------|\n| `direction` | `\"vertical\"` \u002F `\"horizontal\"` | `\"vertical\"` | flex-direction |\n| `children` | node[] | — | child elements |\n| `gap` | number | 0 | gap (px) |\n| `padding` | number or [v, h] | 0 | padding (px) |\n| `justify` | string | `\"flex-start\"` | justify-content |\n| `align` | string | `\"stretch\"` | align-items |\n| `wrap` | boolean | false | flex-wrap: wrap |\n\n**Sizing:**\n\n| Field | Type | Default | CSS equivalent |\n|-------|------|---------|---------------|\n| `width` | number | — | width (px) |\n| `height` | number | — | height (px) |\n| `grow` | boolean | false | flex: 1 |\n| `maxWidth` | number | — | max-width (px) |\n\n### Element types\n\n| Type | Rendered as | Use for | Sizing |\n|------|------------|---------|--------|\n| `\"text\"` | Gray text label | Labels, headings, body text | `height` only. No `width` — text reflows naturally |\n| `\"image\"` | Gray box with image icon | Photos, thumbnails, hero images | `width` + `height`, or `height` + `grow` |\n| `\"icon\"` | Small gray circle | Action icons, status indicators | Fixed `width` + `height` always |\n| `\"button\"` | Rounded rectangle | CTAs, primary actions | `height` only. Never `width` — label length varies |\n| `\"link\"` | Underlined text | Navigation items, secondary actions, text links | `height` only. Never `width` — label length varies |\n| `\"input\"` | Bordered rectangle | Search fields, form inputs, dropdowns | `height` + `grow` or `maxWidth`. Never fixed `width` alone |\n| `\"card\"` | Bordered box with light gray fill | Content cards, list items | `height` + `grow`, or `height` alone in vertical lists |\n| `\"table\"` | Header row + placeholder data rows | Data tables, lists with columns | `grow` or omit. Column widths via `columns[].width` \u002F `columns[].grow` |\n| `\"divider\"` | Thin horizontal line | Section separators | No sizing needed |\n| (none) | Transparent container | Structural grouping only | `grow` for flexible, `width` for fixed (e.g., sidebar) |\n\n### Table properties\n\nTables use `columns` and `rows` instead of `children`:\n\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `columns` | array | — | Column definitions (required for table) |\n| `columns[].name` | string | — | Column header text |\n| `columns[].grow` | boolean | `true` if `width` is unset | Flexible width (flex: 1). A column without `width` grows even when `grow` is omitted |\n| `columns[].width` | number | — | Fixed width in px |\n| `rows` | number | 3 | Number of placeholder data rows |\n\n```json\n{\n  \"name\": \"Users Table\",\n  \"type\": \"table\",\n  \"columns\": [\n    { \"name\": \"Name\", \"grow\": true },\n    { \"name\": \"Email\", \"grow\": true },\n    { \"name\": \"Role\", \"width\": 120 },\n    { \"name\": \"Status\", \"width\": 100 }\n  ],\n  \"rows\": 5\n}\n```\n\n### Style properties (optional)\n\nVisual properties for downstream consumers. These are **purely additive** — a wireframe JSON with zero style properties is 100% valid and renders as a monochrome wireframe (current behavior, unchanged). The wireframe HTML renderer ignores style properties.\n\nThe `\u002Fwireframe` skill itself produces plain wireframes. Style properties are added by `\u002Fui-prompts` when a design system is specified, creating a \"styled wireframe\" that downstream consumers (`\u002Fpencil-generate`, `\u002Fstitch-generate`, Figma Make) use directly.\n\n| Field | Type | Description | Applies to |\n|-------|------|-------------|------------|\n| `fill` | string (hex) | Background fill color | Containers, cards, buttons |\n| `color` | string (hex) | Text\u002Ficon foreground color | Text, icons, links |\n| `fontSize` | number | Font size in px | Text |\n| `fontWeight` | number | Font weight (400, 600) | Text |\n| `borderRadius` | number | Corner radius in px | Containers, cards, buttons, inputs |\n| `stroke` | `{ color, width }` | Border definition | Containers, cards, inputs |\n| `shadow` | `{ x, y, blur, color }` | Drop shadow | Containers, cards |\n| `opacity` | number (0–1) | Element opacity | Any node |\n\n**Rules:**\n- Values MUST be resolved (hex colors, px numbers) — never token names\n- Absence means \"use consumer defaults\" — omit properties you don't need to specify\n- `fill` on a container = background; `color` on text = foreground (avoid ambiguity)\n- `stroke` and `shadow` use object notation for clean parsing\n\n**Annotation fields:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `_solves` | string | Traces this element to a PRD problem or user need. Metadata only — ignored by all renderers. |\n\n**Canonical schema:** This JSON schema is the canonical layout format used across the pipeline. The `## Layout` section in UI prompt files (`prompts\u002F*.md`) uses this same schema inline, optionally with style properties. Skills that generate prompts (`\u002Fui-prompts`, `\u002Fstyle-exploration`, `\u002Ffigma-variation`) produce wireframe JSON. Skills that consume prompts (`\u002Fpencil-generate`, `\u002Fstitch-generate`) parse it directly.\n\n---\n\n## Example\n\nA dashboard with proper typographic hierarchy, spacing rhythm, and proportional heights:\n\n```json\n{\n  \"name\": \"Dashboard\",\n  \"viewport\": { \"width\": 1280, \"height\": 800 },\n  \"root\": {\n    \"name\": \"Page\",\n    \"direction\": \"vertical\",\n    \"children\": [\n      {\n        \"name\": \"Header\",\n        \"direction\": \"horizontal\",\n        \"height\": 56,\n        \"padding\": [0, 24],\n        \"justify\": \"space-between\",\n        \"align\": \"center\",\n        \"children\": [\n          { \"name\": \"Logo\", \"type\": \"image\", \"width\": 100, \"height\": 28 },\n          { \"name\": \"Search\", \"type\": \"input\", \"grow\": true, \"maxWidth\": 400, \"height\": 40 },\n          { \"name\": \"Avatar\", \"type\": \"icon\", \"width\": 32, \"height\": 32 }\n        ]\n      },\n      {\n        \"name\": \"Body\",\n        \"direction\": \"horizontal\",\n        \"grow\": true,\n        \"children\": [\n          {\n            \"name\": \"Sidebar\",\n            \"width\": 240,\n            \"direction\": \"vertical\",\n            \"padding\": 16,\n            \"gap\": 4,\n            \"children\": [\n              { \"name\": \"Overview\", \"type\": \"link\", \"height\": 40 },\n              { \"name\": \"Projects\", \"type\": \"link\", \"height\": 40 },\n              { \"name\": \"Settings\", \"type\": \"link\", \"height\": 40 }\n            ]\n          },\n          {\n            \"name\": \"Main\",\n            \"grow\": true,\n            \"direction\": \"vertical\",\n            \"padding\": 32,\n            \"gap\": 24,\n            \"children\": [\n              { \"name\": \"Dashboard\", \"type\": \"text\", \"variant\": \"display\", \"height\": 48 },\n              {\n                \"name\": \"Stats Row\",\n                \"direction\": \"horizontal\",\n                \"gap\": 16,\n                \"children\": [\n                  { \"name\": \"Total Users\", \"type\": \"card\", \"grow\": true, \"height\": 100 },\n                  { \"name\": \"Revenue\", \"type\": \"card\", \"grow\": true, \"height\": 100 },\n                  { \"name\": \"Active Today\", \"type\": \"card\", \"grow\": true, \"height\": 100 }\n                ]\n              },\n              {\n                \"name\": \"Recent Activity\",\n                \"direction\": \"vertical\",\n                \"gap\": 12,\n                \"children\": [\n                  { \"name\": \"Recent Activity\", \"type\": \"text\", \"variant\": \"heading\", \"height\": 36 },\n                  {\n                    \"name\": \"Activity Table\",\n                    \"type\": \"table\",\n                    \"columns\": [\n                      { \"name\": \"User\", \"grow\": true },\n                      { \"name\": \"Action\", \"grow\": true },\n                      { \"name\": \"Status\", \"width\": 120 },\n                      { \"name\": \"Time\", \"width\": 140 }\n                    ],\n                    \"rows\": 6\n                  }\n                ]\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Cognitive reasoning behind this wireframe:**\n\n- **Phase 3 (Task & Scanning Pattern):** Dashboard = monitoring intent → F-pattern → top-to-bottom primary content flow, important information along left edge and top\n- **Phase 4 (Grid Establishment):** Two major zones — sidebar (240px, fixed, persistent navigation) + content area (`grow: true`). Sidebar exists because content inventory includes navigation that aids the monitoring task.\n- **Phase 5 (Hierarchy Assignment):** Three levels — `display` for page identity (\"Dashboard\"), `heading` for section identity (\"Recent Activity\"), body (default) for data content. Caption reserved for table column headers (chrome, not content). Sidebar nav uses `link` (navigation aids the task but isn't the task itself). Primary CTAs in the content area would use `button`.\n- **Phase 6 (Spacing Logic):** Proximity tightens inward — Main padding 32 > section gap 24 > card gap 16 > internal gap 12. Each step inward signals increasing relatedness. Padded containers keep padding ≥ child gap (Main 32 ≥ 24, Sidebar 16 ≥ 4). Unpadded groups (Stats Row, Recent Activity) use a gap smaller than Main's gap of 24, so their children stay aligned with the page title.\n- **Phase 7 (Rhythm Verification):** Progressive density — spacious at top (title, 48px display text), medium in middle (stat cards, 100px), dense at bottom (table with 6 data rows). Heights accommodate content proportionally.\n","# \u002Fwireframe\n\nGenerate a JSON wireframe definition and render it as a self-contained HTML preview.\n\n## Input\n\nTwo modes:\n\n1. **Conversation**: Describe the layout you want to wireframe. Claude generates JSON from the description.\n2. **`design-id` argument**: `\u002Fwireframe {design-id}` — reads `designs\u002F{design-id}\u002Foutput\u002Fdesign-spec.md` and extracts layout structure from the Information Architecture section.\n\n## Output\n\nTwo files per screen:\n\n- `{name}.wireframe.json` — Machine-readable wireframe definition\n- `{name}.wireframe.html` — self-contained HTML preview (open in browser)\n\n**HTML preview features:**\n- Collapsible right panel showing live JSON (syncs on every edit)\n- Drag-and-drop reordering within the same parent\n- Save button (Chrome \u002F Edge — uses File System Access API, first save opens picker, subsequent saves write directly)\n- Copy and Download buttons (all browsers)\n- Panel collapse state persists across sessions via localStorage\n\n**Output path:**\n- With `design-id`: `designs\u002F{design-id}\u002Foutput\u002Fwireframe\u002F` (automatic)\n- Without `design-id`: prompted — ask user for directory path\n\n## Execution Steps\n\n### Step 1: Determine input\n\nIf a `design-id` argument is provided:\n1. Read `designs\u002F{design-id}\u002Foutput\u002Fdesign-spec.md`\n2. Extract layout structure from the Information Architecture section\n3. Identify all views\u002Fscreens described\n\nIf no argument:\n1. Use the conversation context to understand the desired layout\n2. Ask clarifying questions if the layout description is ambiguous\n\n### Step 2: Load cognitive model and generate wireframe JSON\n\n1. Load the wireframe designer cognitive model from `wireframe-designer.md` in this skill's directory\n2. Follow the perception sequence (Phases 1–7) to reason about the layout before producing JSON\n3. Produce a JSON object following the schema below\n\n**Schema rules** (mechanical — these constrain the JSON format, not design judgment):\n\n- Every node MUST have a `name`\n- Layout containers MUST have `direction` and `children`\n- Leaf elements SHOULD have a `type`\n- The JSON maps 1:1 to CSS flexbox — think in flex terms\n- Apply the sizing constraints from the Element types table. In particular: `button`, `link`, and `text` elements must never have fixed `width` — use `height` only and let content determine width. `input` elements use `height` plus `grow` or `maxWidth`, never a fixed `width` alone\n\n### Step 3: Determine output location\n\nDerive `{name}` (the filename stem) from the JSON `name` field: English words, lowercase, joined by hyphens. Translate a non-English `name` into English first.\n\n**If `design-id` was provided:**\n- Output directory is `designs\u002F{design-id}\u002Foutput\u002Fwireframe\u002F` (no prompt needed)\n\n**If no `design-id`:**\n- Ask the user where to save the JSON: \"Where should I save the wireframe JSON? Provide a directory path.\"\n- Use `AskUserQuestion` with a simple text prompt\n- Create the directory if it doesn't exist\n\nBoth `.wireframe.json` and `.wireframe.html` go in the same output directory, referred to below as `{output_dir}`.\n\nWrite the JSON to `{output_dir}\u002F{name}.wireframe.json` with the Write tool.\n\n### Step 4: Generate HTML preview\n\nUse a Bash command to splice the JSON into the template. This avoids outputting the ~1300-line template through the Write tool (which is slow because every line becomes output tokens):\n\n```bash\npython3 -c \"\nt = open('{skill_dir}\u002Fwireframe-template.html').read()\nd = open('{output_dir}\u002F{name}.wireframe.json').read()\nopen('{output_dir}\u002F{name}.wireframe.html', 'w').write(t.replace('const WIREFRAME_DATA = null;', 'const WIREFRAME_DATA = ' + d + ';'))\n\"\n```\n\nReplace `{skill_dir}` with the absolute path of the directory that contains this SKILL.md, and `{output_dir}` and `{name}` with the values from Step 3. Use absolute paths.\n\n**Do NOT** read the template with the Read tool or write the HTML with the Write tool. The Python script handles both file operations directly on disk.\n\n### Step 5: Output\n\n1. Open the HTML preview in the browser: `open {output_dir}\u002F{name}.wireframe.html`\n2. Confirm to the user:\n   ```\n   Wireframe generated:\n   - JSON: {output_dir}\u002F{name}.wireframe.json\n   - Preview: {output_dir}\u002F{name}.wireframe.html (opened in browser)\n   ```\n\n---\n\n## JSON Wireframe Schema\n\n```json\n{\n  \"name\": \"Screen Name\",\n  \"viewport\": { \"width\": 1280, \"height\": 800 },\n  \"root\": {\n    \"name\": \"Root\",\n    \"direction\": \"vertical\",\n    \"children\": []\n  }\n}\n```\n\n### Top-level fields\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | Yes | Screen\u002Fwireframe name |\n| `viewport` | `{ width, height }` | Yes | Canvas dimensions in px |\n| `root` | node | Yes | Root layout node |\n\n### Node fields\n\n**Identity:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | Yes | Node label (shown in wireframe) |\n| `type` | string | No | Element type for placeholder rendering |\n| `variant` | string | No | Text hierarchy: `\"display\"` (32px), `\"heading\"` (24px), `\"caption\"` (12px). Default body (16px). Only for `type: \"text\"`. |\n\n**Layout (for containers with children):**\n\n| Field | Type | Default | CSS equivalent |\n|-------|------|---------|---------------|\n| `direction` | `\"vertical\"` \u002F `\"horizontal\"` | `\"vertical\"` | flex-direction |\n| `children` | node[] | — | child elements |\n| `gap` | number | 0 | gap (px) |\n| `padding` | number or [v, h] | 0 | padding (px) |\n| `justify` | string | `\"flex-start\"` | justify-content |\n| `align` | string | `\"stretch\"` | align-items |\n| `wrap` | boolean | false | flex-wrap: wrap |\n\n**Sizing:**\n\n| Field | Type | Default | CSS equivalent |\n|-------|------|---------|---------------|\n| `width` | number | — | width (px) |\n| `height` | number | — | height (px) |\n| `grow` | boolean | false | flex: 1 |\n| `maxWidth` | number | — | max-width (px) |\n\n### Element types\n\n| Type | Rendered as | Use for | Sizing |\n|------|------------|---------|--------|\n| `\"text\"` | Gray text label | Labels, headings, body text | `height` only. No `width` — text reflows naturally |\n| `\"image\"` | Gray box with image icon | Photos, thumbnails, hero images | `width` + `height`, or `height` + `grow` |\n| `\"icon\"` | Small gray circle | Action icons, status indicators | Fixed `width` + `height` always |\n| `\"button\"` | Rounded rectangle | CTAs, primary actions | `height` only. Never `width` — label length varies |\n| `\"link\"` | Underlined text | Navigation items, secondary actions, text links | `height` only. Never `width` — label length varies |\n| `\"input\"` | Bordered rectangle | Search fields, form inputs, dropdowns | `height` + `grow` or `maxWidth`. Never fixed `width` alone |\n| `\"card\"` | Bordered box with light gray fill | Content cards, list items | `height` + `grow`, or `height` alone in vertical lists |\n| `\"table\"` | Header row + placeholder data rows | Data tables, lists with columns | `grow` or omit. Column widths via `columns[].width` \u002F `columns[].grow` |\n| `\"divider\"` | Thin horizontal line | Section separators | No sizing needed |\n| (none) | Transparent container | Structural grouping only | `grow` for flexible, `width` for fixed (e.g., sidebar) |\n\n### Table properties\n\nTables use `columns` and `rows` instead of `children`:\n\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `columns` | array | — | Column definitions (required for table) |\n| `columns[].name` | string | — | Column header text |\n| `columns[].grow` | boolean | `true` if `width` is unset | Flexible width (flex: 1). A column without `width` grows even when `grow` is omitted |\n| `columns[].width` | number | — | Fixed width in px |\n| `rows` | number | 3 | Number of placeholder data rows |\n\n```json\n{\n  \"name\": \"Users Table\",\n  \"type\": \"table\",\n  \"columns\": [\n    { \"name\": \"Name\", \"grow\": true },\n    { \"name\": \"Email\", \"grow\": true },\n    { \"name\": \"Role\", \"width\": 120 },\n    { \"name\": \"Status\", \"width\": 100 }\n  ],\n  \"rows\": 5\n}\n```\n\n### Style properties (optional)\n\nVisual properties for downstream consumers. These are **purely additive** — a wireframe JSON with zero style properties is 100% valid and renders as a monochrome wireframe (current behavior, unchanged). The wireframe HTML renderer ignores style properties.\n\nThe `\u002Fwireframe` skill itself produces plain wireframes. Style properties are added by `\u002Fui-prompts` when a design system is specified, creating a \"styled wireframe\" that downstream consumers (`\u002Fpencil-generate`, `\u002Fstitch-generate`, Figma Make) use directly.\n\n| Field | Type | Description | Applies to |\n|-------|------|-------------|------------|\n| `fill` | string (hex) | Background fill color | Containers, cards, buttons |\n| `color` | string (hex) | Text\u002Ficon foreground color | Text, icons, links |\n| `fontSize` | number | Font size in px | Text |\n| `fontWeight` | number | Font weight (400, 600) | Text |\n| `borderRadius` | number | Corner radius in px | Containers, cards, buttons, inputs |\n| `stroke` | `{ color, width }` | Border definition | Containers, cards, inputs |\n| `shadow` | `{ x, y, blur, color }` | Drop shadow | Containers, cards |\n| `opacity` | number (0–1) | Element opacity | Any node |\n\n**Rules:**\n- Values MUST be resolved (hex colors, px numbers) — never token names\n- Absence means \"use consumer defaults\" — omit properties you don't need to specify\n- `fill` on a container = background; `color` on text = foreground (avoid ambiguity)\n- `stroke` and `shadow` use object notation for clean parsing\n\n**Annotation fields:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `_solves` | string | Traces this element to a PRD problem or user need. Metadata only — ignored by all renderers. |\n\n**Canonical schema:** This JSON schema is the canonical layout format used across the pipeline. The `## Layout` section in UI prompt files (`prompts\u002F*.md`) uses this same schema inline, optionally with style properties. Skills that generate prompts (`\u002Fui-prompts`, `\u002Fstyle-exploration`, `\u002Ffigma-variation`) produce wireframe JSON. Skills that consume prompts (`\u002Fpencil-generate`, `\u002Fstitch-generate`) parse it directly.\n\n---\n\n## Example\n\nA dashboard with proper typographic hierarchy, spacing rhythm, and proportional heights:\n\n```json\n{\n  \"name\": \"Dashboard\",\n  \"viewport\": { \"width\": 1280, \"height\": 800 },\n  \"root\": {\n    \"name\": \"Page\",\n    \"direction\": \"vertical\",\n    \"children\": [\n      {\n        \"name\": \"Header\",\n        \"direction\": \"horizontal\",\n        \"height\": 56,\n        \"padding\": [0, 24],\n        \"justify\": \"space-between\",\n        \"align\": \"center\",\n        \"children\": [\n          { \"name\": \"Logo\", \"type\": \"image\", \"width\": 100, \"height\": 28 },\n          { \"name\": \"Search\", \"type\": \"input\", \"grow\": true, \"maxWidth\": 400, \"height\": 40 },\n          { \"name\": \"Avatar\", \"type\": \"icon\", \"width\": 32, \"height\": 32 }\n        ]\n      },\n      {\n        \"name\": \"Body\",\n        \"direction\": \"horizontal\",\n        \"grow\": true,\n        \"children\": [\n          {\n            \"name\": \"Sidebar\",\n            \"width\": 240,\n            \"direction\": \"vertical\",\n            \"padding\": 16,\n            \"gap\": 4,\n            \"children\": [\n              { \"name\": \"Overview\", \"type\": \"link\", \"height\": 40 },\n              { \"name\": \"Projects\", \"type\": \"link\", \"height\": 40 },\n              { \"name\": \"Settings\", \"type\": \"link\", \"height\": 40 }\n            ]\n          },\n          {\n            \"name\": \"Main\",\n            \"grow\": true,\n            \"direction\": \"vertical\",\n            \"padding\": 32,\n            \"gap\": 24,\n            \"children\": [\n              { \"name\": \"Dashboard\", \"type\": \"text\", \"variant\": \"display\", \"height\": 48 },\n              {\n                \"name\": \"Stats Row\",\n                \"direction\": \"horizontal\",\n                \"gap\": 16,\n                \"children\": [\n                  { \"name\": \"Total Users\", \"type\": \"card\", \"grow\": true, \"height\": 100 },\n                  { \"name\": \"Revenue\", \"type\": \"card\", \"grow\": true, \"height\": 100 },\n                  { \"name\": \"Active Today\", \"type\": \"card\", \"grow\": true, \"height\": 100 }\n                ]\n              },\n              {\n                \"name\": \"Recent Activity\",\n                \"direction\": \"vertical\",\n                \"gap\": 12,\n                \"children\": [\n                  { \"name\": \"Recent Activity\", \"type\": \"text\", \"variant\": \"heading\", \"height\": 36 },\n                  {\n                    \"name\": \"Activity Table\",\n                    \"type\": \"table\",\n                    \"columns\": [\n                      { \"name\": \"User\", \"grow\": true },\n                      { \"name\": \"Action\", \"grow\": true },\n                      { \"name\": \"Status\", \"width\": 120 },\n                      { \"name\": \"Time\", \"width\": 140 }\n                    ],\n                    \"rows\": 6\n                  }\n                ]\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Cognitive reasoning behind this wireframe:**\n\n- **Phase 3 (Task & Scanning Pattern):** Dashboard = monitoring intent → F-pattern → top-to-bottom primary content flow, important information along left edge and top\n- **Phase 4 (Grid Establishment):** Two major zones — sidebar (240px, fixed, persistent navigation) + content area (`grow: true`). Sidebar exists because content inventory includes navigation that aids the monitoring task.\n- **Phase 5 (Hierarchy Assignment):** Three levels — `display` for page identity (\"Dashboard\"), `heading` for section identity (\"Recent Activity\"), body (default) for data content. Caption reserved for table column headers (chrome, not content). Sidebar nav uses `link` (navigation aids the task but isn't the task itself). Primary CTAs in the content area would use `button`.\n- **Phase 6 (Spacing Logic):** Proximity tightens inward — Main padding 32 > section gap 24 > card gap 16 > internal gap 12. Each step inward signals increasing relatedness. Padded containers keep padding ≥ child gap (Main 32 ≥ 24, Sidebar 16 ≥ 4). Unpadded groups (Stats Row, Recent Activity) use a gap smaller than Main's gap of 24, so their children stay aligned with the page title.\n- **Phase 7 (Rhythm Verification):** Progressive density — spacious at top (title, 48px display text), medium in middle (stat cards, 100px), dense at bottom (table with 6 data rows). Heights accommodate content proportionally.\n",{"name":5,"description":7},"main","4c174e06a831864e98c30f630a7aa6c04738b094","skills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules","https:\u002F\u002Fgithub.com\u002Fmhyahya854","2026-11-06 02:03:37",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill wireframe",{"tool":36,"command":37},"bunx","bunx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill wireframe",{"tool":39,"command":40},"pnpm","pnpm dlx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill wireframe","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FSKILL.md",true,[44,48,54],{"path":45,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":15},"LICENSE","许可证",1063,{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"README.md","REFERENCE","参考文档",8004,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FREADME.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"wireframe-designer.md",21475,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002Fwireframe-designer.md",[59,67,75,82,89,96],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7EX4T721AAH60R0239P8WBZ","frontend-slides","Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT\u002FPPTX to web, or create slides for a talk\u002Fpitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FSKILL.md",[],[],{"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":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7EX495RSHTTCEJVX7C83FA3","design-dna","Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure\u002Fschema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on \"design DNA\", \"extract design style\", \"analyze design\", \"design tokens from reference\", \"generate design from JSON\", \"design system from screenshot\", \"design profile\", \"style guide JSON\", \"visual effects analysis\", \"design with effects\", \"3d design analysis\".","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7EWZEM3MHD48AYSYFR2C9JP","social-publishing","Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fsocial-publishing\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7EWKDEK9840C728VXT78EQ9","hermes-tweet","Install and operate Hermes Tweet, a Hermes Agent plugin for X\u002FTwitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X\u002FTwitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X\u002FTwitter context. Requires XQUIK_API_KEY for read and action tools.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fhermes-tweet\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7EWASXP3NZWW95CJPT2CRWN","refactoring-ui","Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions \"my UI looks off\" (or amateur\u002Funprofessional), \"fix the design\", \"Tailwind styling\", \"color palette\", \"visual hierarchy\", \"design system\", \"spacing scale\", or \"component styling\". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwondelai\u002Fskills\u002Frefactoring-ui\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7EWAHYM6JZCB1NXA72PVKDH","microinteractions","Design the small details -- triggers, rules, feedback, loops and modes -- that separate good products from great ones. Use when the user mentions \"microinteraction\", \"button feedback\", \"loading state\", \"toggle design\", \"animation detail\", \"state transitions\", \"input feedback\", \"the interface feels dead\", \"make the UI feel responsive\", or \"add polish to interactions\". Also trigger when designing form-validation responses, progress indicators, confirmation dialogs, or any element where the user expects immediate feedback. Covers trigger design, state rules, feedback mechanisms, and progressive loops. For overall UI polish, see refactoring-ui. For affordance design, see design-everyday-things.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwondelai\u002Fskills\u002Fmicrointeractions\u002FSKILL.md",[],[]]