← 返回
未分类

Knowledge card creator, your memory notes

Knowledge Card generator. Extracts key knowledge from user-provided material (text, files, URLs), determines optimal card type (concept/memo/process/comparis...
知识卡片生成器:提取用户提供的文本、文件或 URL 中的关键知识,自动匹配合适的卡片类型(概念、备忘录、流程、比较等)。
goog
未分类 clawhub v1.6.5 1 版本 100000 Key: 无需
★ 0
Stars
📥 659
下载
💾 1
安装
1
版本
#latest

概述

Knowledge Card Generator

Workflow

1. Parse Input Material

Accept any of: pasted text, file path, URL, or image.

  • If URL → fetch and extract main content by web_fetch tool
  • If file → read it

Extract 3–7 core knowledge points. Prioritize: definitions > mechanisms > examples > details.

2. Determine Card Type

Pick the best-fit type based on content nature:

TypeTrigger PatternStructure
---------------------------------
ConceptDefines a term, theory, modelTerm → Definition → Analogy → Key Points
MemoSteps, commands, configs, referencesTitle → Ordered Steps → Tips / Gotchas
ProcessSequential workflow or lifecycleTitle → Phases → Steps per Phase → Output
ComparisonCompares 2+ itemsDimension → Item A vs Item B → Verdict

If unsure, default to Concept card.

3. Apply Cognitive Science Principles

Follow these when structuring the card:

  • Chunking: Group related info into 3–5 chunks max per section
  • Dual Coding: Pair text with a visual metaphor or emoji anchors
  • Elaboration: Add a "Why It Matters" or analogy section
  • Spaced Repetition Cue: End with a self-test question (❓)
  • Progressive Disclosure: Layer from simple to detailed

4. Generate Markdown

Use the template from references/card-templates.md. Output a single Markdown file.

Naming convention: kcard__.md (e.g., kcard_react-hooks_concept.md)

Save to user's specified path or default: ~/.openclaw/workspace/kcards/

5. Render to Image

Run the rendering script to convert the Markdown into a PNG:

python <skill-dir>/scripts/render_card.py <path-to-markdown> [--output <output.png>] [--theme <warm|cool|girly|tech>] [--width 800]

Default theme: warm. Default output: same path with .png extension.

The script:

  1. Parses Markdown to styled HTML
  2. Renders HTML to image via headless browser or html2image
  3. Returns the output path

Present the final image to the user.

Output Format

Always output:

  1. The Markdown source file (for editing/reuse)
  2. The rendered PNG image
  3. A brief one-line summary of what the card covers

Notes

  • Keep cards concise: one concept per card, maximum 195 words
  • Use Chinese or English based on input language
  • Emoji anchors are encouraged but keep them minimal (1–3 per section)
  • For batch requests, process cards sequentially and summarize all outputs

版本历史

共 1 个版本

  • v1.6.5 当前
    2026-05-03 04:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Daily AI NEWS chinese version, big AI news

goog
从 AI资讯速览(https://ai-digest.liziran.com/zh/)抓取并展示 AI 新闻摘要,用于用户请求 AI 新闻、今日 AI 摘要、最新 AI 更新等场景。
★ 0 📥 572

Nature and science AI news

goog
抓取并摘要 Nature RSS 中的最新 AI 文章以及 New Scientist Technology 的前 7 条 AI 新闻,当用户询问 Nature AI 新闻或 New Scientist 热门 AI 新闻时使用。
★ 0 📥 560

npm defender2

goog
扫描npm包或项目,检测JavaScript恶意代码、可疑Base64、私有字符和已知恶意包,具备RLO攻击检测能力
★ 0 📥 553