Coding

Kindle知识卡片生成器

Try it

根据用户输入知识素材,自动生成符合 Kindle 纸书暖色体系的纯 HTML 高密度知识卡片,支持流程、对比和单概念三种布局。

What it does

Generate beautiful knowledge concept cards (知识概念卡片) from any content: book summaries, course notes, meeting insights, or topic overviews.

The skill document

Knowledge Card Generator

Generate beautiful knowledge concept cards (知识概念卡片) from any content: book summaries, course notes, meeting insights, or topic overviews.

When to Use

Trigger this skill when the user:

  • Asks to "生成知识卡片" / "做成知识图解" / "create a knowledge card"
  • Provides book/course content and wants a visual summary
  • Says "把这个做成卡片" / "帮我可视化这些概念"
  • Mentions "KnowledgeCard:" followed by content

What It Does

  1. Extracts 4-5 core concepts from the input (book/notes/topic)
  2. Generates a high-quality PNG card (2400px width, 3x DPI) with:
    • Gradient top bar + title + subtitle
    • Each concept: icon + title + tag + quote + explanation
    • Bottom quote block (optional)
    • Brand footer
  3. Sends the image directly to the current chat

Workflow

Step 1: Analyze Input

If user provides raw content (book summary, notes, transcript), extract:

  • Main title (book name or topic)
  • Subtitle (optional tagline or author)
  • 4-5 core concepts, each with:
    • Title (concept name)
    • Tag (1-2 word label)
    • Quote (original quote or distilled insight)
    • Description (2-3 sentences explaining the concept)

If user provides structured data (JSON), use it directly.

Step 2: Choose Theme

Pick a theme color based on content tone:

  • blue — default, knowledge/wisdom
  • green — growth/health/sustainability
  • orange — wealth/energy/action
  • red — passion/urgency/relationships
  • purple — creativity/spirituality
  • teal — technology/innovation

Step 3: Generate Card

Run the script:

node scripts/generate.js \
  --title "书名或主题" \
  --subtitle "副标题(可选)" \
  --badge "标签(如:核心概念)" \
  --theme "blue" \
  --concepts '[
    {
      "icon": "💡",
      "color": "#3B82F6",
      "bg": "#DBEAFE",
      "title": "概念名称",
      "tag": "标签",
      "quote": "金句或原文引用",
      "desc": "2-3句解读,用加粗强调关键词"
    },
    ...
  ]' \
  --quote "底部金句(可选)" \
  --quote-author "—— 作者" \
  --brand "心光年觉醒读书会" \
  --vol "Vol.01 · 系列名" \
  --output /tmp/output.png

The script prints the output path on success.

Step 4: Send to User

⚠️ 发图方式按渠道不同,必须分支处理:

飞书渠道(channel=feishu)

直接调飞书 API 上传图片再发送,不要用 message(filePath=...)(会失败):

# Step 4a: 获取 token
APP_ID="your_feishu_app_id"        # 替换成你的飞书 App ID
APP_SECRET="your_feishu_app_secret"  # 替换成你的飞书 App Secret
TOKEN=$(curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
  -H "Content-Type: application/json" \
  -d "{\"app_id\":\"$APP_ID\",\"app_secret\":\"$APP_SECRET\"}" \
  | python3 -c "import sys,json; print(json.load(sys.stdin)['tenant_access_token'])")

# Step 4b: 上传图片,获取 image_key
IMAGE_KEY=$(curl -s -X POST "https://open.feishu.cn/open-apis/im/v1/images" \
  -H "Authorization: Bearer $TOKEN" \
  -F "image_type=message" \
  -F "image=@/path/to/output.png" \
  | python3 -c "import sys,json; print(json.load(sys.stdin)['data']['image_key'])")

# Step 4c: 发送图片消息
# receive_id 是目标用户的 open_id 或群的 chat_id
# receive_id_type: open_id(私聊)或 chat_id(群聊)
curl -s -X POST "https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=open_id" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"receive_id\":\"$RECEIVE_ID\",\"msg_type\":\"image\",\"content\":\"{\\\"image_key\\\":\\\"$IMAGE_KEY\\\"}\"}"

然后用 message 工具发一条文字消息作为说明(可选)。

QQ 渠道(channel=qqbot)

使用 qqbot-media skill 的 `` 标签发送图片: 先读取 ~/.openclaw/workspace/skills/qqbot-media/SKILL.md 获取详细用法。

其他渠道(Discord、Telegram、WeChat 等)

使用 message 工具:

message(action=send, filePath=/path/to/output.png, message="简短介绍文字")

Concept Structure Guidelines

Good concept:

