Communitygithub.com

Varnan-Tech/opendirectory

建立專業設計的 B2B SaaS 電子書(HTML + CSS),可匯出為適合印刷的 PDF。支援 3–10 頁、9 種樣式預設與 11 種頁面佈局類型。

opendirectory 是什麼?

這個技能讓 AI 代理能夠建立專業的 B2B SaaS 電子書,例如引導磁鐵、閘控指南、培育資產和白皮書。它將 HTML + CSS 轉換為適合印刷的 PDF,並提供 3 到 10 頁的長度。使用者可以在 Claude Code、Cursor 或其他支援基於技能的代理的平台上觸發它,透過要求如「建立電子書」、「設計引導磁鐵」、「製作 PDF 指南」等提示。該技能會引導使用者完成一個結構化的流程:收集主題、目標受眾、期望行動和內容等詳細資訊;詢問頁數與風格偏好;根據預設模板制定內部章節架構;產生與頁面佈局類型對應的內容草稿;最後產出一個自包含的 HTML 檔案,其中包含內嵌 CSS、可擴充字型(使用 clamp())以及用於 Chrome 列印到 PDF 的背景色彩修正。其設計規則強調獨特性:禁止使用泛用的 AI 模板(例如 Inter 字型、紫到藍漸層),而是要求為每個電子書設定獨特的調性、標誌性元素和背景系統。它強制執行視覺節奏以避免連續純文字頁面,並加入三點式 CTA 架構以實現有效的轉換。這個技能支援多種佈局類型,包括封面、目錄、章節介紹、文字欄(單欄與雙欄)、側邊欄、引言框、統計圖表、關鍵重點和結尾行動呼籲。它會自動為 6 頁以上的電子書包含頁尾(頁碼 + 品牌名稱),並在整份文件中維持嚴格的文字密度限制。最終輸出是一個單一的、完全自包含的 HTML 檔案,可直接透過列印工具匯出為 PDF。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/Varnan-Tech/opendirectory/tree/main/skills/graphic-ebook

在你喜歡的 AI 中提問

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

說明文件

graphic-ebook

建立專業設計的 B2B SaaS 電子書 — 引導磁鐵、閘控指南、培育資產、白皮書。HTML + CSS → 適合印刷的 PDF。3–10 頁。

關鍵規則

在任何步驟之前,這些規則是絕對的:

  1. 每一頁都必須適合 A4 畫布(1200×1697px)。不行有內容溢出。
  2. 所有可縮放字型大小使用 clamp()。僅邊框或結構元素可使用固定像素。
  3. 單一自包含的 HTML。所有 CSS 內嵌。僅字型 CDN <link> 為外部依賴。
  4. 切勿在聊天中傾倒 HTML。 儲存到檔案後,只顯示摘要。
  5. 正文文字為主要。在文字欄和側邊欄頁面上,行高 ≥ 1.75。單欄正文最大寬度 ≤ 65ch。
  6. 不允許通用 AI 模板:顯示字型不可用 Inter,背景不可用紫到藍漸層搭配白色,結尾不可用「感謝您」。
  7. 視覺節奏:絕不連續放置 2 頁以上的文字欄頁面。必須用章節介紹、引言框或統計圖表來間隔。
  8. 在產生 HTML 之前,必須決定設計方向: 一個調性、一個標誌性元素、一個背景系統。使用通用模板 = 失敗。每本電子書必須根據其目標受眾和主題進行獨特設計,而不是套用範本。
  9. * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } — 強制性全域 CSS。沒有這條,Chromium 在 PDF 中會移除所有背景顏色。
  10. 除封面外,每一頁都必須有頁尾:頁碼 + 品牌名稱。絕對定位在每個 .slide 的底部。

步驟 1:簡要需求收集

四個必要欄位。如果使用者的提示中已包含全部四項:跳至步驟 2。

如果有任何缺失,請精確地詢問:

「為了建立您的電子書,我需要四項資訊:

  1. 主題 — 電子書的內容是什麼?(請具體說明:「降低 CAC 的五種方法」而非「行銷技巧」)
  2. 目標受眾 — 讀者是誰?(職位、公司規模、痛點:「在 50–500 人規模 SaaS 公司、正在與客戶流失奮戰的客戶成功經理」)
  3. 期望行動 — 您希望讀者在閱讀後做什麼?(預約示範、下載範本、分享給團隊)
  4. 內容 — 您是否有現有內容,或者我應該根據主題來草擬?」

停下來等待。不要讀取參考檔案。不要產生任何 HTML 或大綱。


步驟 2:完整需求收集

將所有 9 個問題放在同一則訊息中詢問,並進行分組。如果跳過則套用預設值。

