Communitygithub.com

Varnan-Tech/opendirectory

用于生成博客封面图、缩略图或文章标题图。自动利用现代排版、品牌Logo和Google搜索实况信息,通过Gemini 3.1 Flash图像预览创建精美的16:9图片。

opendirectory 是什么?

该技能为AI智能体提供了生成惊艳、简约且具有技术感的博客封面图像的能力,其核心基于 `blog-cover-image-cli` 命令行工具。该CLI利用Gemini 3.1 Flash图像预览功能,自动从指定域名获取品牌Logo,使用本地美学参考图像以确保输出风格统一,并通过Google搜索实况信息注入实时上下文,使封面图更具相关性和时效性。它支持多个主流平台,如Claude Code、Cursor和Codex等AI代理环境。使用时只需提供标题和可选Logo域名,CLI即可完成Logo抓取(通过Brandfetch)、图像处理(通过sharp库)、实况信息整合与最终生成。生成过程会自动应用预定义的排版规则,确保标题文本准确呈现,并在遇到Logo获取失败或安全过滤器限制等边界情况时给出清晰提示。

兼容平台~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图像预览,自动从域名获取品牌Logo,使用本地美学参考图像,并通过Google搜索实况信息注入实时上下文。

设置与配置

智能体前置条件: 在使用此工具前,请确认其已安装。若 blog-cover-cli --help 执行失败,则全局安装:

npm install -g blog-cover-image-cli

如果用户要求你生成图像,但你尚未配置API密钥,则必须先使用Gemini API密钥进行CLI配置。CLI通过 conf 包安全存储密钥。

# 1. 设置Gemini API密钥(图像生成必需)
npx -p blog-cover-image-cli blog-cover-cli config set-key <YOUR_GEMINI_API_KEY>

# 2. 设置Brandfetch客户端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 <text>:(必需) 封面图像上显示的标题文本。请勿使用过长的标题(视觉上保持在3行文本以内)。
  • -l, --logo <domain>:(可选但推荐) 获取品牌Logo的域名(例如 vercel.com、google.com、cursor.com)。CLI会自动将WebP/SVG/AVIF转换为PNG以确保兼容性。
  • -o, --output <path>:(可选) 生成图像的保存路径。若省略,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 "在2026年掌握React" -l "reactjs.org" -o "./assets/react-cover.png"

工作原理

作为智能体,你应了解CLI的内部机制,以便告知用户:

  1. Logo抓取:通过 Brandfetch 获取Logo并使用 sharp 进行处理。
  2. 参考图像:加载其 examples/ 目录中的精选参考图像,确保输出始终为干净、极简的白色背景,搭配粗体排版。
  3. 实况信息:已启用 googleSearch 工具,意味着如果标题涉及近期事件,Gemini可在生成图像前先进行查询。
  4. 文本强制:通过排版位置规则强制Gemini输出精确的标题字符串。

边界情况 / 故障排除

  • 未设置API密钥错误:若遇到API密钥错误,请运行 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.

相关技能