{
  "icon": "🧬",
  "color": "#E11D48",
  "bg": "#FFE4E6",
  "title": "专属知识",
  "tag": "不可替代性",
  "quote": "如果可以培训,就可以被AI或他人取代",
  "desc": "专属知识不是课程能教的技能,而是你天赋 × 好奇心 × 热爱的独特组合。别人学你,感觉像在上班;你做它,感觉像在玩。"
}

Tips:

  • Use bold (``) for key terms in desc
  • Keep quote under 30 characters (Chinese) or 60 (English)
  • desc should be 2-3 sentences, ~80-120 characters
  • Pick contrasting color and bg for readability

Theme Colors Reference

blue:   { accent: '#2563EB', light: '#EFF6FF', border: '#BFDBFE' }
green:  { accent: '#059669', light: '#F0FDF4', border: '#BBF7D0' }
orange: { accent: '#D97706', light: '#FFFBEB', border: '#FDE68A' }
red:    { accent: '#E11D48', light: '#FFF1F2', border: '#FECDD3' }
purple: { accent: '#7C3AED', light: '#F5F3FF', border: '#DDD6FE' }
teal:   { accent: '#0284C7', light: '#F0F9FF', border: '#BAE6FD' }

Example Usage

User input:

"帮我生成一张《纳瓦尔宝典》的知识卡片,主题是财富创造"

Your response:

  1. Extract 4-5 concepts from Naval's wealth philosophy
  2. Run scripts/generate.js with structured data
  3. Send the PNG with message tool
  4. Reply with brief context (e.g., "《纳瓦尔宝典》财富创造核心概念卡片 👆")

Notes

  • Default brand: "心光年觉醒读书会" (can be overridden with --brand)
  • Output is always 800px × auto height, 3x DPI (2400px actual width)
  • Script requires Playwright (already installed in this environment)
  • Fonts: Noto Serif SC (titles) + Noto Sans SC (body), loaded from Google Fonts

Related skills

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

figma-use

Official

Run JavaScript against the Figma Plugin API to create and edit nodes, variables, and components.

by OpenAI28.2k stars

cli-creator

Official

Turn API docs, an OpenAPI spec, or an existing script into an installed CLI that Codex can run by name from any repo.

by OpenAI28.2k stars

aspnet-core

Official

Get current Microsoft-documented guidance for building and refactoring ASP.NET Core apps.

by OpenAI28.2k stars

Turn a short art request into a written generative-art philosophy plus a runnable p5.js sketch with seed and parameter controls.

by Anthropic182.7k stars

Draft a new agent skill, test it against baseline runs, and iterate until the results hold up.

by Anthropic182.7k stars

More from Conan

Browse all skills

AI合同智能审查助手。上传或粘贴合同文本,自动进行9维雷达评分、风险热力图可视化、条款对比修改建议、法律依据引用、谈判策略生成、关键信息提取、合同摘要、时间线可视化、条款结构化解析,输出交互式HTML审查报告。覆盖买卖合同/劳动用工/租赁合同/服务合同/保密协议/投资协议/建设工程/技术开发8类合同类型。触发词:...

by lmanchu

简历优化两步走编排器:第一步调用 resume-assistant 按 JD 重组内容并量化成果,第二步调用 humanizer 去除 AI 写作痕迹。解决直连 AI 重写导致的「空洞修饰词+千篇一律句式」问题,产出既专业又像本人写的简历。

by TomsTools

投标文件全流程智能分析技能。解析招标/投标文件(PDF/DOCX/XLSX),基于MECE原则进行多维度结构化需求拆解, 自动生成架构图/流程图/ER图/甘特图/雷达图五大专业图表,模拟评审专家打分并输出扣分明细, 根据评审意见逐条自动修订,提供类Git版本管理与迭代追踪。 Triggers: 投标, 招标, 标...

by Soul-Code

银行流水自动对账技能。导入银行流水(Excel/CSV)和账面记录, 通过金额+日期精确匹配、模糊匹配、关联匹配三层引擎自动核销, 生成交互式HTML可视化对账报告,标注待确认异常项。 覆盖工商/建设/农业/中国/招商/兴业/浦发等主流银行流水格式。 触发词:银行对账、流水对账、自动对账、导入银行流水、对账报告、...

by samledger67-dotcom

👴👵 专为银发族设计的AI生活助手。大字体+高对比度+语音优先,覆盖健康管理、用药提醒、暖心陪伴、每日播报、记忆辅助、亲情联络6大场景。帮助老年人跨越数字鸿沟,享受AI时代的便利与温暖。

by scikkk

WorkBuddy Skill 全生命周期管理器。列出/查看/创建/删除/搜索/审计/打包/安装技能, 一站管理本地和内置市场的所有 Skill。触发词:技能管理, skill管理, 管理技能, skill manager, 列出技能, 技能列表, 审计技能, 技能审计, 删除技能, 创建技能, 技能健康检查,...

by Iván1 installs