Community寫作與編輯github.com

Azhi-ss/html-effectiveness

這項技能教導 Cursor 與 Claude Code 產生適用於空間、平行、可比較或互動內容的單一 HTML 檔案,包含 9 個類別、20 種模式與 12 個現成模板,靈感來自 Thariq Shihipar 的「HTML 的非凡效能」。

html-effectiveness 是什麼?

這項技能旨在讓 AI 代理(如 Cursor 與 Claude Code)直接產出高品質的單一 HTML 檔案,特別適合呈現空間、平行、可比較或互動式的內容。它涵蓋 9 大類別(例如資訊面板、比較表格、地圖、時間軸等),提供 20 種設計模式與 12 個可直接使用的模板,大幅降低開發者在產生視覺化內容時所需的提示工程負擔。靈感源自 Thariq Shihipar 提出的「HTML 的非凡效能」概念,強調利用 HTML 本身的結構與 CSS/JavaScript 實現豐富的互動性。支援主流 AI 編碼工具,無需額外套件,只要給出明確的內容與類別,代理即可自動輸出完整的自包含 HTML。

相容平台✓Claude Code~Codex CLI✓Cursor
npx skills add Azhi-ss/html-effectiveness

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

html-effectiveness 是做什麼的?

代理技能,教導 Cursor 與 Claude Code 為空間、平行、可比較或互動式內容輸出單一 HTML 檔案。包含 9 個類別、20 種模式、12 個現成模板。靈感來自 Thariq Shihipar 的「HTML 的非凡效能」。

使用方式

在 Cursor 或 Claude Code 的對話中,明確說明你想要產生的內容類型(例如:「請用單一 HTML 製作一個比較表格,顯示這三款手機的規格」),代理便會自動套用對應的模式產出可運作的 HTML 頁面。

類別與模式

  1. 資訊面板 – info-panel 模式:用於展示關鍵數據摘要。
  2. 比較表格 – comparison-table 模式:適合並排比較多個項目。
  3. 地圖視覺化 – map-visualization 模式:搭配 GeoJSON 與 Leaflet 顯示地理資料。
  4. 時間軸 – timeline 模式:呈現事件順序。
  5. 互動圖表 – interactive-chart 模式:利用 Chart.js 或 D3.js 繪製動態圖表。
  6. 網格畫廊 – grid-gallery 模式:展示圖片或卡片。
  7. 儀表板 – dashboard 模式:組合多個小組件。
  8. 步驟引導 – step-guide 模式:逐步解說流程。
  9. 文件檢視器 – document-viewer 模式:內嵌 PDF 或 Markdown 渲染。

模板清單

以下為 12 個現成模板,可直接要求代理套用:

  • template-1-info-panel.html
  • template-2-comparison-table.html
  • template-3-map.html
  • template-4-timeline.html
  • template-5-chart.html
  • template-6-gallery.html
  • template-7-dashboard.html
  • template-8-step-guide.html
  • template-9-document-viewer.html
  • template-10-accordion.html
  • template-11-tabs.html
  • template-12-modal.html

技術需求

  • 所有輸出為單一自包含 HTML 檔案(無需外部資源,除非是 CDN 引用)。
  • 支援主流瀏覽器(Chrome、Firefox、Safari、Edge)。
  • 可使用 CSS 框架(如 Tailwind CDN)或純 CSS。
  • JavaScript 互動功能以內嵌方式實現。

靈感來源

受 Thariq Shihipar 的「unreasonable effectiveness of HTML」啟發,強調 HTML 作為內容承載格式的強大與簡潔。

相關技能