內容

  1. 頁數 — 3–5(快速指南 / 核對表)/ 6–8(標準指南)/ 9–10(深入探討)(預設:6)
  2. 關鍵重點 — 讀者在閱讀後應知道或做到的 3–5 件事(影響章節結構)
  3. 品牌名稱 — 封面和頁尾要顯示的公司或產品名稱(或「略過」)
  4. 品牌標誌 — URL 或「無」

設計 5. 風格 — clean-slate / midnight-editorial / matt-gray / product-minimal / mint-pixel-corporate / warm-earth / brutalist / magazine-red / soft-cloud / 「顯示選項」(預設:clean-slate) 6. 章節數量 — 主要區段有幾個?(預設:根據頁數推導)

輸出 7. CTA 細節 — 預約示範 / 訂閱電子報 / 下載範本 / 其他(預設:「預約示範」) 8. 聯絡資訊 — 結尾 CTA 頁面所需的電子郵件與 URL(或「我稍後再加入」) 9. Slug — 檔案名稱 slug(例如:「reduce-churn-guide-2025」;如果跳過則從主題推導)

預設值:

問題預設值
頁數6
關鍵重點從主題推導
品牌名稱無
品牌標誌無
風格clean-slate
章節數量根據頁數推導
CTA 細節預約示範
聯絡資訊佔位符(在核對表中標記)
Slug主題的 kebab-case

如果風格 =「顯示選項」: 產生 3 個單頁 HTML 預覽(僅封面),分別儲存到 .claude-design/previews/style-a.html、style-b.html、style-c.html。自動開啟每一個。在步驟 3 之前請使用者選擇。


步驟 3:內部架構

內部推導。絕不向使用者顯示。

章節 → 頁面對應:

頁數典型結構
3封面 + [1 個內容頁] + 結尾 CTA
4封面 + [1 個章節介紹 + 1 個文字欄] + 結尾 CTA
5封面 + 目錄 + [1 個章節介紹 + 1 個文字欄] + 結尾 CTA
6封面 + 目錄 + [2 個章節介紹 + 1 個文字欄] + 結尾 CTA
8封面 + 目錄 + [3 個章節介紹 + 2 個內容頁] + 結尾 CTA
10封面 + 目錄 + [4 個章節介紹 + 3 個內容頁] + 關鍵重點 + 結尾 CTA

目錄規則: 6 頁以上的電子書包含目錄。3–5 頁的電子書,在封面頁使用「內容一覽」項目清單,或完全跳過。

三點式 CTA 架構(適用於 6 頁以上的電子書):

  1. 開場 CTA(第 2 頁之後)— 微妙的一行內嵌提及:「在 [網址] 探索我們的 [工具]」
  2. 書中 CTA(在統計圖表或章節介紹之後)— 小型 .callout--stat 或 .callout--tip 盒子,含一行 CTA
  3. 結尾 CTA(最後一頁)— 全頁,主要轉換行動

視覺節奏檢查: 如果計畫中出現 2 頁以上連續的 text-column 頁面 → 在繼續前在它們之間插入 quote-callout 或 stat-grid。

設計方向(從風格預設 + 目標受眾推導 — 絕不向使用者顯示):

決策推導來源
調性目標受眾期望什麼情感基調?(權威、編輯風格、充滿活力、冷靜、溫暖⋯)
標誌性元素一個一致使用的視覺手法:超大裝飾數字、對角線條、點狀網格覆蓋、封面漸層網格、規則線條、幾何形狀出血。選擇一個。使用它。
背景系統各頁背景如何變化?封面和章節介紹最獨特。內容頁較平實但不能全白。結尾 CTA 為深色或全強調色反轉。不能有連續 3 頁以上背景完全相同。
動畫風格.reveal 動畫做什麼?選擇一個並保持一致:translateY(16px) → 0、scale(0.97) → 1、translateX(-12px) → 0。交錯延遲間隔 0.1 秒。
難忘細節讀者會記得設計中的哪一件事?在撰寫任何 CSS 之前先命名它。

如果僅從風格預設無法推導出明確方向,請問自己:對於這個特定目標受眾和主題,頂級設計機構會產出什麼?然後執行那個方案。

正文密度限制:

  • 文字欄 1 欄:每頁最多 180–250 字
  • 文字欄 2 欄:最多 280–380 字(每欄 140–190)
  • 側邊欄:主要部分 140–180 字 + 側邊欄最多 70 字
  • 章節介紹:40–60 字(僅預告)
  • 引言框:30–45 字
  • 統計圖表:3–6 個指標,最少標籤

步驟 4:頁面結構

在規劃前先讀取 references/page-library.md。

輸出一個帶有每頁 [佈局類型] 標籤的編號清單。以 6 頁為例:

