Communitygithub.com

patdev495/watch-subtitles

代號架構、元件規格與投影片生成。三層代號(原始→語意→元件)、CSS 變數、間距/排版比例、元件規格、策略性投影片創作。用於設計代號、系統性設計、符合品牌的簡報。

watch-subtitles 是什麼?

這個技能是一個全面的設計代號系統與品牌簡報生成工具。它圍繞一個三層代號架構(原始代號→語意代號→元件代號)運作,讓設計團隊能系統性地定義色彩、間距、排版等設計變數。技能支援 CSS 變數系統、Tailwind 主題配置,並提供腳本自動產生代號 CSS 與驗證程式碼中是否有硬編碼值。除了靜態設計系統,它還包含一個強大的投影片系統,能根據目標、情緒與上下文,透過 BM25 搜尋與策略決策 CSV 檔案,生成符合品牌的 HTML 簡報。投影片整合 Chart.js 圖表、動畫與 Duarte Sparkline 模式打破技巧,確保每張投影片都引人入勝。此技能支援 ui-ux-designer 與 frontend-developer 代理,適合需要系統化設計系統或快速產出品牌簡報的團隊。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/patdev495/watch-subtitles/tree/HEAD/.agents/skills/design-system

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

設計系統

代號架構、元件規格、系統性設計、投影片生成。

使用時機

  • 設計代號建立
  • 元件狀態定義
  • CSS 變數系統
  • 間距/排版比例
  • 設計到程式碼交接
  • Tailwind 主題配置
  • 投影片/簡報生成

代號架構

載入:references/token-architecture.md

三層結構

原始(原始值)
       ↓
語意(目的別名)
       ↓
元件(特定於元件)

範例:

/* 原始 */
--color-blue-600: #2563EB;

/* 語意 */
--color-primary: var(--color-blue-600);

/* 元件 */
--button-bg: var(--color-primary);

快速開始

產生代號:

node scripts/generate-tokens.cjs --config tokens.json -o tokens.css

驗證使用:

node scripts/validate-tokens.cjs --dir src/

參考資料

主題檔案
代號架構references/token-architecture.md
原始代號references/primitive-tokens.md
語意代號references/semantic-tokens.md
元件代號references/component-tokens.md
元件規格references/component-specs.md
狀態與變體references/states-and-variants.md
Tailwind 整合references/tailwind-integration.md

元件規格模式

屬性預設懸停活躍停用
背景primaryprimary-darkprimary-darkermuted
文字whitewhitewhitemuted-fg
邊框nonenonenonemuted-border
陰影smmdnonenone

腳本

腳本用途
generate-tokens.cjs從 JSON 代號設定生成 CSS
validate-tokens.cjs檢查程式碼中是否有硬編碼值
search-slides.pyBM25 搜尋 + 上下文推薦
slide-token-validator.py驗證投影片 HTML 是否符合代號規範
fetch-background.py從 Pexels/Unsplash 取得圖片

範本

範本用途
design-tokens-starter.json含三層結構的入門 JSON

整合

與品牌整合: 從品牌色彩/排版中提取原始代號 與 UI 樣式整合: 元件代號 → Tailwind 配置

技能相依性: brand, ui-styling 主要代理: ui-ux-designer, frontend-developer

投影片系統

使用設計代號 + Chart.js + 上下文決策系統,生成符合品牌的簡報。

事實來源

檔案用途
docs/brand-guidelines.md品牌識別、語氣、色彩
assets/design-tokens.json代號定義(原始→語意→元件)
assets/design-tokens.cssCSS 變數(在投影片中匯入)
assets/css/slide-animations.cssCSS 動畫庫

投影片搜尋(BM25)

# 基本搜尋(自動偵測領域)
python scripts/search-slides.py "投資者簡報"

# 領域特定搜尋
python scripts/search-slides.py "問題激化" -d copy
python scripts/search-slides.py "營收成長" -d chart

# 上下文搜尋(進階系統)
python scripts/search-slides.py "問題投影片" --context --position 2 --total 9
python scripts/search-slides.py "行動呼籲" --context --position 9 --prev-emotion frustration

決策系統 CSV

檔案用途
data/slide-strategies.csv15 種簡報結構 + 情緒曲線 + 主節奏
data/slide-layouts.csv25 種版面 + 元件變體 + 動畫
data/slide-layout-logic.csv目標 → 版面 + 打破模式標記
data/slide-typography.csv內容類型 → 排版比例
data/slide-color-logic.csv情緒 → 色彩處理
data/slide-backgrounds.csv投影片類型 → 圖片類別(Pexels/Unsplash)
data/slide-copy.csv25 種文案公式(PAS、AIDA、FAB)
data/slide-charts.csv25 種圖表類型,附 Chart.js 配置

上下文決策流程

1. 解析目標/上下文
        ↓
2. 搜尋 slide-strategies.csv → 取得策略 + 情緒節奏
        ↓
3. 針對每張投影片:
   a. 查詢 slide-layout-logic.csv → 版面 + 打破模式
   b. 查詢 slide-typography.csv → 字型比例
   c. 查詢 slide-color-logic.csv → 色彩處理
   d. 查詢 slide-backgrounds.csv → 圖片(如需)
   e. 套用 slide-animations.css 中的動畫類別
        ↓
4. 使用設計代號生成 HTML
        ↓
5. 使用 slide-token-validator.py 驗證

模式打破(Duarte Sparkline)

進階簡報在情緒之間交替以維持參與度:

「現狀是什麼」(沮喪)↔「可以成為什麼」(希望)

系統在 1/3 和 2/3 位置計算模式打破。

投影片要求

所有投影片必須:

  1. 匯入 assets/design-tokens.css - 單一事實來源
  2. 使用 CSS 變數:var(--color-primary)、var(--slide-bg) 等
  3. 圖表使用 Chart.js(不可使用僅 CSS 的長條圖)
  4. 包含導航(鍵盤方向鍵、點擊、進度條)
  5. 內容置中對齊
  6. 專注於說服/轉換

Chart.js 整合

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>

<canvas id="revenueChart"></canvas>
<script>
new Chart(document.getElementById('revenueChart'), {
    type: 'line',
    data: {
        labels: ['九月', '十月', '十一月', '十二月'],
        datasets: [{
            data: [5, 12, 28, 45],
            borderColor: '#FF6B6B',  // 使用品牌珊瑚色
            backgroundColor: 'rgba(255, 107, 107, 0.1)',
            fill: true,
            tension: 0.4
        }]
    }
});
</script>

代號合規

/* 正確 - 使用代號 */
background: var(--slide-bg);
color: var(--color-primary);
font-family: var(--typography-font-heading);

/* 錯誤 - 硬編碼 */
background: #0D0D0D;
color: #FF6B6B;
font-family: 'Space Grotesk';

參考實作

包含所有功能的運作範例:

assets/designs/slides/claudekit-pitch-251223.html

指令

/slides:create "ClaudeKit Marketing 的 10 張投影片投資者簡報"

最佳實踐

  1. 元件中絕不使用原始十六進位碼 - 一律參考代號
  2. 語意層可啟用主題切換(淺色/深色)
  3. 元件代號可啟用每個元件的自訂
  4. 使用 HSL 格式以便控制透明度
  5. 記錄每個代號的用途
  6. 投影片必須匯入 design-tokens.css 並獨佔使用 var()

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

patdev495/watch-subtitles

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

patdev495/watch-subtitles

Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

patdev495/watch-subtitles

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.

patdev495/watch-subtitles

Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.

patdev495/watch-subtitles

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

patdev495/watch-subtitles

UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.

相關技能