Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat: add 5 new skills — SEO, web design, Google Chat, vite-flare-starter
Jez3886db9dee84
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 48d6dfbc..6ef71afb 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,21 +6,26 @@},"metadata": {"description": "Workflow skills for Claude Code - each produces tangible output",- "version": "4.0.0",+ "version": "5.0.0","updated": "2026-02-16"},"plugins": [{"name": "all",- "description": "All workflow skills: Cloudflare Workers, Tailwind themes, favicons, icons, colour palettes, ElevenLabs agents, MCP servers, memory management.",+ "description": "All 14 workflow skills: Cloudflare, web design, SEO, Google Chat, Tailwind, favicons, icons, colour palettes, ElevenLabs, MCP, memory management.","source": "./","skills": ["./skills/skill-creator","./skills/cloudflare-worker-builder",+ "./skills/vite-flare-starter","./skills/tailwind-theme-builder","./skills/color-palette","./skills/favicon-gen","./skills/icon-set-generator",+ "./skills/web-design-methodology",+ "./skills/web-design-patterns",+ "./skills/seo-local-business",+ "./skills/google-chat-messages","./skills/elevenlabs-agents","./skills/mcp-builder","./skills/memory-manager"@@ -28,20 +33,23 @@},{"name": "design",- "description": "Design skills: colour palettes, favicons, and custom SVG icon sets.",+ "description": "Design skills: colour palettes, favicons, custom SVG icons, web design methodology and patterns.","source": "./","skills": ["./skills/color-palette","./skills/favicon-gen",- "./skills/icon-set-generator"+ "./skills/icon-set-generator",+ "./skills/web-design-methodology",+ "./skills/web-design-patterns"]},{"name": "cloudflare",- "description": "Scaffold and deploy Cloudflare Workers with Hono + Vite.",+ "description": "Cloudflare Workers: scaffold from scratch or clone vite-flare-starter.","source": "./","skills": [- "./skills/cloudflare-worker-builder"+ "./skills/cloudflare-worker-builder",+ "./skills/vite-flare-starter"]},{@@ -52,6 +60,24 @@"./skills/tailwind-theme-builder"]},+ {+ "name": "web",+ "description": "Web design and SEO: methodology, component patterns, local business SEO.",+ "source": "./",+ "skills": [+ "./skills/seo-local-business",+ "./skills/web-design-methodology",+ "./skills/web-design-patterns"+ ]+ },+ {+ "name": "integrations",+ "description": "Third-party integrations: Google Chat webhooks.",+ "source": "./",+ "skills": [+ "./skills/google-chat-messages"+ ]+ },{"name": "ai","description": "Build ElevenLabs conversational AI voice agents.",diff --git a/CLAUDE.md b/CLAUDE.mdindex d9635d84..aee58f9a 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -15,13 +15,18 @@ Production workflow skills for Claude Code CLI. Each skill guides Claude through```claude-skills/-├── skills/ # All skills+├── skills/ # All skills (14)│ ├── skill-creator/ # Foundation: create new skills (Anthropic official)│ ├── cloudflare-worker-builder/ # Scaffold Cloudflare Worker projects+│ ├── vite-flare-starter/ # Full-stack Cloudflare app from starter template│ ├── tailwind-theme-builder/ # Set up Tailwind v4 + shadcn/ui themes│ ├── color-palette/ # Generate colour palettes from brand hex│ ├── favicon-gen/ # Generate favicon packages│ ├── icon-set-generator/ # Generate custom SVG icon sets+│ ├── web-design-methodology/ # Universal web design implementation (BEM, responsive, a11y)+│ ├── web-design-patterns/ # Heroes, cards, CTAs, trust signals, testimonials+│ ├── seo-local-business/ # SEO setup for local businesses (JSON-LD, meta, sitemap)+│ ├── google-chat-messages/ # Google Chat webhooks (text, cards, threads)│ ├── elevenlabs-agents/ # Build ElevenLabs voice agents│ ├── mcp-builder/ # Build MCP servers with FastMCP│ └── memory-manager/ # Audit and restructure CLAUDE.md hierarchy@@ -63,7 +68,7 @@ Key principle: **every skill must produce something.** If it's just reference ma# Install all skills/plugin install all@jezweb-skills-# Or by category: design, cloudflare, frontend, ai, mcp, development+# Or by category: design, cloudflare, frontend, web, integrations, ai, mcp, development/plugin install design@jezweb-skills# Local dev (loads without install)diff --git a/README.md b/README.mdindex 83800914..4c019daf 100644--- a/README.md+++ b/README.md@@ -10,10 +10,15 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t|-------|-----------------|| **[skill-creator](skills/skill-creator)** | New skill directories from template || **[cloudflare-worker-builder](skills/cloudflare-worker-builder)** | Deployable Cloudflare Worker projects with Hono + Vite |+| **[vite-flare-starter](skills/vite-flare-starter)** | Full-stack Cloudflare app (React 19, Hono, D1, better-auth, shadcn/ui) || **[tailwind-theme-builder](skills/tailwind-theme-builder)** | Themed Tailwind v4 + shadcn/ui setup with dark mode || **[color-palette](skills/color-palette)** | Complete colour palettes from a single brand hex || **[favicon-gen](skills/favicon-gen)** | Full favicon packages (SVG, ICO, PNG, manifest) || **[icon-set-generator](skills/icon-set-generator)** | Custom SVG icon sets with consistent style |+| **[web-design-methodology](skills/web-design-methodology)** | Production HTML/CSS with BEM, responsive, accessibility |+| **[web-design-patterns](skills/web-design-patterns)** | Heroes, cards, CTAs, trust signals, testimonials |+| **[seo-local-business](skills/seo-local-business)** | SEO setup for local businesses (JSON-LD, meta, sitemap) |+| **[google-chat-messages](skills/google-chat-messages)** | Google Chat webhooks (text, rich cards, threads) || **[elevenlabs-agents](skills/elevenlabs-agents)** | Configured ElevenLabs voice agents || **[mcp-builder](skills/mcp-builder)** | MCP servers with FastMCP || **[memory-manager](skills/memory-manager)** | Optimised CLAUDE.md memory hierarchy |@@ -28,12 +33,14 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t/plugin install all@jezweb-skills# Or install by category-/plugin install design@jezweb-skills # colour palettes, favicons, icons-/plugin install cloudflare@jezweb-skills # Cloudflare Workers-/plugin install frontend@jezweb-skills # Tailwind + shadcn/ui-/plugin install ai@jezweb-skills # ElevenLabs agents-/plugin install mcp@jezweb-skills # MCP servers-/plugin install development@jezweb-skills # skill-creator + memory-manager+/plugin install design@jezweb-skills # palettes, favicons, icons, web design+/plugin install cloudflare@jezweb-skills # Workers + vite-flare-starter+/plugin install frontend@jezweb-skills # Tailwind + shadcn/ui+/plugin install web@jezweb-skills # web design + SEO+/plugin install integrations@jezweb-skills # Google Chat+/plugin install ai@jezweb-skills # ElevenLabs agents+/plugin install mcp@jezweb-skills # MCP servers+/plugin install development@jezweb-skills # skill-creator + memory-manager```## Create Your Owndiff --git a/skills/google-chat-messages/.claude-plugin/plugin.json b/skills/google-chat-messages/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..877d6f24--- /dev/null+++ b/skills/google-chat-messages/.claude-plugin/plugin.json@@ -0,0 +1,5 @@+{+ "name": "google-chat-messages",+ "description": "Send Google Chat messages via webhook — text, cards, threaded replies.",+ "skills": "./"+}diff --git a/skills/google-chat-messages/SKILL.md b/skills/google-chat-messages/SKILL.mdnew file mode 100644index 00000000..55c0db44--- /dev/null+++ b/skills/google-chat-messages/SKILL.md@@ -0,0 +1,224 @@+---+name: google-chat-messages+description: "Send Google Chat messages via webhook — text, rich cards (cardsV2), threaded replies. Includes TypeScript types, card builder utility, and widget reference."+---++# Google Chat Messages++Send messages to Google Chat spaces via incoming webhooks. Produces text messages, rich cards (cardsV2), and threaded replies.++## What You Produce++- Text messages with Google Chat formatting+- Rich card messages (cardsV2) with headers, sections, widgets+- Threaded conversations+- Reusable webhook sender utility++## Workflow++### Step 1: Get Webhook URL++In Google Chat:+1. Open a Space > click space name > **Manage webhooks**+2. Create webhook (name it, optionally add avatar URL)+3. Copy the webhook URL++Store the URL as a secret (environment variable or Bitwarden), never hardcode.++### Step 2: Choose Message Type++| Need | Type | Complexity |+|------|------|------------|+| Simple notification | Text message | Low |+| Structured info (status, digest) | Card message (cardsV2) | Medium |+| Ongoing updates | Threaded replies | Medium |+| Action buttons (open URL) | Card with buttonList | Medium |++### Step 3: Send the Message++Use `assets/webhook-sender.ts` for the sender utility. Use `assets/card-builder.ts` for structured card construction.++## Text Formatting++Google Chat does NOT use standard Markdown.++| Format | Syntax | Example |+|--------|--------|---------|+| Bold | `*text*` | `*important*` |+| Italic | `_text_` | `_emphasis_` |+| Strikethrough | `~text~` | `~removed~` |+| Monospace | `` `text` `` | `` `code` `` |+| Code block | ` ```text``` ` | Multi-line code |+| Link | `<url\|text>` | `<https://example.com\|Click here>` |+| Mention user | `<users/USER_ID>` | `<users/123456>` |+| Mention all | `<users/all>` | `<users/all>` |++**Not supported**: `**double asterisks**`, headings (`###`), blockquotes, tables, images inline.++### Text Message Example++```typescript+await sendText(webhookUrl, '*Build Complete*\n\nBranch: `main`\nStatus: Passed\n<https://ci.example.com/123|View Build>');+```++## cardsV2 Structure++Cards use the cardsV2 format (recommended over legacy cards).++```typescript+const message = {+ cardsV2: [{+ cardId: 'unique-id',+ card: {+ header: {+ title: 'Card Title',+ subtitle: 'Optional subtitle',+ imageUrl: 'https://example.com/icon.png',+ imageType: 'CIRCLE' // or 'SQUARE'+ },+ sections: [{+ header: 'Section Title', // optional+ widgets: [+ // widgets go here+ ]+ }]+ }+ }]+};+```++### Widget Types++**Text paragraph** — formatted text block:+```typescript+{ textParagraph: { text: '*Bold* and _italic_ text' } }+```++**Decorated text** — label + value with optional icon:+```typescript+{+ decoratedText: {+ topLabel: 'Status',+ text: 'Deployed',+ startIcon: { knownIcon: 'STAR' }+ }+}+```++**Button list** — action buttons:+```typescript+{+ buttonList: {+ buttons: [{+ text: 'View Dashboard',+ onClick: { openLink: { url: 'https://dashboard.example.com' } }+ }]+ }+}+```++**Image** — standalone image:+```typescript+{ image: { imageUrl: 'https://example.com/chart.png', altText: 'Usage chart' } }+```++**Divider** — horizontal separator:+```typescript+{ divider: {} }+```++See `references/widget-reference.md` for all widget types with full examples.+See `references/icon-list.md` for all available knownIcon values.++## Threading++Thread messages together using `threadKey`:++```typescript+// First message — creates thread+const response = await sendCard(webhookUrl, card, {+ threadKey: 'deploy-2026-02-16'+});++// Reply to thread — append &messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD+const threadUrl = `${webhookUrl}&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD`;+await sendCard(threadUrl, replyCard, {+ threadKey: 'deploy-2026-02-16'+});+```++The `threadKey` is a client-assigned string. Use consistent keys for related messages (e.g., `deploy-{date}`, `alert-{id}`).++## Common Patterns++### Notification Card++```typescript+import { buildCard, sendCard } from './assets/card-builder';+import { sendWebhook } from './assets/webhook-sender';++const card = buildCard({+ cardId: 'deploy-notification',+ title: 'Deployment Complete',+ subtitle: 'production - v2.1.0',+ imageUrl: 'https://www.jezweb.com.au/wp-content/uploads/2020/03/favicon-100x100.png',+ sections: [{+ widgets: [+ { decoratedText: { topLabel: 'Environment', text: 'Production' } },+ { decoratedText: { topLabel: 'Version', text: 'v2.1.0' } },+ { decoratedText: { topLabel: 'Status', text: '*Healthy*', startIcon: { knownIcon: 'STAR' } } },+ { buttonList: { buttons: [{ text: 'View Deployment', onClick: { openLink: { url: 'https://dash.example.com' } } }] } }+ ]+ }]+});+```++### Digest Card (Weekly Summary)++```typescript+const digest = buildCard({+ cardId: 'weekly-digest',+ title: 'Weekly Summary',+ subtitle: `${count} updates this week`,+ sections: [+ {+ header: 'Highlights',+ widgets: items.map(item => ({+ decoratedText: { text: item.title, bottomLabel: item.date }+ }))+ },+ {+ widgets: [{+ buttonList: {+ buttons: [{ text: 'View All', onClick: { openLink: { url: dashboardUrl } } }]+ }+ }]+ }+ ]+});+```++### Simple Text Alert++```typescript+await sendText(webhookUrl, `*Alert*: CPU usage above 90% on \`worker-prod-1\`\n<${alertUrl}|View Alert>`);+```++## Error Prevention++| Mistake | Fix |+|---------|-----|+| `**bold**` in text | Use `*bold*` (single asterisks) |+| `[text](url)` links | Use `<url\|text>` format |+| Missing `cardsV2` wrapper | Wrap card in `{ cardsV2: [{ cardId, card }] }` |+| Thread replies not threading | Append `&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD` to webhook URL |+| Webhook returns 400 | Check JSON structure — common issue is missing `text` or `cardsV2` at top level |+| Card not showing | Ensure `sections` has at least one widget |++## Asset Files++| File | Purpose |+|------|---------|+| `assets/types.ts` | TypeScript type definitions for cardsV2 |+| `assets/card-builder.ts` | Utility to build card messages |+| `assets/webhook-sender.ts` | POST to webhook with error handling |diff --git a/skills/google-chat-messages/assets/card-builder.ts b/skills/google-chat-messages/assets/card-builder.tsnew file mode 100644index 00000000..d1d9f6b3--- /dev/null+++ b/skills/google-chat-messages/assets/card-builder.ts@@ -0,0 +1,66 @@+import type { CardWithId, CardHeader, CardSection, WebhookMessage, Thread } from './types';++interface BuildCardOptions {+ cardId: string;+ title: string;+ subtitle?: string;+ imageUrl?: string;+ imageType?: 'SQUARE' | 'CIRCLE';+ sections: CardSection[];+}++/**+ * Build a cardsV2 webhook message.+ *+ * Usage:+ * const message = buildCard({ cardId: 'my-card', title: 'Hello', sections: [...] });+ * await sendWebhook(webhookUrl, message);+ */+export function buildCard(+ options: BuildCardOptions,+ thread?: { threadKey: string }+): WebhookMessage {+ const header: CardHeader = {+ title: options.title,+ ...(options.subtitle && { subtitle: options.subtitle }),+ ...(options.imageUrl && { imageUrl: options.imageUrl }),+ ...(options.imageType && { imageType: options.imageType }),+ };++ const card: CardWithId = {+ cardId: options.cardId,+ card: {+ header,+ sections: options.sections,+ },+ };++ const message: WebhookMessage = {+ cardsV2: [card],+ };++ if (thread) {+ message.thread = { threadKey: thread.threadKey };+ }++ return message;+}++/**+ * Build a simple text webhook message.+ *+ * Remember: Google Chat uses *bold*, _italic_, ~strikethrough~, `code`,+ * and <url|text> for links. NOT standard Markdown.+ */+export function buildText(+ text: string,+ thread?: { threadKey: string }+): WebhookMessage {+ const message: WebhookMessage = { text };++ if (thread) {+ message.thread = { threadKey: thread.threadKey };+ }++ return message;+}diff --git a/skills/google-chat-messages/assets/types.ts b/skills/google-chat-messages/assets/types.tsnew file mode 100644index 00000000..a785e2cb--- /dev/null+++ b/skills/google-chat-messages/assets/types.ts@@ -0,0 +1,78 @@+// Google Chat cardsV2 TypeScript types for webhook messages+// Reference: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages++export interface WebhookMessage {+ text?: string;+ cardsV2?: CardWithId[];+ thread?: Thread;+}++export interface Thread {+ threadKey?: string;+}++export interface CardWithId {+ cardId: string;+ card: Card;+}++export interface Card {+ header?: CardHeader;+ sections: CardSection[];+}++export interface CardHeader {+ title: string;+ subtitle?: string;+ imageUrl?: string;+ imageType?: 'SQUARE' | 'CIRCLE';+}++export interface CardSection {+ header?: string;+ widgets: Widget[];+ collapsible?: boolean;+ uncollapsibleWidgetsCount?: number;+}++export interface Widget {+ textParagraph?: { text: string };+ image?: { imageUrl: string; altText?: string };+ decoratedText?: DecoratedText;+ buttonList?: { buttons: Button[] };+ divider?: Record<string, never>;+}++export interface DecoratedText {+ topLabel?: string;+ text: string;+ bottomLabel?: string;+ startIcon?: Icon;+ endIcon?: Icon;+ wrapText?: boolean;+ onClick?: OnClick;+ button?: Button;+}++export interface Icon {+ knownIcon?: string;+ iconUrl?: string;+ altText?: string;+}++export interface Button {+ text: string;+ icon?: Icon;+ color?: { red?: number; green?: number; blue?: number; alpha?: number };+ onClick: OnClick;+ disabled?: boolean;+ altText?: string;+}++export interface OnClick {+ openLink?: { url: string };+ action?: {+ function?: string;+ parameters?: { key: string; value: string }[];+ };+}diff --git a/skills/google-chat-messages/assets/webhook-sender.ts b/skills/google-chat-messages/assets/webhook-sender.tsnew file mode 100644index 00000000..72a7b090--- /dev/null+++ b/skills/google-chat-messages/assets/webhook-sender.ts@@ -0,0 +1,69 @@+import type { WebhookMessage } from './types';++interface SendOptions {+ /** Thread key for threading messages together */+ threadKey?: string;+ /** If true, replies to existing thread or falls back to new thread */+ replyToThread?: boolean;+}++/**+ * Send a message to Google Chat via incoming webhook.+ *+ * @param webhookUrl - The webhook URL from Google Chat space settings+ * @param message - WebhookMessage (use buildCard or buildText to create)+ * @param options - Threading options+ *+ * @example+ * // Simple text+ * await sendWebhook(url, { text: '*Hello* from webhook' });+ *+ * // Card message+ * const card = buildCard({ cardId: 'test', title: 'Test', sections: [...] });+ * await sendWebhook(url, card);+ *+ * // Threaded reply+ * await sendWebhook(url, card, { threadKey: 'deploy-123', replyToThread: true });+ */+export async function sendWebhook(+ webhookUrl: string,+ message: WebhookMessage,+ options?: SendOptions+): Promise<void> {+ let url = webhookUrl;++ // Add threading parameters to URL+ if (options?.replyToThread && options?.threadKey) {+ const separator = url.includes('?') ? '&' : '?';+ url += `${separator}messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD`;+ }++ // Add thread key to message body+ if (options?.threadKey) {+ message.thread = { threadKey: options.threadKey };+ }++ const response = await fetch(url, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(message),+ });++ if (!response.ok) {+ const body = await response.text();+ throw new Error(+ `Google Chat webhook error ${response.status}: ${body}`+ );+ }+}++/**+ * Convenience: send a text message.+ */+export async function sendText(+ webhookUrl: string,+ text: string,+ options?: SendOptions+): Promise<void> {+ await sendWebhook(webhookUrl, { text }, options);+}diff --git a/skills/google-chat-messages/references/icon-list.md b/skills/google-chat-messages/references/icon-list.mdnew file mode 100644index 00000000..80f417e6--- /dev/null+++ b/skills/google-chat-messages/references/icon-list.md@@ -0,0 +1,65 @@+# Google Chat Known Icons++Icons available via `knownIcon` in decoratedText and button widgets.++## Usage++```typescript+{ startIcon: { knownIcon: 'STAR' } }+// or+{ icon: { knownIcon: 'EMAIL' } }+```++## Available Icons++| Icon Name | Use For |+|-----------|---------|+| `AIRPLANE` | Travel, flights |+| `BOOKMARK` | Save, reference, links |+| `BUS` | Transport, transit |+| `CAR` | Driving, transport |+| `CLOCK` | Time, duration, schedule |+| `CONFIRMATION_NUMBER_ICON` | Tickets, bookings |+| `DESCRIPTION` | Documents, files |+| `DOLLAR` | Money, pricing, cost |+| `EMAIL` | Email, messages |+| `EVENT_PERFORMER` | People, performers |+| `EVENT_SEAT` | Seating, capacity |+| `FLIGHT_ARRIVAL` | Arrivals, incoming |+| `FLIGHT_DEPARTURE` | Departures, outgoing |+| `HOTEL` | Accommodation |+| `HOTEL_ROOM_TYPE` | Room types |+| `INVITE` | Invitations |+| `MAP_PIN` | Location, address |+| `MEMBERSHIP` | Members, users |+| `MULTIPLE_PEOPLE` | Teams, groups |+| `OFFER` | Deals, promotions |+| `PERSON` | Individual user |+| `PHONE` | Phone number, calls |+| `RESTAURANT_ICON` | Food, dining |+| `SHOPPING_CART` | Commerce, purchases |+| `STAR` | Rating, favourite, important |+| `STORE` | Shop, retail |+| `TICKET` | Tickets, events |+| `TRAIN` | Rail transport |+| `VIDEO_CAMERA` | Video, meetings |+| `VIDEO_PLAY` | Play, media |++## Custom Icons++For icons not in the list, use `iconUrl` with any publicly accessible image:++```typescript+{+ startIcon: {+ iconUrl: 'https://example.com/custom-icon.png',+ altText: 'Custom icon description'+ }+}+```++Icon images should be square, ideally 24x24 or 48x48 pixels.++## Material Design Icons++Google Chat's knownIcons are a subset of Material Design icons. For a broader selection, use `iconUrl` pointing to Material Design icon SVGs or your own icon assets.diff --git a/skills/google-chat-messages/references/widget-reference.md b/skills/google-chat-messages/references/widget-reference.mdnew file mode 100644index 00000000..0e413515--- /dev/null+++ b/skills/google-chat-messages/references/widget-reference.md@@ -0,0 +1,212 @@+# Google Chat Widget Reference++All widget types available in cardsV2 sections.++## textParagraph++Formatted text block. Supports Google Chat formatting (`*bold*`, `_italic_`, `<url|text>`).++```typescript+{+ textParagraph: {+ text: '*Status*: All systems operational\n_Last checked_: 5 minutes ago'+ }+}+```++## decoratedText++Labelled value with optional icons. Most versatile widget for key-value data.++### Basic++```typescript+{+ decoratedText: {+ topLabel: 'Environment',+ text: 'Production',+ bottomLabel: 'Last deployed 2h ago'+ }+}+```++### With Start Icon++```typescript+{+ decoratedText: {+ topLabel: 'Status',+ text: 'Healthy',+ startIcon: { knownIcon: 'STAR' }+ }+}+```++### With Custom Icon URL++```typescript+{+ decoratedText: {+ topLabel: 'GitHub',+ text: 'PR #142 merged',+ startIcon: {+ iconUrl: 'https://github.githubassets.com/favicons/favicon.svg',+ altText: 'GitHub'+ }+ }+}+```++### With Button++```typescript+{+ decoratedText: {+ topLabel: 'Alert',+ text: 'CPU at 95%',+ button: {+ text: 'View',+ onClick: { openLink: { url: 'https://monitoring.example.com' } }+ }+ }+}+```++### Clickable (Whole Widget)++```typescript+{+ decoratedText: {+ text: 'View full report',+ wrapText: true,+ onClick: { openLink: { url: 'https://reports.example.com' } }+ }+}+```++### With Wrap Text++```typescript+{+ decoratedText: {+ topLabel: 'Description',+ text: 'This is a longer description that should wrap to multiple lines instead of being truncated',+ wrapText: true+ }+}+```++## buttonList++One or more action buttons. Buttons open URLs or trigger actions.++### Single Button++```typescript+{+ buttonList: {+ buttons: [{+ text: 'Open Dashboard',+ onClick: { openLink: { url: 'https://dashboard.example.com' } }+ }]+ }+}+```++### Multiple Buttons++```typescript+{+ buttonList: {+ buttons: [+ {+ text: 'Approve',+ onClick: { openLink: { url: 'https://app.example.com/approve/123' } },+ color: { red: 0, green: 0.5, blue: 0, alpha: 1 }+ },+ {+ text: 'Reject',+ onClick: { openLink: { url: 'https://app.example.com/reject/123' } }+ }+ ]+ }+}+```++### Button with Icon++```typescript+{+ buttonList: {+ buttons: [{+ text: 'View on GitHub',+ icon: { knownIcon: 'BOOKMARK' },+ onClick: { openLink: { url: 'https://github.com/org/repo/pull/42' } }+ }]+ }+}+```++## image++Standalone image widget.++```typescript+{+ image: {+ imageUrl: 'https://example.com/chart.png',+ altText: 'Monthly usage chart'+ }+}+```++## divider++Horizontal line separator between widgets.++```typescript+{ divider: {} }+```++## Collapsible Sections++Sections can be collapsed with only the first N widgets visible:++```typescript+{+ header: 'Details',+ collapsible: true,+ uncollapsibleWidgetsCount: 2, // Show first 2, collapse rest+ widgets: [+ // First 2 always visible+ { decoratedText: { topLabel: 'Status', text: 'Active' } },+ { decoratedText: { topLabel: 'Region', text: 'AU' } },+ // These start collapsed+ { decoratedText: { topLabel: 'Instance', text: 'prod-01' } },+ { decoratedText: { topLabel: 'Memory', text: '2.1 GB' } },+ { decoratedText: { topLabel: 'CPU', text: '45%' } }+ ]+}+```++## Combining Widgets++A typical card section combining multiple widget types:++```typescript+{+ header: 'Deployment Summary',+ widgets: [+ { textParagraph: { text: '*Production deployment complete*' } },+ { divider: {} },+ { decoratedText: { topLabel: 'Version', text: 'v2.3.1', startIcon: { knownIcon: 'STAR' } } },+ { decoratedText: { topLabel: 'Duration', text: '2m 34s', startIcon: { knownIcon: 'CLOCK' } } },+ { decoratedText: { topLabel: 'Commit', text: '`abc1234` Fix auth redirect' } },+ { divider: {} },+ { buttonList: { buttons: [+ { text: 'View Logs', onClick: { openLink: { url: 'https://logs.example.com' } } },+ { text: 'Rollback', onClick: { openLink: { url: 'https://deploy.example.com/rollback' } } }+ ]}}+ ]+}+```diff --git a/skills/seo-local-business/.claude-plugin/plugin.json b/skills/seo-local-business/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..3f31141c--- /dev/null+++ b/skills/seo-local-business/.claude-plugin/plugin.json@@ -0,0 +1,5 @@+{+ "name": "seo-local-business",+ "description": "Complete SEO setup for local business websites — meta tags, JSON-LD, robots.txt, sitemap.",+ "skills": "./"+}diff --git a/skills/seo-local-business/SKILL.md b/skills/seo-local-business/SKILL.mdnew file mode 100644index 00000000..c3f75f93--- /dev/null+++ b/skills/seo-local-business/SKILL.md@@ -0,0 +1,196 @@+---+name: seo-local-business+description: "Generate complete SEO setup for local business websites — HTML head tags, JSON-LD LocalBusiness schema, robots.txt, sitemap.xml. Australian-optimised with +61 phone, ABN, suburb patterns."+---++# SEO Local Business++Generate a complete SEO package for local business websites. Produces meta tags, structured data, robots.txt, and sitemap.xml.++## What You Produce++1. Complete `<head>` section with meta tags, Open Graph, Twitter Cards+2. JSON-LD structured data (LocalBusiness + Service + FAQ schemas)+3. `robots.txt`+4. `sitemap.xml`++## Workflow++### Step 1: Gather Business Info++Ask for (or extract from existing site):++| Required | Optional |+|----------|----------|+| Business name | ABN |+| Primary service | Opening hours |+| Location (city/suburb) | Social media URLs |+| Phone number | Price range |+| Website URL | Service areas (suburbs) |+| Business description | GPS coordinates |++### Step 2: Generate Head Tags++Use `assets/head-template.html` as your base. Fill in all placeholders.++**Title tag patterns** (50-60 chars max):++| Page | Pattern | Example |+|------|---------|---------|+| Homepage | `Brand - Tagline` | `Newcastle Plumbing - 24/7 Emergency Service` |+| Service | `Service in Location \| Brand` | `Hot Water Repairs Newcastle \| ABC Plumbing` |+| About | `About Us \| Brand` | `About Us \| ABC Plumbing Newcastle` |+| Contact | `Contact \| Brand` | `Contact Us \| ABC Plumbing Newcastle` |++**Meta description patterns** (150-160 chars):++| Page | Pattern |+|------|---------|+| Homepage | `[USP]. [Service] in [Location]. [CTA]. Call [phone].` |+| Service | `Professional [service] in [location]. [Benefit]. [Trust signal]. Get a free quote today.` |+| About | `[X] years serving [location]. [Team info]. [Credentials]. Learn about [brand].` |+| Contact | `Contact [brand] for [service] in [location]. [Hours]. Call [phone] or request a quote online.` |++### Step 3: Generate Structured Data++**LocalBusiness** (homepage — always include):++```json+{+ "@context": "https://schema.org",+ "@type": "LocalBusiness",+ "name": "ABC Plumbing Newcastle",+ "image": "https://www.abcplumbing.com.au/og-image.jpg",+ "description": "Professional plumbing services in Newcastle and Lake Macquarie.",+ "@id": "https://www.abcplumbing.com.au/#organization",+ "url": "https://www.abcplumbing.com.au",+ "telephone": "+61-2-4900-1234",+ "email": "[email protected]",+ "priceRange": "$$",+ "address": {+ "@type": "PostalAddress",+ "streetAddress": "123 Hunter Street",+ "addressLocality": "Newcastle",+ "addressRegion": "NSW",+ "postalCode": "2300",+ "addressCountry": "AU"+ },+ "geo": {+ "@type": "GeoCoordinates",+ "latitude": -32.9283,+ "longitude": 151.7817+ },+ "openingHoursSpecification": [+ {+ "@type": "OpeningHoursSpecification",+ "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],+ "opens": "07:00",+ "closes": "17:00"+ }+ ],+ "areaServed": [+ { "@type": "City", "name": "Newcastle" },+ { "@type": "City", "name": "Lake Macquarie" }+ ],+ "sameAs": [+ "https://www.facebook.com/abcplumbing",+ "https://www.instagram.com/abcplumbing"+ ]+}+```++**Service** (service pages — add per service):++```json+{+ "@context": "https://schema.org",+ "@type": "Service",+ "name": "Hot Water System Installation",+ "description": "Professional hot water system installation and replacement in Newcastle.",+ "provider": { "@id": "https://www.abcplumbing.com.au/#organization" },+ "areaServed": { "@type": "City", "name": "Newcastle" },+ "serviceType": "Plumbing",+ "offers": {+ "@type": "Offer",+ "availability": "https://schema.org/InStock",+ "priceRange": "$$"+ }+}+```++**FAQ** (pages with FAQ sections):++```json+{+ "@context": "https://schema.org",+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "How much does a plumber cost in Newcastle?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Plumber callout fees in Newcastle typically range from $80-150."+ }+ }+ ]+}+```++### Step 4: Generate robots.txt and sitemap.xml++Use `assets/robots-template.txt` and `assets/sitemap-template.xml`. Populate with all site pages.++### Step 5: Validate++Test structured data at: https://validator.schema.org/++## Australian-Specific Patterns++### Phone Numbers++```html+<!-- Link: international format. Display: local format. -->+<a href="tel:+61249001234">(02) 4900 1234</a>+```++Schema telephone: `"+61-2-4900-1234"`++| Prefix | International |+|--------|---------------|+| 02 | +612 |+| 04 | +614 |+| 1300 | Keep as-is |++### ABN++Add to LocalBusiness schema when available:++```json+{ "taxID": "12 345 678 901" }+```++### Service Areas++Use Australian city and suburb names:++```json+"areaServed": [+ { "@type": "City", "name": "Newcastle" },+ { "@type": "City", "name": "Maitland" },+ { "@type": "City", "name": "Lake Macquarie" }+]+```++### Geo Tags++Include state-specific geo meta tags:++```html+<meta name="geo.region" content="AU-NSW">+<meta name="geo.placename" content="Newcastle">+<meta name="geo.position" content="-32.9283;151.7817">+<meta name="ICBM" content="-32.9283, 151.7817">+```++See `references/schema-properties.md` for the full list of LocalBusiness and Service schema properties.diff --git a/skills/seo-local-business/assets/head-template.html b/skills/seo-local-business/assets/head-template.htmlnew file mode 100644index 00000000..0a92fd37--- /dev/null+++ b/skills/seo-local-business/assets/head-template.html@@ -0,0 +1,42 @@+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">++ <!-- Primary Meta Tags -->+ <title>{{PAGE_TITLE}} | {{BUSINESS_NAME}}</title>+ <meta name="title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta name="description" content="{{META_DESCRIPTION}}">++ <!-- Canonical URL -->+ <link rel="canonical" href="{{CANONICAL_URL}}">++ <!-- Open Graph / Facebook -->+ <meta property="og:type" content="website">+ <meta property="og:url" content="{{CANONICAL_URL}}">+ <meta property="og:title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta property="og:description" content="{{META_DESCRIPTION}}">+ <meta property="og:image" content="{{OG_IMAGE_URL}}">++ <!-- Twitter -->+ <meta property="twitter:card" content="summary_large_image">+ <meta property="twitter:url" content="{{CANONICAL_URL}}">+ <meta property="twitter:title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta property="twitter:description" content="{{META_DESCRIPTION}}">+ <meta property="twitter:image" content="{{OG_IMAGE_URL}}">++ <!-- Geo Tags (Local SEO) -->+ <meta name="geo.region" content="{{GEO_REGION}}">+ <meta name="geo.placename" content="{{CITY}}">+ <meta name="geo.position" content="{{LATITUDE}};{{LONGITUDE}}">+ <meta name="ICBM" content="{{LATITUDE}}, {{LONGITUDE}}">++ <!-- Favicons -->+ <link rel="icon" type="image/svg+xml" href="favicon.svg">+ <link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">+ <link rel="apple-touch-icon" href="apple-touch-icon.png">++ <!-- Structured Data -->+ <script type="application/ld+json">+ {{JSON_LD_SCHEMA}}+ </script>+</head>diff --git a/skills/seo-local-business/assets/robots-template.txt b/skills/seo-local-business/assets/robots-template.txtnew file mode 100644index 00000000..c182e117--- /dev/null+++ b/skills/seo-local-business/assets/robots-template.txt@@ -0,0 +1,4 @@+User-agent: *+Allow: /++Sitemap: {{SITE_URL}}/sitemap.xmldiff --git a/skills/seo-local-business/assets/sitemap-template.xml b/skills/seo-local-business/assets/sitemap-template.xmlnew file mode 100644index 00000000..9789eb8e--- /dev/null+++ b/skills/seo-local-business/assets/sitemap-template.xml@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">+ <url>+ <loc>{{SITE_URL}}/</loc>+ <lastmod>{{DATE}}</lastmod>+ <changefreq>weekly</changefreq>+ <priority>1.0</priority>+ </url>+ <url>+ <loc>{{SITE_URL}}/services/</loc>+ <lastmod>{{DATE}}</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.8</priority>+ </url>+ <url>+ <loc>{{SITE_URL}}/about/</loc>+ <lastmod>{{DATE}}</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.6</priority>+ </url>+ <url>+ <loc>{{SITE_URL}}/contact/</loc>+ <lastmod>{{DATE}}</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.6</priority>+ </url>+</urlset>diff --git a/skills/seo-local-business/references/schema-properties.md b/skills/seo-local-business/references/schema-properties.mdnew file mode 100644index 00000000..f874d2b9--- /dev/null+++ b/skills/seo-local-business/references/schema-properties.md@@ -0,0 +1,133 @@+# Schema.org Properties Reference++Complete property lists for local business structured data.++## LocalBusiness Properties++Core properties for the homepage JSON-LD block.++| Property | Type | Required | Notes |+|----------|------|----------|-------|+| `@type` | string | Yes | `LocalBusiness` or subtype (see below) |+| `name` | string | Yes | Business name as shown to customers |+| `image` | URL | Yes | Primary business image or logo |+| `description` | string | Yes | 1-2 sentence business description |+| `@id` | URL | Yes | Unique ID, use `{url}/#organization` |+| `url` | URL | Yes | Website homepage URL |+| `telephone` | string | Yes | International format: `+61-2-4900-1234` |+| `email` | string | Recommended | Primary contact email |+| `priceRange` | string | Recommended | `$` to `$$$$` |+| `address` | PostalAddress | Yes | See below |+| `geo` | GeoCoordinates | Recommended | Latitude/longitude |+| `openingHoursSpecification` | array | Recommended | See below |+| `areaServed` | array | Recommended | Cities/suburbs served |+| `sameAs` | array | Recommended | Social media profile URLs |+| `taxID` | string | Optional | ABN for Australian businesses |+| `logo` | URL | Optional | Business logo URL |+| `foundingDate` | string | Optional | ISO 8601 date |+| `founder` | Person | Optional | Business founder |+| `numberOfEmployees` | number | Optional | Staff count |+| `paymentAccepted` | string | Optional | e.g. "Cash, Credit Card, EFTPOS" |+| `currenciesAccepted` | string | Optional | `AUD` |++### LocalBusiness Subtypes++Use a more specific type when applicable:++| Subtype | Use for |+|---------|---------|+| `Plumber` | Plumbing services |+| `Electrician` | Electrical services |+| `RoofingContractor` | Roofing |+| `HVACBusiness` | Air conditioning/heating |+| `AutoRepair` | Mechanics |+| `BeautySalon` | Hair/beauty |+| `Dentist` | Dental practices |+| `LegalService` | Law firms |+| `AccountingService` | Accountants |+| `RealEstateAgent` | Real estate |+| `Restaurant` | Restaurants/cafes |+| `BarOrPub` | Pubs/bars |+| `Hotel` | Accommodation |+| `Store` | Retail shops |+| `ProfessionalService` | Generic professional |++### PostalAddress Properties++| Property | Example |+|----------|---------|+| `streetAddress` | `123 Hunter Street` |+| `addressLocality` | `Newcastle` |+| `addressRegion` | `NSW` |+| `postalCode` | `2300` |+| `addressCountry` | `AU` |++### Australian State Codes++| State | Code | Geo Region |+|-------|------|------------|+| New South Wales | NSW | AU-NSW |+| Victoria | VIC | AU-VIC |+| Queensland | QLD | AU-QLD |+| South Australia | SA | AU-SA |+| Western Australia | WA | AU-WA |+| Tasmania | TAS | AU-TAS |+| Northern Territory | NT | AU-NT |+| ACT | ACT | AU-ACT |++### OpeningHoursSpecification++```json+{+ "@type": "OpeningHoursSpecification",+ "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],+ "opens": "07:00",+ "closes": "17:00"+}+```++For different weekend hours, add a separate entry:++```json+{+ "@type": "OpeningHoursSpecification",+ "dayOfWeek": ["Saturday"],+ "opens": "08:00",+ "closes": "12:00"+}+```++## Service Properties++For individual service pages.++| Property | Type | Required | Notes |+|----------|------|----------|-------|+| `name` | string | Yes | Service name |+| `description` | string | Yes | What the service provides |+| `provider` | reference | Yes | `{ "@id": "{url}/#organization" }` |+| `areaServed` | Place | Recommended | City or region |+| `serviceType` | string | Recommended | Category of service |+| `offers` | Offer | Optional | Pricing/availability |+| `hasOfferCatalog` | OfferCatalog | Optional | Multiple service tiers |++## FAQPage Properties++For pages with FAQ sections.++| Property | Type | Required |+|----------|------|----------|+| `mainEntity` | array of Question | Yes |+| `Question.name` | string | Yes |+| `Question.acceptedAnswer` | Answer | Yes |+| `Answer.text` | string | Yes |++## Validation++Always test generated schema at: https://validator.schema.org/++Common errors:+- Missing `@context` — every JSON-LD block needs it+- Wrong phone format — must be international (`+61-...`)+- Missing `@id` — needed for cross-referencing between schemas+- Empty `areaServed` — include at least one citydiff --git a/skills/vite-flare-starter/.claude-plugin/plugin.json b/skills/vite-flare-starter/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..92e9ca25--- /dev/null+++ b/skills/vite-flare-starter/.claude-plugin/plugin.json@@ -0,0 +1,5 @@+{+ "name": "vite-flare-starter",+ "description": "Scaffold full-stack Cloudflare apps from vite-flare-starter template.",+ "skills": "./"+}diff --git a/skills/vite-flare-starter/SKILL.md b/skills/vite-flare-starter/SKILL.mdnew file mode 100644index 00000000..a8b09867--- /dev/null+++ b/skills/vite-flare-starter/SKILL.md@@ -0,0 +1,128 @@+---+name: vite-flare-starter+description: "Scaffold a full-stack Cloudflare app from vite-flare-starter — React 19, Hono, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui, TanStack Query, R2, Workers AI. Run setup.sh to clone, configure, and deploy."+---++# Vite Flare Starter++Clone and configure Jez's batteries-included Cloudflare starter into a standalone project. Produces a fully rebranded, deployable full-stack app.++## What You Get++| Layer | Technology |+|-------|-----------|+| Frontend | React 19, Vite, Tailwind v4, shadcn/ui |+| Backend | Hono (on Cloudflare Workers) |+| Database | D1 (SQLite at edge) + Drizzle ORM |+| Auth | better-auth (Google OAuth + optional email/password) |+| Storage | R2 (S3-compatible object storage) |+| AI | Workers AI binding |+| Data Fetching | TanStack Query |+| Deployment | Cloudflare Workers with Static Assets |++See `references/tech-stack.md` for the full dependency list.++## Workflow++### Step 1: Gather Project Info++Ask for:++| Required | Optional |+|----------|----------|+| Project name (kebab-case) | Admin email |+| Description (1 sentence) | Google OAuth credentials |+| Cloudflare account (Jezweb Team or Personal) | Custom domain |++### Step 2: Run Setup Script++```bash+bash skills/vite-flare-starter/scripts/setup.sh+```++The script will:+1. Clone the repo and remove `.git`+2. Find-replace `vite-flare-starter` with project name (7 locations)+3. Generate `BETTER_AUTH_SECRET`+4. Create `.dev.vars` from template+5. Optionally create Cloudflare D1 + R2 resources+6. Run `pnpm install`+7. Run local database migration+8. Report remaining manual steps++### Step 3: Manual Configuration++After the script completes:++1. **Google OAuth** (if using):+ - Go to [Google Cloud Console](https://console.cloud.google.com/)+ - Create OAuth 2.0 Client ID+ - Add redirect URI: `http://localhost:5173/api/auth/callback/google`+ - Copy Client ID and Secret to `.dev.vars`++2. **Favicon**: Replace `public/favicon.svg` with your own++3. **CLAUDE.md**: Update project description and remove vite-flare-starter references++4. **index.html**: Update `<title>` and meta description++### Step 4: Verify Locally++```bash+pnpm dev+```++Check:+- [ ] http://localhost:5173 loads+- [ ] Shows YOUR app name, not "Vite Flare Starter"+- [ ] Sign-up/sign-in works (if Google OAuth configured)++### Step 5: Deploy to Production++```bash+# Set production secrets+openssl rand -base64 32 | npx wrangler secret put BETTER_AUTH_SECRET+echo "https://PROJECT_NAME.SUBDOMAIN.workers.dev" | npx wrangler secret put BETTER_AUTH_URL+echo "http://localhost:5173,https://PROJECT_NAME.SUBDOMAIN.workers.dev" | npx wrangler secret put TRUSTED_ORIGINS++# If using Google OAuth+echo "your-client-id" | npx wrangler secret put GOOGLE_CLIENT_ID+echo "your-client-secret" | npx wrangler secret put GOOGLE_CLIENT_SECRET++# Migrate remote database+pnpm run db:migrate:remote++# Build and deploy+pnpm run build && pnpm run deploy+```++**Critical**: After first deploy, update BETTER_AUTH_URL with your actual Worker URL. Also add the production URL to Google OAuth redirect URIs.++## Common Issues++| Symptom | Cause | Fix |+|---------|-------|-----|+| Auth silently fails (redirect to homepage) | Missing TRUSTED_ORIGINS | Set TRUSTED_ORIGINS secret with all valid URLs |+| "Not authorized" on deploy | Wrong account_id | Remove account_id from wrangler.jsonc or set yours |+| Database operations fail | Using original database_id | Create YOUR database, use YOUR database_id |+| localStorage shows "vite-flare-starter" | Missing VITE_APP_ID | Set `VITE_APP_ID=yourapp` in .dev.vars |+| Auth fails in production | BETTER_AUTH_URL mismatch | Must match actual Worker URL exactly |++## What Gets Rebranded++The setup script handles these automatically:++| File | What Changes |+|------|-------------|+| `wrangler.jsonc` | Worker name, database name, bucket names |+| `package.json` | Package name, database references in scripts |+| `.dev.vars` | App name, secret, URL |+| `index.html` | Title, meta tags |++These need manual attention:+- `CLAUDE.md` — project description+- `public/favicon.svg` — your favicon+- Google OAuth — redirect URIs+- Production secrets — via `wrangler secret put`++See `references/customization-guide.md` for the complete rebranding checklist.diff --git a/skills/vite-flare-starter/assets/dev-vars-template.txt b/skills/vite-flare-starter/assets/dev-vars-template.txtnew file mode 100644index 00000000..9ffb9fc7--- /dev/null+++ b/skills/vite-flare-starter/assets/dev-vars-template.txt@@ -0,0 +1,28 @@+# Local Development Environment Variables+# DO NOT COMMIT THIS FILE TO GIT++# Authentication (better-auth)+BETTER_AUTH_SECRET={{BETTER_AUTH_SECRET}}+BETTER_AUTH_URL=http://localhost:5173++# Google OAuth (optional — get from https://console.cloud.google.com/)+GOOGLE_CLIENT_ID=+GOOGLE_CLIENT_SECRET=++# Email Auth Control (disabled by default — OAuth-only)+# ENABLE_EMAIL_LOGIN=true+# ENABLE_EMAIL_SIGNUP=true++# Email Configuration (optional — for verification/password reset)+# EMAIL_API_KEY=re_...++# Application Configuration+APP_NAME={{APP_DISPLAY_NAME}}+VITE_APP_NAME={{APP_DISPLAY_NAME}}+VITE_APP_ID={{APP_ID}}+VITE_TOKEN_PREFIX={{APP_ID}}_+VITE_GITHUB_URL=+VITE_FOOTER_TEXT=++NODE_ENV=developmentdiff --git a/skills/vite-flare-starter/assets/wrangler-template.jsonc b/skills/vite-flare-starter/assets/wrangler-template.jsoncnew file mode 100644index 00000000..21cb7bb9--- /dev/null+++ b/skills/vite-flare-starter/assets/wrangler-template.jsonc@@ -0,0 +1,49 @@+// Cloudflare Workers Configuration+// Documentation: https://developers.cloudflare.com/workers/configuration/+{+ "name": "{{PROJECT_NAME}}",+ "compatibility_date": "2025-01-01",+ "compatibility_flags": ["nodejs_compat"],++ // Worker entry point (source file, NOT built file)+ "main": "./src/server/index.ts",++ // Static Assets Configuration (Workers with Static Assets)+ "assets": {+ "directory": "./dist/client",+ "not_found_handling": "single-page-application",+ "run_worker_first": ["/api/*"]+ },++ // D1 Database (SQLite at edge)+ "d1_databases": [+ {+ "binding": "DB",+ "database_name": "{{PROJECT_NAME}}-db",+ "database_id": "{{DATABASE_ID}}",+ "migrations_dir": "drizzle"+ }+ ],++ // R2 Storage (S3-compatible object storage)+ "r2_buckets": [+ {+ "binding": "AVATARS",+ "bucket_name": "{{PROJECT_NAME}}-avatars"+ },+ {+ "binding": "FILES",+ "bucket_name": "{{PROJECT_NAME}}-files"+ }+ ],++ // Workers AI+ "ai": {+ "binding": "AI"+ },++ // Observability+ "observability": {+ "enabled": true+ }+}diff --git a/skills/vite-flare-starter/references/customization-guide.md b/skills/vite-flare-starter/references/customization-guide.mdnew file mode 100644index 00000000..64493bcc--- /dev/null+++ b/skills/vite-flare-starter/references/customization-guide.md@@ -0,0 +1,140 @@+# Customisation Guide++Complete rebranding and customisation reference for vite-flare-starter forks.++## Security Fingerprints++If you don't change these, attackers can identify your site uses this starter:++| Location | Default Value | How to Change |+|----------|---------------|---------------|+| Page title | "Vite Flare Starter" | `index.html` |+| App name in UI | "Vite Flare Starter" | `VITE_APP_NAME` env var |+| localStorage keys | `vite-flare-starter-theme` | `VITE_APP_ID` env var |+| API tokens | `vfs_` prefix | `VITE_TOKEN_PREFIX` env var |+| Sentry release | `[email protected]` | `VITE_APP_ID` env var |+| GitHub links | jezweb repo | `VITE_GITHUB_URL` (set empty to hide) |+| Worker name | `vite-flare-starter` | `wrangler.jsonc` |+| Database name | `vite-flare-starter-db` | `wrangler.jsonc` |+| R2 buckets | `vite-flare-starter-*` | `wrangler.jsonc` |++## Environment Variables++### Branding Variables (VITE_ prefix = available in frontend)++| Variable | Purpose | Example |+|----------|---------|---------|+| `VITE_APP_NAME` | Display name in UI | "My Cool App" |+| `VITE_APP_ID` | localStorage prefix, Sentry | "mycoolapp" |+| `VITE_TOKEN_PREFIX` | API token prefix | "mca_" |+| `VITE_GITHUB_URL` | GitHub link (empty = hidden) | "" |+| `VITE_FOOTER_TEXT` | Footer copyright text | "2026 My Company" |+| `APP_NAME` | Server-side app name | "My Cool App" |++### Auth Variables++| Variable | Purpose | Notes |+|----------|---------|-------|+| `BETTER_AUTH_SECRET` | Session encryption | Generate with `openssl rand -hex 32` |+| `BETTER_AUTH_URL` | Auth base URL | Must match actual URL exactly |+| `TRUSTED_ORIGINS` | Allowed origins | Comma-separated, include localhost + prod |+| `GOOGLE_CLIENT_ID` | Google OAuth | From Google Cloud Console |+| `GOOGLE_CLIENT_SECRET` | Google OAuth | From Google Cloud Console |+| `ENABLE_EMAIL_LOGIN` | Enable email/password | "true" to enable |+| `ENABLE_EMAIL_SIGNUP` | Enable email signup | "true" to enable (requires ENABLE_EMAIL_LOGIN) |++### Email Variables (Optional)++| Variable | Purpose | Notes |+|----------|---------|-------|+| `EMAIL_FROM` | Sender address | For verification/password reset |+| `EMAIL_API_KEY` | Email service API key | Resend recommended |++## Common Customisations++### Adding a New Database Table++1. Add schema in `src/server/db/schema.ts`+2. Generate migration: `pnpm db:generate`+3. Apply locally: `pnpm db:migrate:local`+4. Apply to production: `pnpm db:migrate:remote`++### Adding a New API Route++1. Create route file in `src/server/routes/`+2. Register in `src/server/index.ts`+3. Add TanStack Query hook in `src/client/hooks/`++### Changing Auth Providers++better-auth supports multiple providers. Edit `src/server/auth.ts`:+- Add provider to `socialProviders`+- Add credentials to `.dev.vars` and production secrets+- Update client-side login buttons++### Custom Theme++Edit Tailwind theme in `src/client/index.css`:+- Update CSS variables in `:root` and `.dark`+- Use `tailwind-theme-builder` skill for guided setup++### Feature Flags++Control features via environment variables:+- `VITE_FEATURE_STYLE_GUIDE=true` — enable style guide page+- `VITE_FEATURE_COMPONENTS=true` — enable component showcase+- Add your own in `src/client/lib/features.ts`++## Production Deployment Checklist++- [ ] `BETTER_AUTH_SECRET` set (different from dev!)+- [ ] `BETTER_AUTH_URL` matches actual Worker URL+- [ ] `TRUSTED_ORIGINS` includes all valid URLs+- [ ] Google OAuth redirect URI includes production URL+- [ ] Remote database migrated (`pnpm db:migrate:remote`)+- [ ] No `vite-flare-starter` references in config files+- [ ] Favicon replaced+- [ ] CLAUDE.md updated+- [ ] `.dev.vars` is NOT committed (check `.gitignore`)++## Common Mistakes++### 1. TRUSTED_ORIGINS Not Set++**Symptom**: User signs in but gets redirected to homepage (auth cookie not accepted).++**Fix**:+```bash+echo "http://localhost:5173,https://your-app.workers.dev" | npx wrangler secret put TRUSTED_ORIGINS+```++### 2. BETTER_AUTH_URL Mismatch++**Symptom**: Auth fails in production but works locally.++**Fix**: The URL must match exactly — including protocol (`https://`) and no trailing slash.++### 3. Database Migrations Not Applied++**Symptom**: API returns 500 errors on database operations.++**Fix**: Run both local and remote migrations:+```bash+pnpm db:migrate:local+pnpm db:migrate:remote+```++### 4. Secrets Set But Not Deployed++**Symptom**: Changes to secrets don't take effect.++**Fix**: Setting a secret via `wrangler secret put` does NOT automatically redeploy. Run `pnpm deploy` after.++### 5. Google OAuth Redirect URI Missing++**Symptom**: "Error 400: redirect_uri_mismatch" when signing in with Google.++**Fix**: Add your production URL to Google Cloud Console > OAuth Client > Authorised redirect URIs:+```+https://your-app.workers.dev/api/auth/callback/google+```diff --git a/skills/vite-flare-starter/references/tech-stack.md b/skills/vite-flare-starter/references/tech-stack.mdnew file mode 100644index 00000000..1b5794fa--- /dev/null+++ b/skills/vite-flare-starter/references/tech-stack.md@@ -0,0 +1,91 @@+# Tech Stack Reference++Complete dependency list for vite-flare-starter.++## Core Stack++| Technology | Version | Purpose |+|-----------|---------|---------|+| React | 19 | UI framework |+| Vite | 6.x | Build tool + dev server |+| Hono | 4.x | Backend API framework (on Workers) |+| Cloudflare Workers | — | Runtime + deployment |+| D1 | — | Edge SQLite database |+| Drizzle ORM | 0.38+ | Type-safe database queries |+| better-auth | latest | Authentication (Google OAuth + email/password) |+| Tailwind CSS | v4 | Styling |+| shadcn/ui | latest | UI component library |+| TanStack Query | v5 | Server state management |++## Runtime Dependencies++| Package | Purpose |+|---------|---------|+| `react`, `react-dom` | UI rendering |+| `hono` | API routes and middleware |+| `better-auth` | Auth (server + client) |+| `drizzle-orm` | Database ORM |+| `@tanstack/react-query` | Data fetching + caching |+| `react-hook-form` | Form handling |+| `@hookform/resolvers` | Form validation |+| `zod` | Schema validation |+| `react-router-dom` | Client-side routing |+| `@radix-ui/*` | Headless UI primitives (shadcn/ui) |+| `tailwind-merge` | Tailwind class merging |+| `class-variance-authority` | Variant styling |+| `clsx` | Conditional classnames |+| `lucide-react` | Icon library |+| `sonner` | Toast notifications |+| `date-fns` | Date formatting |++## Dev Dependencies++| Package | Purpose |+|---------|---------|+| `@cloudflare/vite-plugin` | Workers + Vite integration |+| `wrangler` | Cloudflare CLI |+| `drizzle-kit` | Database migrations |+| `typescript` | Type checking |+| `@tailwindcss/vite` | Tailwind v4 Vite plugin |+| `vitest` | Testing |+| `eslint` | Linting |++## Cloudflare Bindings++| Binding | Type | Purpose |+|---------|------|---------|+| `DB` | D1 Database | Primary application database |+| `AVATARS` | R2 Bucket | User avatar storage |+| `FILES` | R2 Bucket | General file uploads |+| `AI` | Workers AI | AI model inference |++## Project Structure++```+src/+├── client/ # React frontend+│ ├── components/ # UI components+│ ├── hooks/ # Custom hooks + TanStack Query+│ ├── pages/ # Route pages+│ ├── lib/ # Utilities (auth client, etc.)+│ └── main.tsx # App entry point+├── server/ # Hono backend+│ ├── index.ts # Worker entry point+│ ├── routes/ # API routes+│ ├── middleware/ # Auth, CORS, etc.+│ └── db/ # Drizzle schema + queries+└── shared/ # Shared types between client/server+```++## Key Commands++| Command | Purpose |+|---------|---------|+| `pnpm dev` | Start local dev server |+| `pnpm build` | Production build |+| `pnpm deploy` | Deploy to Cloudflare |+| `pnpm db:migrate:local` | Apply migrations locally |+| `pnpm db:migrate:remote` | Apply migrations to production |+| `pnpm db:generate` | Generate migration from schema changes |+| `pnpm test` | Run tests |+| `pnpm lint` | Run linter |diff --git a/skills/vite-flare-starter/scripts/setup.sh b/skills/vite-flare-starter/scripts/setup.shnew file mode 100755index 00000000..fe9d2aa1--- /dev/null+++ b/skills/vite-flare-starter/scripts/setup.sh@@ -0,0 +1,232 @@+#!/usr/bin/env bash+# vite-flare-starter setup script+# Clones, configures, and prepares a new project from the starter template.+#+# Usage:+# bash setup.sh+# bash setup.sh --name my-project --dir ~/Projects+# bash setup.sh --name my-project --skip-cloudflare++set -euo pipefail++# ── Defaults ──+REPO_URL="https://github.com/jezweb/vite-flare-starter.git"+PROJECT_NAME=""+PROJECT_DIR=""+SKIP_CLOUDFLARE=false+ADMIN_EMAIL=""++# ── Parse arguments ──+while [[ $# -gt 0 ]]; do+ case "$1" in+ --name) PROJECT_NAME="$2"; shift 2 ;;+ --dir) PROJECT_DIR="$2"; shift 2 ;;+ --skip-cloudflare) SKIP_CLOUDFLARE=true; shift ;;+ --admin-email) ADMIN_EMAIL="$2"; shift 2 ;;+ *) echo "Unknown option: $1"; exit 1 ;;+ esac+done++# ── Interactive prompts if not provided ──+if [[ -z "$PROJECT_NAME" ]]; then+ read -rp "Project name (kebab-case, e.g. my-app): " PROJECT_NAME+fi++if [[ -z "$PROJECT_DIR" ]]; then+ PROJECT_DIR="$(pwd)/$PROJECT_NAME"+fi++# Validate project name (kebab-case)+if ! [[ "$PROJECT_NAME" =~ ^[a-z][a-z0-9-]*[a-z0-9]$ ]]; then+ echo "Error: Project name must be kebab-case (lowercase letters, digits, hyphens)."+ echo " Example: my-cool-app"+ exit 1+fi++echo ""+echo "╔══════════════════════════════════════════╗"+echo "║ vite-flare-starter setup ║"+echo "╚══════════════════════════════════════════╝"+echo ""+echo " Project: $PROJECT_NAME"+echo " Location: $PROJECT_DIR"+echo ""++# ── Step 1: Clone ──+echo "→ Cloning vite-flare-starter..."+if [[ -d "$PROJECT_DIR" ]]; then+ echo "Error: Directory $PROJECT_DIR already exists."+ exit 1+fi++git clone "$REPO_URL" "$PROJECT_DIR" --depth 1+cd "$PROJECT_DIR"++# Remove original git history+rm -rf .git+git init+echo " ✓ Cloned and initialised fresh git repo"++# ── Step 2: Find-replace project name ──+echo ""+echo "→ Rebranding to '$PROJECT_NAME'..."++# wrangler.jsonc — worker name+sed -i "s/\"vite-flare-starter\"/\"$PROJECT_NAME\"/g" wrangler.jsonc++# wrangler.jsonc — database name+sed -i "s/vite-flare-starter-db/${PROJECT_NAME}-db/g" wrangler.jsonc++# wrangler.jsonc — R2 bucket names+sed -i "s/vite-flare-starter-avatars/${PROJECT_NAME}-avatars/g" wrangler.jsonc+sed -i "s/vite-flare-starter-files/${PROJECT_NAME}-files/g" wrangler.jsonc++# Remove hardcoded account_id (let wrangler prompt or use env var)+sed -i '/"account_id":/d' wrangler.jsonc++# Remove hardcoded database_id (will be set after creation)+sed -i 's/"database_id": "[^"]*"/"database_id": "REPLACE_WITH_YOUR_DATABASE_ID"/g' wrangler.jsonc++# package.json — package name+sed -i "s/\"name\": \"vite-flare-starter\"/\"name\": \"$PROJECT_NAME\"/g" package.json++# package.json — database references in scripts+sed -i "s/vite-flare-starter-db/${PROJECT_NAME}-db/g" package.json++# package.json — reset version+sed -i 's/"version": "[^"]*"/"version": "0.1.0"/g' package.json++echo " ✓ Replaced vite-flare-starter → $PROJECT_NAME in config files"++# ── Step 3: Generate auth secret ──+BETTER_AUTH_SECRET=$(openssl rand -hex 32 2>/dev/null || python3 -c "import secrets; print(secrets.token_hex(32))")+echo " ✓ Generated BETTER_AUTH_SECRET"++# ── Step 4: Create .dev.vars ──+# Convert kebab-case to Title Case for display name+APP_DISPLAY_NAME=$(echo "$PROJECT_NAME" | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')+APP_ID=$(echo "$PROJECT_NAME" | tr '-' '_')++cat > .dev.vars << DEVVARS+# Local Development Environment Variables+# DO NOT COMMIT THIS FILE TO GIT++# Authentication (better-auth)+BETTER_AUTH_SECRET=$BETTER_AUTH_SECRET+BETTER_AUTH_URL=http://localhost:5173++# Google OAuth (optional — get from https://console.cloud.google.com/)+GOOGLE_CLIENT_ID=+GOOGLE_CLIENT_SECRET=++# Email Auth Control (disabled by default — OAuth-only)+# ENABLE_EMAIL_LOGIN=true+# ENABLE_EMAIL_SIGNUP=true++# Email Configuration (optional — for verification/password reset)+# EMAIL_API_KEY=re_...++# Application Configuration+APP_NAME=$APP_DISPLAY_NAME+VITE_APP_NAME=$APP_DISPLAY_NAME+VITE_APP_ID=$APP_ID+VITE_TOKEN_PREFIX=${APP_ID}_+VITE_GITHUB_URL=+VITE_FOOTER_TEXT=++NODE_ENV=development+DEVVARS++echo " ✓ Created .dev.vars"++# ── Step 5: Update index.html ──+sed -i "s/<title>.*<\/title>/<title>$APP_DISPLAY_NAME<\/title>/" index.html+sed -i "s/content=\"Vite Flare Starter[^\"]*\"/content=\"$APP_DISPLAY_NAME\"/g" index.html+echo " ✓ Updated index.html title"++# ── Step 6: Optionally create Cloudflare resources ──+if [[ "$SKIP_CLOUDFLARE" == false ]]; then+ echo ""+ echo "→ Creating Cloudflare resources..."++ # Check if wrangler is available+ if ! command -v npx &>/dev/null; then+ echo " ⚠ npx not found — skipping Cloudflare resource creation"+ echo " Run manually: npx wrangler d1 create ${PROJECT_NAME}-db"+ SKIP_CLOUDFLARE=true+ else+ # Create D1 database+ echo " Creating D1 database: ${PROJECT_NAME}-db"+ D1_OUTPUT=$(npx wrangler d1 create "${PROJECT_NAME}-db" 2>&1) || true+ echo "$D1_OUTPUT"++ # Extract database_id from output+ DB_ID=$(echo "$D1_OUTPUT" | grep -oP 'database_id = "\K[^"]+' || true)+ if [[ -n "$DB_ID" ]]; then+ sed -i "s/REPLACE_WITH_YOUR_DATABASE_ID/$DB_ID/" wrangler.jsonc+ echo " ✓ D1 database created (ID: $DB_ID)"+ else+ echo " ⚠ Could not extract database_id — update wrangler.jsonc manually"+ fi++ # Create R2 buckets+ echo " Creating R2 bucket: ${PROJECT_NAME}-avatars"+ npx wrangler r2 bucket create "${PROJECT_NAME}-avatars" 2>&1 || true++ echo " Creating R2 bucket: ${PROJECT_NAME}-files"+ npx wrangler r2 bucket create "${PROJECT_NAME}-files" 2>&1 || true++ echo " ✓ R2 buckets created"+ fi+fi++# ── Step 7: Install dependencies ──+echo ""+echo "→ Installing dependencies..."+pnpm install+echo " ✓ Dependencies installed"++# ── Step 8: Run local database migration ──+echo ""+echo "→ Running local database migration..."+pnpm run db:migrate:local 2>&1 || echo " ⚠ Migration failed — run manually: pnpm run db:migrate:local"+echo " ✓ Local database migrated"++# ── Step 9: Initial git commit ──+git add -A+git commit -m "Initial commit from vite-flare-starter" --no-verify 2>/dev/null || true++# ── Summary ──+echo ""+echo "╔══════════════════════════════════════════╗"+echo "║ Setup complete! ║"+echo "╚══════════════════════════════════════════╝"+echo ""+echo " Project: $PROJECT_DIR"+echo ""+echo " Remaining manual steps:"+echo " ─────────────────────────────────────────"++if [[ "$SKIP_CLOUDFLARE" == true ]]; then+ echo " 1. Create Cloudflare resources:"+ echo " npx wrangler d1 create ${PROJECT_NAME}-db"+ echo " npx wrangler r2 bucket create ${PROJECT_NAME}-avatars"+ echo " npx wrangler r2 bucket create ${PROJECT_NAME}-files"+ echo " Then update wrangler.jsonc with your database_id"+ echo ""+fi++echo " • Google OAuth (optional):"+echo " - Create OAuth client at console.cloud.google.com"+echo " - Add redirect: http://localhost:5173/api/auth/callback/google"+echo " - Copy credentials to .dev.vars"+echo ""+echo " • Replace public/favicon.svg with your favicon"+echo ""+echo " • Update CLAUDE.md with your project description"+echo ""+echo " Start developing:"+echo " cd $PROJECT_DIR"+echo " pnpm dev"+echo ""diff --git a/skills/web-design-methodology/.claude-plugin/plugin.json b/skills/web-design-methodology/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..8543c411--- /dev/null+++ b/skills/web-design-methodology/.claude-plugin/plugin.json@@ -0,0 +1,5 @@+{+ "name": "web-design-methodology",+ "description": "Universal web design implementation — BEM, responsive, accessibility, CSS architecture.",+ "skills": "./"+}diff --git a/skills/web-design-methodology/SKILL.md b/skills/web-design-methodology/SKILL.mdnew file mode 100644index 00000000..65eac4a1--- /dev/null+++ b/skills/web-design-methodology/SKILL.md@@ -0,0 +1,289 @@+---+name: web-design-methodology+description: "Universal web design implementation methodology — BEM, responsive, accessibility, CSS architecture, spacing systems, dark mode. The HOW of building production-grade HTML/CSS."+---++# Web Design Methodology++Universal patterns for building production-grade HTML/CSS. This skill covers implementation methodology — pair with `web-design-patterns` for specific component designs.++## What You Produce++Production-ready HTML/CSS prototypes with:+- Semantic CSS custom properties (tokens)+- BEM-named components+- Mobile-first responsive design+- Accessible markup+- Optional three-state dark mode++## File Structure++```+prototype/+├── index.html+├── about.html+├── services.html+├── contact.html+├── favicon.svg+├── css/+│ ├── variables.css # Tokens: colours, typography, spacing+│ ├── styles.css # All component styles (BEM)+│ └── mobile-nav.css # Mobile menu styles+├── js/+│ ├── theme.js # Dark mode toggle (only if requested)+│ └── mobile-menu.js # Hamburger menu+└── media/+ └── images/+```++**Build order:**+1. `variables.css` — tokens first+2. `favicon.svg` — simple SVG from brand colour+3. `styles.css` — all BEM components+4. `mobile-nav.css` — responsive navigation+5. JS files — from `assets/` templates+6. `index.html` — homepage first+7. Inner pages — about, services, contact+8. Mobile check — verify at 375px++## BEM Naming++Use Block-Element-Modifier naming. No exceptions.++```css+/* Block */+.hero { }+.card { }+.nav { }++/* Element (child of block) */+.hero__title { }+.hero__subtitle { }+.hero__cta { }+.card__image { }+.card__content { }++/* Modifier (variation) */+.hero--split { }+.hero--minimal { }+.card--featured { }+.btn--primary { }+.btn--lg { }+```++**Rules:**+- Blocks are standalone components+- Elements are children, connected with `__`+- Modifiers are variations, connected with `--`+- Never nest more than one level: `.hero__content__title` is wrong+- Never use element without its block: `.card__image` only inside `.card`++## CSS Custom Properties++Use semantic tokens. Never hardcode colours, spacing, or typography values.++See `references/css-variables-template.md` for the complete token template.++```css+/* Always this */+.card {+ background: var(--card);+ color: var(--card-foreground);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ box-shadow: var(--shadow-sm);+ padding: var(--space-6);+}++/* Never this */+.card {+ background: #ffffff;+ color: #333333;+ border: 1px solid #e5e5e5;+ border-radius: 8px;+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);+ padding: 24px;+}+```++## Dark Mode (Optional)++Dark mode is **optional** — only add if the brief requests it. Most business sites ship faster as light-only.++**When to include:**+- Brief explicitly requests it+- Tech/developer audiences (expected)+- Portfolio/creative sites (aesthetic choice)++**When to skip:**+- Trades, hospitality, professional services+- When simplicity and fast shipping matter more++### If Adding Dark Mode++Use class-based toggle, never CSS media queries.++```css+/* Light mode (default) */+:root {+ --background: #F9FAFB;+ --foreground: #0F172A;+ --card: #FFFFFF;+ --card-foreground: #1E293B;+}++/* Dark mode (via .dark class on html) */+.dark {+ --background: #0F172A;+ --foreground: #F1F5F9;+ --card: #1E293B;+ --card-foreground: #F1F5F9;+}+```++**Rules:**+- `.dark` class on `<html>`, toggled via JavaScript+- NEVER use `@media (prefers-color-scheme: dark)` — JS handles system preference+- Every background token needs a paired foreground token+- Brand colours get lighter/more saturated in dark mode+- Backgrounds: `#0F172A` to `#1E293B` range (not pure black)+- Every text-on-background combo must pass WCAG AA (4.5:1)++Use `assets/theme-toggle.js` for the three-state toggle implementation.++## Responsive Design++Mobile-first. Design for 375px, enhance upward.++### Breakpoints++```css+/* Base: 375px (mobile) — no media query needed */+@media (min-width: 640px) { /* sm — large phone */ }+@media (min-width: 768px) { /* md — tablet */ }+@media (min-width: 1024px) { /* lg — small desktop */ }+@media (min-width: 1440px) { /* xl — standard desktop */ }+```++### Mobile Priorities++1. Phone number visible and tappable without scrolling+2. Primary CTA visible without scrolling+3. Navigation works via hamburger menu+4. Touch targets minimum 44x44px+5. No horizontal scrolling ever+6. Images scale properly (no overflow)++### Wide Screen Constraints++```css+.prose { max-width: 65ch; }+.hero__content { max-width: min(640px, 45vw); }+.container {+ max-width: 1280px;+ margin-inline: auto;+ padding-inline: var(--space-4);+}+.section { padding: clamp(3rem, 6vw, 6rem) 0; }+```++Use `assets/mobile-nav.js` for the hamburger menu implementation.++## Typography Rules++1. **Dramatic size contrast.** Headlines 3-4x body size. `clamp(2.5rem, 6vw, 5rem)` for hero titles.+2. **Weight variety.** Mix 300 and 800 weights. Uniform weight is boring.+3. **One display moment per page.** One oversized word, one dramatic headline, one pull quote. Not three.+4. **Left-align body text.** Centre only for heroes and short statements. Never centre paragraphs.+5. **Letter spacing on uppercase.** Add `letter-spacing: 0.05em` minimum.++## Colour Usage++The 80/20 rule:++- 80% neutral tones (backgrounds, text, cards)+- 15% secondary/muted brand tones+- 5% primary brand colour (CTAs, one accent per viewport)++If primary is on every heading, border, icon — nothing stands out.++## Spacing System++Not uniform padding. Sections breathe differently:++```css+/* Tight section (service list, FAQ) */+.section--compact { padding: clamp(2rem, 4vw, 4rem) 0; }++/* Standard section */+.section { padding: clamp(3rem, 6vw, 6rem) 0; }++/* Breathing room (editorial break, testimonial) */+.section--spacious { padding: clamp(4rem, 8vw, 10rem) 0; }+```++## Shadow System++| Element | Shadow |+|---------|--------|+| Cards at rest | `--shadow-sm` |+| Cards on hover | `--shadow-md` |+| Dropdowns | `--shadow-lg` |+| Modals | `--shadow-xl` |++Not everything needs shadow. Use sparingly.++## Icons++Use Lucide icons via inline SVG:+- Size: 24px inline, 32-48px for feature blocks+- Stroke width: 1.5 or 2 (consistent throughout)+- Colour: `currentColor` (inherits text colour)+- Each icon should communicate something specific++## Accessibility++Non-negotiable:++- **Semantic HTML**: `<header>`, `<nav>`, `<main>`, `<section>`, `<footer>`+- **Alt text**: Meaningful for content images, empty for decorative+- **Contrast**: 4.5:1 minimum (7:1 preferred)+- **Focus styles**: Visible on all interactive elements+- **Skip link**: First focusable element+- **Form labels**: Associated with inputs+- **ARIA**: `aria-expanded` on toggles, `aria-label` where needed++## Performance++- `loading="lazy"` on images below the fold+- `loading="eager"` on hero image+- `<link rel="preconnect" href="https://fonts.googleapis.com">` in head+- Keep CSS under 50KB total+- No JavaScript frameworks — vanilla JS only++## Anti-AI Patterns++These patterns signal "AI generated this" — avoid:++- Hero → trust bar → 3 cards → features → stats → CTA → footer (the skeleton)+- Every section has identical padding+- All cards same size in perfect 3-column grid+- Everything centred+- Every section: heading + subheading + content (same rhythm)+- Decorative elements with no purpose+- "Learn More" as every CTA+- Inter/Arial/system fonts with no typographic personality++## Quality Checklist++Before marking complete:++- [ ] Direction is clear — can describe aesthetic in one phrase+- [ ] Typography makes a statement — not Inter/system+- [ ] Colour is restrained — primary used sparingly+- [ ] No two adjacent sections look the same+- [ ] CTAs are specific — no "Learn More"+- [ ] Mobile works — tested at 375px+- [ ] Dark mode works (only if enabled) — every section checked+- [ ] No hallucinated images — only real file paths+- [ ] Would a designer claim this as their work?diff --git a/skills/web-design-methodology/assets/mobile-nav.js b/skills/web-design-methodology/assets/mobile-nav.jsnew file mode 100644index 00000000..e762242f--- /dev/null+++ b/skills/web-design-methodology/assets/mobile-nav.js@@ -0,0 +1,22 @@+// Mobile hamburger menu toggle+// Requires: <button id="mobile-menu-btn" aria-expanded="false">+// <nav id="mobile-nav"> with links inside+(function() {+ const btn = document.getElementById('mobile-menu-btn');+ const nav = document.getElementById('mobile-nav');+ if (!btn || !nav) return;++ btn.addEventListener('click', () => {+ const isOpen = nav.classList.toggle('is-open');+ btn.setAttribute('aria-expanded', isOpen);+ document.body.classList.toggle('nav-open', isOpen);+ });++ nav.querySelectorAll('a').forEach(link => {+ link.addEventListener('click', () => {+ nav.classList.remove('is-open');+ btn.setAttribute('aria-expanded', 'false');+ document.body.classList.remove('nav-open');+ });+ });+})();diff --git a/skills/web-design-methodology/assets/theme-toggle.js b/skills/web-design-methodology/assets/theme-toggle.jsnew file mode 100644index 00000000..8c941a17--- /dev/null+++ b/skills/web-design-methodology/assets/theme-toggle.js@@ -0,0 +1,47 @@+// Three-state dark mode toggle: light → dark → system → light+// Only include if dark mode is requested.+// Requires: <button id="theme-toggle"> with .sun-icon and .moon-icon child SVGs+(function() {+ const toggle = document.getElementById('theme-toggle');+ const html = document.documentElement;+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)');++ function applyTheme(theme) {+ html.dataset.theme = theme;+ if (theme === 'system') {+ html.classList.toggle('dark', prefersDark.matches);+ } else {+ html.classList.toggle('dark', theme === 'dark');+ }+ updateIcon();+ }++ function updateIcon() {+ if (!toggle) return;+ const isDark = html.classList.contains('dark');+ const sun = toggle.querySelector('.sun-icon');+ const moon = toggle.querySelector('.moon-icon');+ if (sun) sun.style.display = isDark ? 'block' : 'none';+ if (moon) moon.style.display = isDark ? 'none' : 'block';+ }++ const saved = localStorage.getItem('theme') || 'system';+ applyTheme(saved);++ if (toggle) {+ toggle.addEventListener('click', () => {+ const order = ['light', 'dark', 'system'];+ const current = html.dataset.theme || 'system';+ const next = order[(order.indexOf(current) + 1) % 3];+ localStorage.setItem('theme', next);+ applyTheme(next);+ });+ }++ prefersDark.addEventListener('change', () => {+ if (html.dataset.theme === 'system') {+ html.classList.toggle('dark', prefersDark.matches);+ updateIcon();+ }+ });+})();diff --git a/skills/web-design-methodology/references/css-variables-template.md b/skills/web-design-methodology/references/css-variables-template.mdnew file mode 100644index 00000000..ccd85778--- /dev/null+++ b/skills/web-design-methodology/references/css-variables-template.md@@ -0,0 +1,116 @@+# CSS Variables Template++Complete `:root` token template. Copy and customise for each project.++## Full Template++```css+:root {+ /* ── Brand Colours ── */+ --primary: #hex;+ --primary-foreground: #hex;+ --secondary: #hex;+ --secondary-foreground: #hex;+ --accent: #hex;+ --accent-foreground: #hex;++ /* ── Semantic Colours ── */+ --background: #hex;+ --foreground: #hex;+ --card: #hex;+ --card-foreground: #hex;+ --muted: #hex;+ --muted-foreground: #hex;+ --border: #hex;++ /* ── Typography ── */+ --font-display: 'Display Font', system-ui, sans-serif;+ --font-body: 'Body Font', system-ui, sans-serif;++ /* ── Spacing Scale (4px base) ── */+ --space-1: 0.25rem; /* 4px */+ --space-2: 0.5rem; /* 8px */+ --space-3: 0.75rem; /* 12px */+ --space-4: 1rem; /* 16px */+ --space-6: 1.5rem; /* 24px */+ --space-8: 2rem; /* 32px */+ --space-12: 3rem; /* 48px */+ --space-16: 4rem; /* 64px */+ --space-20: 5rem; /* 80px */+ --space-24: 6rem; /* 96px */++ /* ── Border Radius ── */+ --radius-sm: 0.25rem;+ --radius: 0.5rem;+ --radius-lg: 0.75rem;+ --radius-xl: 1rem;++ /* ── Shadows ── */+ --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);+ --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);+ --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);+ --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);+}+```++## Dark Mode Override++Only include if dark mode is enabled:++```css+.dark {+ /* ── Brand Colours (lighter/more saturated) ── */+ --primary: #hex;+ --primary-foreground: #hex;+ --secondary: #hex;+ --secondary-foreground: #hex;+ --accent: #hex;+ --accent-foreground: #hex;++ /* ── Semantic Colours ── */+ --background: #0F172A;+ --foreground: #F1F5F9;+ --card: #1E293B;+ --card-foreground: #F1F5F9;+ --muted: #334155;+ --muted-foreground: #94A3B8;+ --border: #334155;++ /* ── Shadows (stronger in dark mode) ── */+ --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);+ --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);+ --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.35), 0 4px 6px -4px rgba(0,0,0,0.2);+ --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.25);+}+```++## Token Pairing Rules++Every background token MUST have a paired foreground token:++| Background | Foreground | Use |+|------------|------------|-----|+| `--background` | `--foreground` | Page body |+| `--card` | `--card-foreground` | Cards, panels |+| `--muted` | `--muted-foreground` | Subtle backgrounds |+| `--primary` | `--primary-foreground` | Buttons, CTAs |+| `--secondary` | `--secondary-foreground` | Secondary actions |+| `--accent` | `--accent-foreground` | Highlights |++## Font Pairing Suggestions++| Category | Display | Body |+|----------|---------|------|+| Trades | Oswald, Barlow Condensed | Inter, Source Sans |+| Professional | Playfair Display, Cormorant | Lato, Open Sans |+| Hospitality | Libre Baskerville, DM Serif | DM Sans, Nunito |+| Creative | Space Grotesk, Syne | Work Sans, Outfit |+| Tech | JetBrains Mono, IBM Plex | IBM Plex Sans, Inter |++Load via Google Fonts with preconnect:++```html+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Display+Font:wght@300;700&family=Body+Font:wght@400;600&display=swap" rel="stylesheet">+```diff --git a/skills/web-design-patterns/.claude-plugin/plugin.json b/skills/web-design-patterns/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..f1a44717--- /dev/null+++ b/skills/web-design-patterns/.claude-plugin/plugin.json@@ -0,0 +1,5 @@+{+ "name": "web-design-patterns",+ "description": "Design patterns for heroes, cards, CTAs, trust signals, testimonials.",+ "skills": "./"+}diff --git a/skills/web-design-patterns/SKILL.md b/skills/web-design-patterns/SKILL.mdnew file mode 100644index 00000000..85b9a4df--- /dev/null+++ b/skills/web-design-patterns/SKILL.md@@ -0,0 +1,143 @@+---+name: web-design-patterns+description: "Design patterns for website sections — heroes, cards, CTAs, trust signals, testimonials. Principle-based patterns that avoid AI-generated aesthetics. Pair with web-design-methodology for implementation."+---++# Web Design Patterns++Principle-based patterns for designing website sections that feel human-designed, not AI-generated. Each pattern teaches WHY and WHEN, not just templates to copy.++## What You Produce++Well-designed website sections: heroes, card layouts, CTAs, trust signals, and testimonials that match the business context and avoid the "AI skeleton" look.++## When to Read Which Reference++| Building this... | Read this reference |+|------------------|-------------------|+| Homepage hero, page headers, landing pages | `references/hero-patterns.md` |+| Service cards, team grids, pricing tiers, portfolios | `references/card-patterns.md` |+| Conversion sections, buttons, banner CTAs | `references/cta-patterns.md` |+| Credibility: badges, licences, reviews, guarantees | `references/trust-signals.md` |+| Customer reviews, social proof, quote sections | `references/testimonial-patterns.md` |++**Load on demand** — don't read all five for every project. Read the one(s) relevant to the current section.++## Cross-Cutting Principles++These apply to ALL patterns. Internalise these before reading any reference file.++### Anti-AI Patterns (Avoid These)++The "AI skeleton" that signals template-generated design:++1. **The sequence**: Hero → trust bar → 3 identical cards → features → stats → CTA → footer+2. **Democratic design**: Every element gets equal visual weight, no hierarchy+3. **Perfect symmetry**: Everything centred, perfectly aligned, no intentional asymmetry+4. **Identical repetition**: All cards same size, same structure, same padding, same shadow+5. **Generic copy**: "Learn More" as every CTA, "Quality Service You Can Trust" as every headline+6. **Decoration without purpose**: Floating shapes, random gradients, abstract blobs++### What Makes Design Feel Human++1. **One element clearly dominates** — hierarchy, not democracy+2. **Asymmetry is intentional** — not everything centred or balanced+3. **Specific, opinionated copy** — "Schedule Your Free Roof Inspection" not "Learn More"+4. **Visual weight guides the eye** — you know where to look first, second, third+5. **Restraint** — not every technique used, just the ones that serve the purpose+6. **Context-appropriate** — emergency plumber looks different from luxury hotel++### Ethical Rules++Non-negotiable across all patterns:++**On lead-gen sites (no real business data), NEVER fabricate:**+- Star ratings or review counts+- Specific years in business+- Licence or ABN numbers+- Named individuals or team members+- Exact customer counts++**Safe alternatives for lead-gen:**+- "Experienced Team" (not "25 Years Experience")+- "Highly Rated" (not "4.9 Stars (127 Reviews)")+- "Licensed & Insured" (not "QBCC License #1234567")++### Business Context Shapes Everything++The same section type looks completely different for different businesses:++| Business type | Design feel |+|---------------|-------------|+| Emergency services | Direct, immediate, phone-first |+| Luxury/hospitality | Spacious, refined, atmospheric |+| Trades/local services | Trustworthy, capable, genuine |+| Professional/corporate | Confident, clean, structured |+| Creative/agency | Distinctive, bold, personality-driven |++## Quick Pattern Examples++### Hero Approaches++**Image-dominant** (strong photography available):+- Let the image do the work, minimal text+- One clear focal point+- Text placement within image composition, not slapped on top++**Typography-dominant** (no strong imagery):+- Font choice, size, weight, spacing IS the design+- Generous whitespace as active design element+- Colour blocking or subtle texture instead of stock photos++**Split/balanced** (strong copy + strong imagery):+- One side dominates slightly — true 50/50 feels indecisive+- On mobile, order matters — which element first in vertical stack?++### Card Layout Decision++1. **Count items first** — wrong grid math creates orphan cards+2. **Check hierarchy** — is one item more important? Feature it at 2x size+3. **Content density** — image-heavy = fewer columns, text-heavy = more columns+4. **Orphan fix** — never leave 1 card alone on a row++### CTA Hierarchy++Match CTA urgency to business context:+- **Emergency services**: Phone number IS the CTA. Huge, high-contrast, tappable.+- **Professional services**: Lower commitment first. "Book a consultation."+- **Creative/agency**: Relationship-building. "View our work."++**Golden rule**: Make your case first, then ask for action. CTA appears AFTER value.++### Trust Signal Hierarchy++| Tier | Type | Example |+|------|------|---------|+| 1 (Strongest) | Specific, verifiable | "QBCC License #1234567" |+| 2 | Third-party validation | "4.8 stars (127 Google Reviews)" + link |+| 3 | Self-claimed | "Fully licensed and insured" |+| 4 (Weakest) | Generic assurances | "Quality guaranteed" |++One Tier 1 signal beats three Tier 4 signals. Distribute trust throughout the page — don't isolate in one section.++### Testimonial Approach++| Situation | Approach |+|-----------|----------|+| One powerful testimonial | Single featured quote, make it big |+| 3-6 good testimonials | Grid with variety, one featured |+| No real testimonials | Service promises, guarantees, process descriptions |++**Never use carousels** — users see 1 of 5 testimonials, <1% click controls. Show all or curate the best 3.++## Reference File Index++Each reference is a deep-dive (300-470 lines) with full principles, anti-patterns, implementation patterns, and business-specific guidance.++| File | Lines | Covers |+|------|-------|--------|+| `hero-patterns.md` | ~470 | Approach selection, constraint-based creativity, overlay techniques, responsive behaviour, page-specific heroes |+| `card-patterns.md` | ~550 | Layout decision framework, anti-sameness strategies, grid math, orphan handling, CSS patterns, business context |+| `cta-patterns.md` | ~420 | Action hierarchy, placement strategy, copy principles, visual design, mobile considerations, context-specific CTAs |+| `trust-signals.md` | ~490 | Trust psychology, trust hierarchy, context-sensitive trust, lead-gen vs client, placement strategy, anti-patterns |+| `testimonial-patterns.md` | ~350 | Social proof psychology, lead-gen ethics, design approach selection, content principles, placement, alternatives |diff --git a/skills/web-design-patterns/references/card-patterns.md b/skills/web-design-patterns/references/card-patterns.mdnew file mode 100644index 00000000..439e12f8--- /dev/null+++ b/skills/web-design-patterns/references/card-patterns.md@@ -0,0 +1,264 @@+# Card Design Principles++A thinking framework for card-based layouts that don't look AI-generated.++**Philosophy**: Cards are containers that signal "this is a discrete, scannable unit." But not every group of items should be cards, and not all cards should look identical.++---++## 1. Card Design Fundamentals++### When to Use Cards (vs. Other Patterns)++**Use cards when**:+- Items are independent and self-contained (services, team members, pricing tiers)+- Users need to scan and compare discrete options+- Each item has 2-4 distinct pieces of information (title, description, CTA)++**Don't use cards when**:+- Content is sequential (use numbered lists or timeline)+- There's a single narrative flow (use article layout or alternating rows)+- Items have deep hierarchy within them (use accordion or tabs)+- You have a single item (just use a content block)++### Card Anatomy & Visual Hierarchy++Every card needs **clear internal hierarchy**. The eye should know where to look first, second, third.++**Hierarchy tools**:+1. **Size**: Larger elements draw attention+2. **Weight**: Bold stands out more than regular text+3. **Colour**: High contrast grabs attention+4. **Position**: Top-left gets read first in Western layouts+5. **Whitespace**: More space around = more important++**Typical card reading order**:+1. Image or icon — instant visual recognition+2. Title — what is this?+3. Description — why should I care?+4. Metadata — supporting details+5. CTA — what's the next action?++---++## 2. Layout Decision Framework++### Question 1: How Many Items? (MOST CRITICAL)++**2 items**: Side-by-side, equal weight OR one featured + one supporting+**3 items**: Featured + 2 secondary OR equal 3-column+**4 items**: Full-width featured + 3 below OR 2x2 grid+**5 items**: Bento with 2x2 featured OR 2+3 rows+**6 items**: Bento with 2x2 featured OR 3+3 rows+**7+ items**: Alternating rows OR simple responsive grid OR question if cards are the right pattern++**The orphan problem**: Never leave 1 card alone on a row.++**Safe layouts that work with ANY count**:+- Full-width featured card + responsive grid below+- Alternating full-width rows+- Simple responsive grid (1 col -> 2 col -> 3 col) that wraps naturally++### Question 2: Is There Hierarchy in Importance?++**When hierarchy exists**: Use featured card patterns+- Make the important card 2x the size+- Give it an image while others get icons+- Use a stronger CTA button (primary vs outline)++**When all items are equal**: Use uniform grid+- Same card dimensions for all+- Consistent internal structure++### Question 3: What's the Content Density?++**Image-heavy content**: 2-3 columns max, larger cards, less text per card+**Text-heavy content**: 3-4 columns, smaller cards, more content per card+**Mixed content**: Feature the image cards, icon-only cards can be denser++### Question 4: Where Does This Sit on the Page?++**Above the fold**: Fewer, larger cards (2-3 max)+**Mid-page**: More cards fine (4-6), simpler styling+**Near footer**: Simple grid or list, minimal decoration++---++## 3. Anti-Sameness Strategies++### Strategy 1: Vary Card Sizes Based on Importance++- **Primary offering**: 2x the size, includes image, detailed CTA+- **Secondary offerings**: Standard size, icon or small image+- **Tertiary offerings**: Compact cards or simple list items++### Strategy 2: Mix Card Formats Within a Section++**Service section example**:+- Card 1: Image + title + description + "Learn More" link+- Card 2: Icon + title + description + "View pricing" link+- Card 3: Large number/stat + title + brief text (no CTA)++### Strategy 3: Consider Non-Card Alternatives++**Alternatives to consider**:+- **Alternating rows**: Better for 3-5 detailed items with images+- **Numbered list**: Better for sequential steps or ranked items+- **Timeline**: Better for chronological content+- **Simple text blocks**: Better for benefits/features without images+- **Stats grid**: Better for number-heavy content+- **Icon list**: Better for simple feature lists++### Strategy 4: Vary Visual Treatment++Even if card structure is similar, vary the visual style:+- Some cards with images, some with icons, some with neither+- Some cards with subtle background, some with borders, some with shadows+- Different padding (featured card gets more breathing room)++---++## 4. Grid Math & Responsive Decisions++### Column Choice by Content Type++**2-column grid**: Image-heavy content, detailed comparisons. Works well for even counts.+**3-column grid**: Standard services, team members, blog posts. Watch for orphans with 4, 7, 10 items.+**4-column grid**: Compact cards, icon-based features, large datasets. Needs generous whitespace.++### Handling Orphan Items++**Solutions**:+1. Add a featured card that spans 2+ cells to adjust the math+2. Switch to alternating rows+3. Add/remove an item to reach grid-friendly count+4. Use responsive grid that wraps naturally+5. Make the last card full-width (intentional asymmetry)++### Responsive Breakpoints++**Desktop (>1024px)**: Full intended grid+**Tablet (768-1024px)**: Usually 2 columns regardless of desktop layout+**Mobile (<768px)**: Always 1 column (stacked)++---++## 5. Business Context Considerations++### Services+- Clear hierarchy (featured service if you have a specialty)+- 3-5 services max on one screen+- Strong CTAs on every card++### Team+- Founder/owner deserves featured treatment+- Real photos beat stock photos every time+- Include personality details, not just titles++### Pricing+- Always 2-3 tiers+- Highlight the recommended tier+- Align features for easy comparison+- Make CTA buttons at same vertical position++### Portfolio / Case Studies+- Minimise card chrome+- Images should be the hero+- Bento or masonry works well+- Brief text (title + client + link is enough)++### Features / Benefits+- Consider if cards are even needed (icon list might be better)+- Keep text minimal+- Grid can be denser (3-4 columns)++---++## 6. CSS Implementation Patterns++### Uniform Card Heights (Same Row)++```css+.card-grid {+ display: grid;+ gap: var(--space-8);+ grid-template-columns: repeat(2, 1fr);+ align-items: stretch;+}++.card {+ display: flex;+ flex-direction: column;+ height: 100%;+}++.card__image {+ flex-shrink: 0;+}++.card__content {+ display: flex;+ flex-direction: column;+ flex-grow: 1;+ padding: var(--space-6);+}++.card__description {+ flex-grow: 1;+}++.card__tags {+ margin-top: auto;+}+```++**Why this works:**+1. Grid `align-items: stretch` — makes grid items fill their cell height+2. Card `height: 100%` — card expands to fill the stretched grid cell+3. Content `flex-grow: 1` — content area fills space between image and tags+4. Description `flex-grow: 1` — takes available space, pushing tags down+5. Tags `margin-top: auto` — anchors to the bottom of the flex container++---++## 7. Decision Flowchart++**Question 1: How many items?**+- 1 item -> Not a card, just a content block+- 2 items -> Equal cards side-by-side OR one featured + one supporting+- 3-6 items -> Continue to Question 2+- 7+ items -> Consider alternating rows OR simple grid++**Question 2: Is there clear hierarchy?**+- Yes -> Featured card pattern (make primary item 2x size)+- No, all equal -> Continue to Question 3++**Question 3: What's the content?**+- Image-heavy -> 2 columns or bento grid, larger cards+- Text-heavy -> 3-4 columns or alternating rows, smaller cards+- Mixed -> Featured pattern or varied card sizes++**Question 4: Check the grid math**+- Does your item count create orphans? -> Adjust grid++**Question 5: Does it look AI-generated?**+- All cards identical? -> Add size variation+- All same format? -> Mix image/icon/text cards+- Feels templated? -> Break the grid, add asymmetry++---++## 8. Quick Reference by Scenario++| Scenario | Item Count | Best Pattern | Key Principle |+|----------|-----------|-------------|---------------|+| Services (main offering clear) | 3-5 | Featured + grid | Show hierarchy |+| Services (all equal) | 4-6 | Simple 3-col grid | Clean and scannable |+| Services (detailed) | 3-4 | Alternating rows | Give descriptions space |+| Team (with founder) | 4-8 | Featured founder + grid | Leadership stands out |+| Team (all equal) | 6-9 | Simple 3-col grid | Keep personal |+| Pricing | 2-3 | 3-col with featured middle | Guide decision |+| Portfolio | 6-12 | Bento or masonry | Let work speak |+| Features | 6-12 | Dense 4-col or icon list | Fast scanning |+| Case studies | 3-6 | 2-col or alternating | Give detail space |+| Testimonials | 3-6 | Consider non-card pattern | Cards not ideal here |diff --git a/skills/web-design-patterns/references/cta-patterns.md b/skills/web-design-patterns/references/cta-patterns.mdnew file mode 100644index 00000000..7d197421--- /dev/null+++ b/skills/web-design-patterns/references/cta-patterns.md@@ -0,0 +1,207 @@+# CTA Design Principles++How to think about CTAs that actually convert.++## Core Truth: A CTA's Job++A CTA's job is to make the next step obvious and compelling. The best CTA depends entirely on what you're asking someone to do and where they are in their journey.++---++## Principle 1: Action Hierarchy — Match CTA Urgency to Business Context++### Emergency Services (Plumber, Locksmith, HVAC Repair)+- **The phone number IS the CTA**+- Make it huge, high-contrast, and instantly tappable+- People are in crisis mode — they need to call NOW+- "24/7 Emergency Service: [PHONE]" > everything else+- Don't ask them to fill out a form when their basement is flooding++### Professional Services (Lawyer, Accountant, Consultant)+- Lower commitment first step: "Book a consultation" or "Get a free assessment"+- People need to trust you before they commit+- Secondary: "Download our guide" (email capture, relationship building)++### E-commerce+- "Add to cart" with clear pricing visible+- Show the price before asking for the action+- Cart abandonment is high — don't add friction++### Content/Agency/Creative+- Relationship-building CTAs: "View our work", "Let's talk", "See case studies"+- "Tell us about your project" invites conversation++### SaaS/Software+- Free trial > demo > contact sales+- "Start free trial" converts higher than "Request demo"+- Don't ask for credit card upfront unless your product is proven++**The Pattern**: Ask for the smallest meaningful commitment that moves the relationship forward.++---++## Principle 2: Placement — After Value, Not Before++### The Golden Rule: Make Your Case First++**Bad sequence**:+1. "Get your free quote!" (top of page)+2. Explanation of what you do+3. Why you're different++**Good sequence**:+1. Problem statement (you understand their pain)+2. How you solve it (your solution)+3. Proof (testimonials, results, credentials)+4. **NOW ask for action** (they're convinced)++### Placement Sweet Spots++1. **After the hero section** — for people who already know they want this+2. **Mid-page, after explaining the problem** — "Ready to fix this?"+3. **After social proof** — testimonials built trust, now convert+4. **Pre-footer banner** — last chance before they leave (highest converting)+5. **Sticky CTA on mobile** — only for high-urgency services, use sparingly++### How Many CTAs Per Page?++1-2 per screenful maximum:+- **Low urgency** (blog, about page): 1-2 total+- **Medium urgency** (service pages): 2-3 total+- **High urgency** (landing pages, pricing): 3-4 max++---++## Principle 3: Copy — Words Matter More Than Design++### Specific Beats Generic++| Generic (Weak) | Specific (Strong) |+|----------------|-------------------|+| Contact Us | Call for Same-Day Service |+| Learn More | See How We Cut Energy Bills 30% |+| Get Started | Book Your Free Roof Inspection |+| Submit | Get Your Custom Quote |+| Click Here | Download the 2026 Tax Guide |++**The test**: If your CTA could work on any business's website, it's too generic.++### Action Verbs — What Happens Next?++The verb should describe the immediate next step, not the end goal:+- "Book a consultation" (not "Get better finances")+- "Download the checklist" (not "Improve your marketing")+- "Request a quote" (not "Save money")++### Remove Friction Words (Sometimes)++**When to use them**: Trust problems or commitment anxiety (lawyers, contractors, subscriptions).+**When NOT to**: Makes you sound desperate or cheap.++**Better alternative**: Be specific about the value.+- "Get a custom quote in 24 hours" > "Get a free quote"+- "30-minute strategy call" > "Free consultation"++### Match the Emotional Temperature++**High-energy page** (landing page): "Claim your discount now!"+**Professional page** (services): "Request a consultation"+**Informational page** (blog): "Download the guide"+**Emergency page** (24/7 services): "CALL NOW: [number]"++---++## Principle 4: Visual Design — Contrast and Hierarchy++### Contrast is King++**Simple test**: Squint at the page. Can you still see the CTA? If not, it's not contrasting enough.++- **Light background** -> Dark or vibrant button+- **Dark background** -> Light or vibrant button+- **Colourful page** -> Neutral or opposite colour button++### One Primary CTA Per Section++**Primary CTA**: Solid fill, high contrast, largest size+**Secondary CTA**: Outline or ghost style, smaller, less prominent++### Size Communicates Importance++- Large: 18-20px text, generous padding (16px vertical) — hero, pre-footer+- Medium: 16px text, standard padding (12px vertical) — inline, mid-page+- Small: 14px text, compact padding (8px vertical) — footer, sidebar++### Whitespace — Breathing Room = Drawing Power++Give your CTA space:+- Margin above: 3-4x your base spacing+- Margin below: 3-4x your base spacing+- Padding inside button: 2-3x base spacing++---++## Principle 5: Context-Specific CTAs++### Homepage+- **Primary**: Main action for entire business+- **Secondary**: Alternative path ("See our services")+- **Pre-footer**: Last-chance conversion++### Service Pages+- **Primary**: Service-specific action ("Book a roof inspection")+- NOT generic "Contact us"++### About Page+- **Softer CTA**: "Work with us", "See our projects", "Get in touch"+- NOT "Buy now" or "Get a quote"++### Blog/Content Pages+- **Primary**: Related content or email capture+- **Secondary**: Soft conversion++### Contact Page+- **The form IS the CTA**+- Minimal other CTAs++### Pricing Page+- **Per-tier CTA**: "Choose [Plan Name]" or "Get started"+- **Pre-footer**: "Not sure? Talk to us"++---++## Principle 6: Anti-Patterns++1. **"Learn More" that goes nowhere** — Be specific. "How our process works."+2. **Giant banner with generic motivational copy** — "Ready to take your business to the next level?" is the AI default.+3. **CTAs that look like every other section** — If your CTA looks identical to your hero, it doesn't stand out.+4. **Multiple competing CTAs of equal weight** — One primary (solid), others secondary (outline).+5. **"Contact Us" with no context** — "Request a callback" or "Get a free quote."+6. **CTAs before value** — Explain the value first, THEN ask for action.+7. **Buried CTA in paragraph text** — Visually distinct button, not inline link.+8. **Friction-heavy CTAs** — "Download our comprehensive enterprise-grade whitepaper" -> "Get the guide."++---++## Principle 7: Mobile Considerations++**Minimum touch target**: 44px tall+**Full-width buttons on mobile**: Hero CTAs, banner CTAs+**Stack buttons vertically**: Primary on top, secondary below+**Phone number CTAs**: `<a href="tel:...">` links, large, obvious, high-contrast++**Sticky CTAs on mobile**:+- Emergency services: floating phone button+- High-intent pages: sticky "Get quote" at bottom+- Don't use on informational pages++---++## Quick Decision Framework++1. **What's the business context?** Emergency -> Phone. Professional -> "Book consultation." Creative -> "View work."+2. **What have I proven so far?** Nothing -> Don't ask yet. Shown social proof -> Strong CTA.+3. **What's the smallest meaningful commitment?** Free trial > demo > contact > purchase.+4. **Is my CTA copy specific?** Could it work on any website? -> Too generic.+5. **Does my CTA visually stand out?** Squint test.+6. **Am I asking too many times?** More than 4 CTAs on a page -> Too many.diff --git a/skills/web-design-patterns/references/hero-patterns.md b/skills/web-design-patterns/references/hero-patterns.mdnew file mode 100644index 00000000..54a0febc--- /dev/null+++ b/skills/web-design-patterns/references/hero-patterns.md@@ -0,0 +1,316 @@+# Hero Design Principles++The hero's job: Create an emotional first impression that reflects the brand personality.++## Questions to Answer Before Designing++Before writing any code, understand the context:++- **What's the single most important thing the visitor should feel?** (urgency? trust? luxury? excitement? capability?)+- **Does this business have strong visual assets?** (photos, product shots) or is it text-driven?+- **What action should the visitor take?** (call now? browse services? book online? read more?)+- **What device will most visitors use?** (mobile-first for trades, desktop-first for B2B)+- **What's the brand personality?** (formal? friendly? premium? accessible?)++## Approach Selection (Not Templates)++Choose your hero approach based on content and business type, not a template menu:++### Image-Dominant Heroes+**Best when:** Strong photography available, business sells an experience or visual result (hospitality, real estate, restaurants, galleries)++**Principles:**+- Let the image do the work — text should be minimal and purposeful+- One clear focal point in the image (don't split attention with busy compositions)+- Text placement should feel like it belongs IN the composition, not slapped ON TOP of it+- Consider whether the image needs the full viewport or just a portion+- The image should communicate something specific about the business, not just be "nice looking"++**What to avoid:**+- Generic stock photos that could be for any business+- Automatic dark overlays on every image (only use if truly needed for contrast)+- Centering text over images by default — consider natural negative space in the photo++### Typography-Dominant Heroes+**Best when:** No strong imagery available, brand voice is the differentiator, professional services, B2B++**Principles:**+- Typography IS the design — font choice, size, weight, spacing, and rhythm all matter more+- Create visual interest through dramatic typographic hierarchy (massive headline contrasting with small, refined subtitle)+- Use generous whitespace — the empty space IS the design element, not leftover area+- Consider colour blocking or subtle texture instead of photography+- The headline should be specific and opinionated, not generic marketing speak++**What to avoid:**+- Filling empty space with decorative elements "because it looks bare"+- Using stock photos just because you think every hero needs an image+- Safe, middle-of-the-road typography that doesn't make a statement++### Balanced Heroes (Split/Duo)+**Best when:** Both strong copy and strong imagery exist, need to convey information + emotion simultaneously++**Principles:**+- One side should still dominate slightly — true 50/50 splits feel indecisive and lack direction+- The image and text should relate to each other, not just coexist in proximity+- Consider which side gets attention first (reading direction, visual weight, colour contrast)+- On mobile, the order matters — which element should come first in the vertical stack?+- The split doesn't have to be vertical — consider horizontal divisions or asymmetric layouts++**What to avoid:**+- Using this approach by default for every hero+- Perfectly centered 50/50 splits with no visual hierarchy+- Text and image that have no relationship to each other++## Constraint-Based Creativity++### By Business Personality++Think about what the business FEELS like, not just what industry it's in:++**Emergency/urgent services** (plumbing, HVAC, locksmith, towing)+- Bold, high-contrast typography+- Phone number prominent and clickable+- Minimal decoration or artistic elements+- Action-oriented language+- Trust signals visible (licensed, insured, years in business)++**Luxury/hospitality** (high-end hotels, spas, fine dining, boutiques)+- Generous whitespace as a design feature+- Subtle, elegant typography+- Atmospheric full-bleed imagery+- Restrained colour palette+- Nothing shouty or urgent++**Trades/local services** (contractors, landscaping, cleaning, electricians)+- Real photos of actual work or team+- Credentials and certifications visible+- Service area/location prominent+- Action-oriented (clear next steps)+- Genuine, not overly polished++**Professional/corporate** (legal, financial, consulting, B2B)+- Clean, structured typography+- Restrained colour usage+- Professional but not stiff+- Clear value proposition+- Credibility indicators++**Creative/agency** (design studios, marketing, production, artists)+- Bold, unconventional choices+- Unusual composition or layout+- Personality-driven design+- Demonstrates capability through execution+- Breaks conventions purposefully++### By Available Assets++**Strong hero photo available** — Let it breathe. Don't shrink it into a 50% split if it deserves full width.++**Only team/staff photos** — Consider using as a smaller element, not forcing into the primary hero role.++**No usable photos** — Typography-led hero with colour/texture. Don't resort to generic stock photography.++**Generated/AI images** — Use more creatively — as texture, background elements, or partial reveals rather than literal hero placement.++**Product photography** — Consider whether to show products in context (lifestyle) or isolated (product-focused).++## What Makes a Hero Feel AI-Generated (Avoid These)++- Perfect centering of every element with no intentional asymmetry+- Dark gradient overlay on stock photo with white centered text+- Generic "Welcome to [Business Name]" headline+- All elements given equal visual weight+- Cookie-cutter split layout used regardless of content+- Decorative elements that serve no purpose+- CTA button that says "Learn More" or "Get Started"+- Three value proposition cards directly in the hero+- Everything aligned to a perfect grid with no intentional tension+- Typography that makes no statement++## What Makes a Hero Feel Human-Designed++- **One element clearly dominates** — either the image OR the text leads+- **Asymmetry or intentional visual tension**+- **A specific, opinionated headline**+- **Visual weight that guides the eye**+- **Feels custom-made for this business**+- **Whitespace used intentionally**+- **The CTA tells you exactly what happens**+- **Design choices you can explain**+- **Restraint**+- **Relationship between elements**++## Page-Specific Guidance++### Homepage Hero+- Most impactful hero, sets the entire site's tone+- Can be taller and more dramatic+- Should communicate the core brand promise immediately+- This is where you can take bigger design risks++### Interior Page Headers+- Simpler and faster to parse than homepage hero+- Don't repeat the homepage hero pattern+- Focus on orientation (where am I?) more than persuasion+- A strong headline and breadcrumb might be enough++### Service Pages+- Hero should immediately signal "you're in the right place for [specific service]"+- Be specific — not "Our Services" but "Commercial HVAC Installation & Maintenance"+- Include relevant trust signals and service-specific CTA++### About/Team Pages+- More personal, less sales-driven+- Consider editorial/magazine approaches+- Real photos matter more here than anywhere else++### Contact Pages+- Simplest hero — just needs to frame the form and provide context+- Include multiple contact methods visible immediately+- Don't use this hero to sell — they're already ready to contact you++## Common Implementation Patterns++### Split Hero Structure+```html+<section class="hero hero--split">+ <div class="container">+ <div class="hero__content">+ <h1 class="hero__title">[Specific, Opinionated Headline]</h1>+ <p class="hero__subtitle">[Supporting context]</p>+ <div class="hero__actions">+ <a href="/action" class="btn btn--primary btn--lg">[Specific CTA]</a>+ </div>+ </div>+ <div class="hero__image">+ <img src="[path]" alt="[Descriptive alt text]">+ </div>+ </div>+</section>+```++### Full-Width Image Hero Structure+```html+<section class="hero hero--full">+ <div class="hero__bg">+ <img src="[path]" alt="">+ </div>+ <div class="hero__overlay"></div>+ <div class="container">+ <div class="hero__content">+ <h1 class="hero__title">[Headline]</h1>+ <p class="hero__subtitle">[Subtitle]</p>+ <a href="/action" class="btn btn--primary btn--lg">[CTA]</a>+ </div>+ </div>+</section>+```++### Typography-Only Hero Structure+```html+<section class="hero hero--minimal">+ <div class="container">+ <div class="hero__content">+ <h1 class="hero__title">[Bold, Large Headline]</h1>+ <p class="hero__subtitle">[Contrasting smaller text]</p>+ <a href="/action" class="btn btn--primary btn--lg">[CTA]</a>+ </div>+ </div>+</section>+```++## Overlay Techniques for Text Readability++### Gradient Overlays (Directional)+```css+.hero__overlay {+ position: absolute;+ inset: 0;+ z-index: -1;+ background: linear-gradient(+ to right,+ rgba(0, 0, 0, 0.8) 0%,+ rgba(0, 0, 0, 0.4) 50%,+ transparent 100%+ );+}+```++### Brand-Tinted Overlays+```css+.hero__overlay {+ position: absolute;+ inset: 0;+ z-index: -1;+ background: rgba(var(--primary-rgb), 0.7);+}+```++### Text Shadow (Alternative to Overlay)+```css+.hero__title {+ text-shadow:+ 0 2px 4px rgba(0, 0, 0, 0.3),+ 0 4px 8px rgba(0, 0, 0, 0.2);+}+```++## Responsive Behaviour++```css+.hero__title {+ font-size: clamp(2rem, 6vw, 4rem);+}++/* Mobile: stack buttons vertically */+@media (max-width: 640px) {+ .hero__actions {+ flex-direction: column;+ gap: var(--space-4);+ }+ .hero__actions .btn {+ width: 100%;+ }+}++/* Split hero: stack on mobile */+@media (max-width: 768px) {+ .hero--split .container {+ grid-template-columns: 1fr;+ }+ .hero--split .hero__image {+ order: -1;+ }+}+```++## Dark Mode Considerations++```css+.hero__title { color: var(--foreground); }+.hero__subtitle { color: var(--muted-foreground); }++.dark .hero__overlay {+ background: linear-gradient(+ to right,+ rgba(0, 0, 0, 0.9) 0%,+ rgba(0, 0, 0, 0.6) 50%,+ rgba(0, 0, 0, 0.3) 100%+ );+}++.dark .hero--minimal {+ background: var(--card);+}+```++## Execution Guidelines++1. **Start with content** — Write actual headline, subheadline, and CTA copy before designing+2. **Choose your dominant element** — Decide what leads based on the principles above+3. **Create hierarchy** — One thing most prominent, one thing second, everything else supports+4. **Design for mobile first** — The vertical stack forces you to prioritise+5. **Add desktop layout** — Enhance the mobile design, don't redesign from scratch+6. **Test contrast and readability** — Especially text over images+7. **Remove decoration** — Take away anything that doesn't serve the goal+8. **Check against anti-patterns** — Does this look like it came from a template?diff --git a/skills/web-design-patterns/references/testimonial-patterns.md b/skills/web-design-patterns/references/testimonial-patterns.mdnew file mode 100644index 00000000..4b4f230f--- /dev/null+++ b/skills/web-design-patterns/references/testimonial-patterns.md@@ -0,0 +1,202 @@+# Testimonial Design Principles++Design principles for social proof that persuades without feeling manipulative or templated.++---++## 1. Social Proof Psychology++### Why Testimonials Work (When Done Right)++**Specificity beats generality**+- "Fixed our leak in 2 hours" is more credible than "Great service!"+- Details = believability: times, locations, problems, results++**Named, identifiable people are more credible**+- "Sarah Mitchell, Homeowner in Maitland" > "John D."+- People trust reviews from people they can verify exist++**Relevant context matters**+- The reviewer's situation should match the visitor's situation+- Match the review's context to the page's context++**Quality over quantity**+- One detailed story beats ten "5 stars great service" reviews+- If you only have weak testimonials, you're better off not showing any++---++## 2. Lead-Gen vs Client Sites: Critical Distinction++### Client Sites (You Have Real Customers)++**Pull from actual reviews:**+- Google Business Profile reviews+- Facebook reviews+- Industry-specific platforms (TrueLocal, etc.)+- Link back to the source platform for verification++**Use real names and real photos:**+- Full names when possible (or first name + last initial)+- No stock photography — ever++**Show verification:**+- "Read more on Google" link+- Platform badges (Google, Facebook)+- Star rating that matches the platform+- Review date++### Lead-Gen Sites (No Real Customers Yet)++**DO NOT fabricate testimonials.** It's unethical and can damage trust if discovered.++**Instead, use:**+- **Service promise statements**: "We guarantee same-day response"+- **Platform badges with transparency**: Show Google Reviews badge even with zero reviews+- **Trust signals**: Industry certifications, licences, insurance details+- **Anonymised case studies**: Describe a real problem you solved without identifying the client+- **Your own voice**: Founder story, commitment, values++---++## 3. Design Approach Selection++### Single Featured Quote++**When to use:** One powerful, detailed testimonial. Homepage hero or landing page.++**Design principles:**+- Make it big, editorial, impactful+- Centre stage treatment+- Large, readable text+- Real photo if available, otherwise just the quote+- Don't diminish a great quote with a tiny card++### Grid of Quotes++**When to use:** 3-6 good testimonials. Dedicated testimonials section.++**Design principles:**+- Vary the formatting (one featured, rest standard)+- Don't make them all identical cards+- Mix with/without photos+- Different length quotes create visual rhythm+- Avoid perfect symmetry++### Integrated Quotes (Pull Quotes)++**When to use:** Long-form content (about pages, service descriptions). Quote directly supports nearby content.++**Design principles:**+- Pull the quote out of content flow+- Position near relevant content+- Feels most natural and least "marketing-y"++### Logo Wall + Quotes++**When to use:** B2B sites. Enterprise/professional services. Recognisable client brands.++**Design principles:**+- Client logos establish credibility+- One featured quote adds specificity+- Grey out logos for subtlety+- Only works if logos are recognisable++### NO CAROUSELS++**Never use testimonial carousels:**+- Carousels hide content — users see 1 out of 5 testimonials+- Users don't click carousel controls (<1% interaction)+- Auto-rotating prevents reading at own pace+- If you have 5 testimonials, show all 5 or curate the best 3++**If you must have motion:**+- Continuous scroll marquee (background texture, not primary content)+- User-controlled scroll (not auto-rotating)+- Pause on hover, respect prefers-reduced-motion++---++## 4. Content Principles++### Editing for Impact++**Keep it brief:** Brief quotes get read; paragraphs get skipped.++**Include the problem, not just praise:**+- "They fixed our emergency leak at midnight" > "Great service"+- Problem + solution = story++**Star ratings: only if real and verifiable:**+- Don't show stars unless from a real platform+- Link to the source+- All 5-star ratings look fake++**Photos of real people dramatically increase trust:**+- Real photos = huge credibility boost+- Stock photos = huge credibility loss+- No photo is better than fake photo++**Attribution standards:**+- Minimum: First name + last initial + location ("Sarah M., Maitland")+- Better: Full name + location + context ("Sarah Mitchell, Homeowner in Maitland")+- Best: Above + photo + date+- Never: "A satisfied customer" or "Happy client"++---++## 5. Placement++### Where Testimonials Work Best++**After presenting services:** You've explained what you do, now prove it works.++**Near CTA sections:** Reduce last-minute doubt. "Other people trusted us, you can too."++**Within service descriptions:** Pull quote format. "We offer 24/7 emergency service" -> testimonial about midnight call-out.++**Not necessarily in their own section:** Testimonials can be woven throughout. Context-relevant placement often works better.++---++## 6. Anti-Patterns++- **Carousel that auto-rotates** — Users can't read at their own pace+- **All testimonials saying the same thing** — Curate for variety: speed, quality, price, communication+- **Stock photo headshots** — Destroys all credibility+- **"John D." level anonymity** — Suggests you're hiding something+- **Three identical card-shaped testimonials** — Template-y, no visual hierarchy+- **All 5-star ratings** — Real reviews have variation; 4.7 is more believable than 5.0++---++## 7. When You Don't Have Testimonials++### Don't Fake Them++Fake testimonials are unethical, potentially illegal, easily discovered, and damage trust permanently.++### Use These Instead++- **Credentials and certifications**: Licensed, insured, industry memberships+- **Guarantees**: Money-back, warranty details, "If we're late, the visit is free"+- **Process descriptions**: Show how you work, what customers can expect+- **Link to review platform**: Even empty, shows transparency+- **Anonymised case studies**: "A homeowner in the Newcastle area contacted us with..."+- **Your own voice**: Founder story, why you started, your commitment++---++## Quick Decision Guide++| Situation | Recommended Approach |+|-----------|---------------------|+| One powerful testimonial | Single featured quote, make it big |+| 3-6 good testimonials | Grid with variety (one featured, rest standard) |+| Long-form content | Pull quotes integrated with content |+| B2B / enterprise | Logo wall + featured quote |+| Many reviews (20+) | Curate best 5-6 + link to "see all on Google" |+| Homepage | Featured testimonial + stats if available |+| Service page | Relevant testimonial near CTA |+| No real testimonials | Service promises, guarantees, process description |+| Lead-gen site | Trust signals, link to empty review profile |diff --git a/skills/web-design-patterns/references/trust-signals.md b/skills/web-design-patterns/references/trust-signals.mdnew file mode 100644index 00000000..02efda7a--- /dev/null+++ b/skills/web-design-patterns/references/trust-signals.md@@ -0,0 +1,229 @@+# Trust Signals: A Principle-Based Design Guide++Strategic trust signal design — not copy-paste patterns.++---++## 1. Trust Psychology: Why Signals Work++### The Core Principle+Trust signals reduce perceived risk at the moment of decision. They answer the user's subconscious question: "Is this safe?"++### When Trust Matters Most+- **High stakes**: Emergency services, medical, legal, financial+- **First-time visitors**: No prior relationship to rely on+- **Point of commitment**: Near forms, phone numbers, purchase buttons+- **Competitive markets**: When alternatives are easy to find++### Diminishing Returns+Trust signals have a ceiling:+- **3-4 strong signals** beat 10 weak ones+- **Specific proof** beats generic assurances+- **One verified credential** beats five unverifiable badges++### Dark Patterns to Avoid+Users have developed immunity to fake trust signals:+- Stock photography "badges"+- Generic star ratings with no link to reviews+- "As seen in" logos without actual coverage+- Suspiciously round numbers ("exactly 10,000 customers")++---++## 2. The Trust Hierarchy++### Tier 1: Specific, Verifiable Evidence (Strongest)+Can be fact-checked. High credibility cost to fake.+- "QBCC License #1234567" (user can look it up)+- "4.8 stars (127 Google Reviews)" + link to Google profile+- "Serving Brisbane since 1998" (verifiable via business records)++### Tier 2: Third-Party Validation+Someone else vouched for you.+- Real customer testimonials with full names and context+- Client logos from recognised brands (with permission)+- Industry awards from legitimate organisations+- Press mentions from real publications++### Tier 3: Self-Claimed Credentials+Credible, but you're the one saying it.+- "Fully licensed and insured"+- "Family owned and operated"+- "All technicians background checked"++### Tier 4: Generic Assurances (Weakest)+Better than nothing. Sets minimum expectations.+- "Quality guaranteed"+- "Friendly service"+- "Fast response"++**The Hierarchy Rule**: Always prefer one Tier 1 signal over three Tier 4 signals.++---++## 3. Context-Sensitive Trust++### Emergency Services (Plumbing, HVAC, Electrical, Locksmith)+**What matters**: Speed of response, availability, local presence+**What matters less**: Awards, lengthy testimonials, team bios+**Placement**: Hero area, near phone number++### Professional Services (Lawyers, Accountants, Consultants)+**What matters**: Credentials, experience, case studies/outcomes+**What matters less**: Generic guarantees, speed claims+**Placement**: Mid-page near services, in team bios, before contact form++### E-commerce+**What matters**: Reviews, returns policy, payment security, shipping info+**What matters less**: Company history, founder bios+**Placement**: Product pages (reviews), checkout (security), footer (returns)++### Local Trades (Builders, Landscapers, Renovators)+**What matters**: Licence numbers, insurance, longevity, local recognition+**What matters less**: National certifications, corporate partnerships+**Placement**: Footer (licence), near contact form (insurance)++### Real Estate+**What matters**: Market knowledge, recent sales, local expertise+**What matters less**: Generic "customer satisfaction"+**Placement**: Agent pages (stats), suburb pages (local knowledge)++---++## 4. Lead-Gen vs Client Sites: The Critical Distinction++### Client Sites (Real Business Data)+Use Tier 1 and Tier 2 signals aggressively. Specificity builds authority.++**Example**:+- Hero: "Serving Gold Coast since 1985" + "QBCC #1234567"+- Pre-CTA: "4.9 stars (284 Google Reviews)" with link+- Footer: Master Plumbers Association badge++### Lead-Gen Sites (No Real Business Data)+Use Tier 3 and Tier 4 signals only. Stay generic, focus on process and promises.++**Example**:+- Hero: "Your Local [Location] Experts" + "Fast Response"+- Pre-CTA: "Licensed & Insured" + "Satisfaction Guaranteed"+- Footer: "Proudly Serving [Region]"++### The Non-Negotiable Rule++**On lead-gen sites, NEVER fabricate:**+- Star ratings or review counts+- Specific years in business+- Licence or ABN numbers+- Named individuals or team members+- Exact customer counts++### Safe Lead-Gen Trust Language++| Do Say | Don't Say |+|--------|-----------|+| "Experienced Team" | "25 Years Experience" |+| "Highly Rated" | "4.9 Stars (127 Reviews)" |+| "Licensed & Insured" | "QBCC License #1234567" |+| "Local Experts" | "Est. 1998" |+| "Trusted by Locals" | "10,000+ Happy Customers" |++---++## 5. Placement Strategy++### Near CTAs (Decision Point)+**Why**: Reduces friction at the moment of commitment.+**What to use**: Quick-scan list, review summary, guarantee statement.++### Early on Page (First Impression)+**Why**: First-time visitors need immediate reassurance.+**What to use**: Stats bar, compact trust list below hero, single powerful credential.++### In Context (Service-Specific Trust)+**Why**: Trust is more persuasive when paired with relevant content.+**What to use**: Certification next to the service it relates to, testimonial near the service it references.++### Footer (Foundation Trust)+**Why**: Expected location for credentials.+**What to use**: Licence numbers, industry memberships, physical address and ABN.++### Don't Put Trust Signals+- In a sticky header bar (annoying, blocks content)+- On every page in the exact same spot (redundant)+- In modal popups (interruptive, feels desperate)+- As the first thing above hero content (feels defensive)++---++## 6. Anti-Sameness: Breaking the Default Pattern++### Trust Doesn't Need Its Own Section++**Default** (bad):+```+[Hero]+[Trust Section with 4 Icons]+[Services]+[CTA]+```++**Better** (distributed):+```+[Hero with "Licensed & Insured" under headline]+[Services with credentials woven into descriptions]+[CTA with "No Call-Out Fee" near button]+[Footer with licence number]+```++### Weave Trust Into Other Sections++**In hero subheadline**: "QBCC Licensed Plumbers Serving Gold Coast Since 1998"+**In service descriptions**: "Gas Safe certified technicians handle all residential and commercial gas work."+**In testimonials section**: "See our 4.9-star rating from 180+ Google reviews" with link+**In footer**: Contact info + "Master Plumbers Member #12345" + "QBCC #1234567"++### One Powerful Proof Point Beats Six Generic Ones++**Weak**: 24/7 Available, Fast Service, Quality Work, Licensed Team, Affordable Rates, Satisfaction Guaranteed+**Strong**: "4.8 rating from 284 verified Google reviews" [link to reviews]++---++## 7. What to NEVER Do++- **Don't fabricate specifics** — legal liability, credibility destruction+- **Don't claim "100% Satisfaction" without backing it up** — specific guarantees build trust+- **Don't use stock badge icons** — generic shield with checkmark screams "template"+- **Don't use persistent dark overlay trust bar** — banner blindness, wastes screen space+- **Don't copy-paste the same trust section on every page** — trust should be contextual+- **Don't lead with trust** — starting with trust before the main message signals insecurity++---++## Quick Reference: Trust Signal Decision Tree++### Step 1: Is this a lead-gen site or client site?+- **Lead-gen**: Use generic only (Tier 3-4)+- **Client site**: Use real data (Tier 1-2)++### Step 2: What real data do you have?+- Licence numbers -> footer, near contact+- Years in business -> hero subheadline+- Google reviews -> near CTA, with link+- Certifications -> mid-page or footer+- Client logos -> case studies section++### Step 3: What industry?+- Emergency services -> speed and availability+- Professional services -> credentials and experience+- E-commerce -> reviews and returns+- Local trades -> licence, insurance, longevity++### Step 4: Where on the page?+- Hero area: One strong credential or stat+- Near CTA: Quick trust list or guarantee+- Footer: Licence numbers and memberships++### Step 5: Distributed or isolated?+- If all trust is in one section, break it up+- Weave into hero, services, testimonials, footer