Page 1: [cover] — 標題、副標題、品牌
Page 2: [toc] — 3 個章節標題 + 頁碼
Page 3: [chapter-intro] — 第 1 章開場
Page 4: [text-column] — 第 1 章正文(1 欄)
Page 5: [stat-grid] — 4 個關鍵指標
Page 6: [closing-cta] — 預約示範 CTA + 聯絡資訊

在步驟 5 之前與使用者確認。


步驟 5:內容草稿

以純文字(無 HTML)撰寫每頁文案。各佈局類型的規則:

  • cover:標題(≤10 個字,以價值或張力為開端 — 不是通用標籤)+ 副標題(≤15 個字)+ 可選的分類標籤 + 品牌名稱
  • toc:章節標題(每個 ≤6 個字)+ 對應的章節編號。乾淨的編號清單。
  • chapter-intro:章節編號(裝飾性)+ 章節標題(≤8 個字)+ 預告段落(2–3 句)
  • text-column (1欄):區段標題 + 正文段落。最多 250 字。散文優先於項目符號。每一句話都值得存在。
  • text-column (2欄):相同規則,每欄 140–190 字。用於比較、步驟配對、雙重視角。
  • text-sidebar:主要正文(140–180 字)+ 側邊欄提示類型(提示 / 警告 / 統計 / 引言 / 核對表),最多 70 字
  • quote-callout:精選引言 ≤40 字 + 出處(姓名、職位、公司或來源)
  • stat-grid:3–6 個指標 — 數字 + 標籤 + 一行背景說明。可選:下方加一句敘述。
  • key-takeaways:5–8 個重點,每個 ≤15 字,盡可能使用祈使句
  • closing-cta:標題 ≤5 字(祈使句)+ 一句正文 + CTA 行動 + 電子郵件 + URL(兩者皆必填)

禁用詞(無例外):「強大」、「無縫」、「改變遊戲規則」、「利用」、「創新」、「革命性」、「轉型」、「尖端」、「穩健」、「解鎖」、「可擴展」(作為填充詞)。


步驟 6:HTML 產生

在產生之前讀取所有這些文件。不要改寫或摘要它們 — 請讀取實際檔案。

此技能的參考文件:

  • references/design-system.md
  • references/page-library.md
  • references/style-presets.md

捆綁資產(確切路徑 — 將完整逐字內容包含在 <style> 區塊中):

  • assets/viewport-base.css — 捆綁在此技能目錄中

路徑解析: 所有前綴為 assets/ 或 scripts/ 的路徑都是相對於包含此 SKILL.md 檔案的目錄。在安裝後的 Claude Code 中:~/.claude/skills/graphic-ebook/assets/ 和 ~/.claude/skills/graphic-ebook/scripts/。在讀取前請從 SKILL.md 檔案位置解析實際路徑。

產生規則

  1. 單一自包含的 HTML。 所有 CSS 內嵌。僅字型 CDN <link> 為外部依賴。

  2. 包含 viewport-base.css 的完整逐字內容 在 <style> 區塊中。

  3. 在 viewport-base.css 之後加入 A4 直向覆寫(在同一個 <style> 區塊中):

