Communitygithub.com

Varnan-Tech/opendirectory

當使用者要求生成部落格封面圖、縮圖或文章標題圖片時使用。自動運用現代字體設計、品牌 Logo 與 Google 搜尋即時資訊,透過 Gemini 3.1 Flash Image Preview 建立美觀的 16:9 圖片。

opendirectory 是什麼?

這個技能賦予 AI 代理人生產高品質、簡約風格的技術部落格封面圖片的能力,背後依賴 `blog-cover-image-cli` 工具。該 CLI 工具整合 Gemini 3.1 Flash Image Preview,能自動抓取指定網域的官方品牌 Logo(使用 Brandfetch),並以本地端美學參考圖片作為風格基準,同時啟用 Google Search Grounding 來注入即時上下文,確保封面與最新資訊相關。使用者只需提供標題與品牌網域,即可快速產出 16:9 的乾淨封面,支援自訂輸出路徑與檔案名稱。此技能適用於 Claude Code、Cursor、Codex 等支援 CLI 執行的 AI 代理平台,特別適合部落格作者、內容創作者與開發者,能大幅縮短製作技術文章封面的時間。

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

在你喜歡的 AI 中提問

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

說明文件

部落格封面圖片生成技能

此技能賦予 AI 代理人使用 blog-cover-image-cli 產生美觀、極簡、技術風格的部落格封面圖片的能力。此 CLI 工具整合 Gemini 3.1 Flash Image Preview,能自動抓取指定網域的官方品牌 Logo,使用本地端美學參考圖片,並啟用 Google Search Grounding 來注入即時上下文。

設定與配置

代理人事前準備: 在使用此工具前,請確認已安裝。如果 blog-cover-cli --help 執行失敗,請透過以下指令進行全域安裝:

npm install -g blog-cover-image-cli

如果使用者要求你產生圖片但你尚未設定 API Key,你必須先使用 Gemini API Key 來配置 CLI。此 CLI 會透過 conf 套件安全儲存這些資訊。

# 1. 設定你的 Gemini API Key(圖片生成必備)
npx -p blog-cover-image-cli blog-cover-cli config set-key <YOUR_GEMINI_API_KEY>

# 2. 設定你的 Brandfetch Client ID(用於取得高解析度 Logo)
npx -p blog-cover-image-cli blog-cover-cli config set-brandfetch-id <YOUR_BRANDFETCH_CLIENT_ID>

# 檢查你的金鑰(會被遮蔽處理)
npx -p blog-cover-image-cli blog-cover-cli config get-key
npx -p blog-cover-image-cli blog-cover-cli config get-brandfetch-id

使用方法:產生圖片

當使用者要求產生封面圖片(例如:「為我關於 Vercel v0 的部落格建立一張封面圖」)時,你應使用 generate 指令。

npx -p blog-cover-image-cli blog-cover-cli generate -t "部落格文章標題" -l "example.com"

參數

  • -t, --title <文字>:(必填) 要在封面圖片上顯示的標題文字。避免使用過長的標題(視覺上保持在三行文字以內)。
  • -l, --logo <網域>:(選擇性但建議填寫) 要抓取品牌 Logo 的網域(例如 vercel.com、google.com、cursor.com)。CLI 會自動將 WebP/SVG/AVIF 格式轉換為相容的 PNG。
  • -o, --output <路徑>:(選擇性) 產生的圖片要儲存到的檔案路徑。如果省略,CLI 會自動將圖片儲存到目前工作目錄下的 output/ 資料夾(例如 ./output/vercel-cover.png)。

範例

範例 1:Cursor

npx -p blog-cover-image-cli blog-cover-cli generate -t "為什麼 Cursor 是終極 AI 程式碼編輯器" -l "cursor.com"

範例 2:Lovable

npx -p blog-cover-image-cli blog-cover-cli generate -t "用 Lovable 在幾分鐘內打造應用程式" -l "lovable.dev"

範例 3:自訂輸出路徑

npx -p blog-cover-image-cli blog-cover-cli generate -t "掌握 React 2026" -l "reactjs.org" -o "./assets/react-cover.png"

底層運作方式

身為代理人,你應該清楚 CLI 在背後做了哪些事,以便向使用者說明:

  1. Logo 取得:從 Brandfetch 取得 Logo,並透過 sharp 進行處理。
  2. 參考圖片:從其 examples/ 目錄載入策展後的參考圖片,確保輸出結果始終保持簡潔、白色背景搭配粗體字型的風格。
  3. 即時查詢:啟用 googleSearch 工具,因此如果標題與近期事件相關,Gemini 可在產生圖片前即時查詢資料。
  4. 文字強制:使用印刷排版規則,強制 Gemini 輸出確切的標題字串。

邊際案例 / 問題排除

  • 缺少 API Key 錯誤:如果看到 API Key 的錯誤訊息,請執行 config set-key 指令。
  • Logo 取得警告:如果 CLI 顯示 Warning: Could not fetch logo,仍會繼續產生圖片,只是不會帶有 Logo。你不需要中斷或停止。
  • 嚴格模態限制:由於此工具使用 Gemini 的實驗性圖片模型,有時可能會因嚴格的安全過濾器導致生成失敗。若發生此情況,請通知使用者。

Individual skills in this repo

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

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

Creates professionally designed B2B SaaS e-books in HTML + CSS, exported as print-ready PDF. 3–10 pages, 9 style presets, 11 page layout types. Trigger when user says "create an ebook", "design a lead magnet", "make a PDF guide", "build a gated content piece", "write a B2B ebook", "design a white paper", "create a nurture asset", or "make a PDF report".

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.

相關技能