/* A4 直向覆寫 */
html { scroll-snap-type: none; scroll-behavior: auto; }
.slide {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: none;
}
/* 關鍵:防止 Chromium 在 PDF 中移除背景 */
* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  1. **每一頁 = `<section class=

Individual skills in this repo

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

Varnan-Tech/opendirectory

Use when the user asks to generate a blog cover image, thumbnail, or article header. Automatically uses modern typography, brand logos, and Google Search grounding to create beautiful 16:9 images with Gemini 3.1 Flash Image Preview.

Varnan-Tech/opendirectory

World-class brand strategist and naming expert. Uses an interrogation-led discovery phase to extract your brand's DNA, then applies scientific naming frameworks (Phonosemantics) and automated multi-TLD domain checking.

Varnan-Tech/opendirectory

Use when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs.

Varnan-Tech/opendirectory

Use when the user wants to verify cold emails, enrich a lead list, or autonomously guess email addresses from a CSV using ValidEmail.co or the open-source Reacher engine.

Varnan-Tech/opendirectory

Competitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.

Varnan-Tech/opendirectory

Give it your product URL or description. It finds your top 5 competitors, runs three-track PR research across all of them (editorial, podcasts, communities), identifies which channels appear most frequently, looks up the journalist or host for each, and returns a tiered outreach list with story angles and ready-to-send cold pitch drafts tailored to your product. Use when asked to find PR opportunities, discover where competitors got featured, build a media outreach list, find which journalists cover my space, or get pitch templates for press coverage.

Varnan-Tech/opendirectory

Generate high-converting, deep-dive growth case studies in MDX format. Use this skill when asked to write a case study or blog post about a company's growth, tech stack, or product-led strategy. It handles the full pipeline (researching the company via Tavily, generating a 16:9 cover image, quality checking the draft, uploading assets to cloud storage, and pushing directly to the target repository).

Varnan-Tech/opendirectory

Scans your project for outdated npm, pip, Cargo, Go, or Ruby packages. Runs a CVE security audit. Fetches changelogs, summarizes breaking changes with Gemini, and opens one PR per risk group (patch, minor, major). Includes Diagnosis Mode for install conflicts. Use when asked to update dependencies, check for outdated packages, open dependency PRs, scan for package updates, audit for CVEs, or flag breaking changes in upgrades. Trigger when a user says "check for outdated packages", "update my dependencies", "open PRs for dependency updates", "scan for CVEs", or "which packages need upgrading".

Varnan-Tech/opendirectory

Generates and updates README.md and API reference docs by reading your codebase's functions, routes, types, schemas, and architecture. Uses graphify to build a knowledge graph first, then writes accurate docs from it. Use when asked to write docs, generate a README, document an API, update stale docs, create an API reference from code, add an architecture section, or document a project in any language. Trigger when a user says their docs are missing, outdated, or wants to document their codebase without writing it manually.

Varnan-Tech/opendirectory

Evaluates expired domain candidates against a target niche, scores them by topical relevance, historical activity level, and history cleanliness, then outputs a ranked shortlist with explainable reasoning and risk flags.

Varnan-Tech/opendirectory

Brutally honest developer-experience audit for a GitHub repo. Scores 10 DX dimensions (time-to-first-success, README clarity, visual proof, install, quick-start, docs, examples, community, trust, marketing), writes a shareable roast in the requested tone (brutal/honest/kind), produces a prioritized action plan ranked by impact × effort, and sketches an ideal README. Trigger when user says "roast my repo", "audit my README", "dx audit", "developer experience review", "score my GitHub project", "before launch checklist", or "make my repo shareable".

Varnan-Tech/opendirectory

Drafts and designs a complete HTML email newsletter from a topic or content brief. Outputs paste-ready HTML for Loops, Mailchimp, Beehiiv, Resend, or any standard email platform. Includes subject line options and plain-text fallback. Trigger when a user says "write a newsletter", "draft an email newsletter", "create an HTML email", "design an email for my subscribers", or "write a newsletter about [topic]".

Varnan-Tech/opendirectory

Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or understand what a PR changes. Trigger when a user says "explain this PR", "summarize this pull request", "what does this PR do", "add a comment explaining the PR", or shares a GitHub PR URL and asks what it does.

Varnan-Tech/opendirectory

Audit how often LLMs recommend your brand vs competitors and generate a GEO action plan.

Varnan-Tech/opendirectory

Takes a competitor's public GitHub repo URL, fetches their open issues via the GitHub REST API, filters noise locally, clusters issues into 6 demand categories, computes a demand score per issue and per cluster, and outputs a ranked demand gap report with a GTM messaging brief. Use when asked to scan a competitor's GitHub issues, find what their users are begging for, turn GitHub complaints into product positioning, identify competitor feature gaps, or generate messaging from real user demand. Trigger when a user says "scan competitor issues", "what are users asking for on X repo", "find demand gaps in Y", "turn GitHub issues into messaging", or "what should I build based on competitor complaints".

Varnan-Tech/opendirectory

Find recurring confusion in your repo's GitHub Discussions, rank it by urgency, and draft the actual docs fixes and content angles — with verbatim community quotes and source links as evidence.

Varnan-Tech/opendirectory

SEO keyword research workflow for blog generation using Google Trends data. Use when writing blog posts, planning content calendars, or optimizing articles for search engines. Finds breakout keywords, builds content structure, and generates SEO-optimized blog outlines targeting tech and developer audiences.

Varnan-Tech/opendirectory

Generates a professionally designed case study PDF for B2B SaaS sales and marketing. Supports 7 page layouts, 9 style presets, 1-4 page output. Trigger when user says "create a case study", "write a customer story", "make a case study PDF", "design a success story", "turn this customer win into a PDF".

Varnan-Tech/opendirectory

Generates data visualization charts (bar, line, area, pie, doughnut, scatter, radar, treemap) as PNG using Apache ECharts v6. 1080×1080px default, 5 style presets, highlight annotations. Trigger when user says "create a chart", "visualize data", "make a bar chart", "line graph", "pie chart", "data visualization", "chart this data", "plot", "graph", or "visualize these numbers".

Varnan-Tech/opendirectory

Fetches low-star App Store and Google Play reviews, clusters them into broken-promise patterns, and generates a ranked copy brief with positioning opportunities.

相關技能