/install kcard
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_fetchtool - 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:
| Type | Trigger Pattern | Structure |
|---|---|---|
| Concept | Defines a term, theory, model | Term → Definition → Analogy → Key Points |
| Memo | Steps, commands, configs, references | Title → Ordered Steps → Tips / Gotchas |
| Process | Sequential workflow or lifecycle | Title → Phases → Steps per Phase → Output |
| Comparison | Compares 2+ items | Dimension → 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_\x3Ctopic>_\x3Ctype>.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 \x3Cskill-dir>/scripts/render_card.py \x3Cpath-to-markdown> [--output \x3Coutput.png>] [--theme \x3Cwarm|cool|girly|tech>] [--width 800]
Default theme: warm. Default output: same path with .png extension.
The script:
- Parses Markdown to styled HTML
- Renders HTML to image via headless browser or html2image
- Returns the output path
Present the final image to the user.
Output Format
Always output:
- The Markdown source file (for editing/reuse)
- The rendered PNG image
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kcard - 安装完成后,直接呼叫该 Skill 的名称或使用
/kcard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 254 次。
如何安装 Knowledge card creator, your memory notes?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kcard」即可一键安装,无需额外配置。
Knowledge card creator, your memory notes 是免费的吗?
是的,Knowledge card creator, your memory notes 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Knowledge card creator, your memory notes 支持哪些平台?
Knowledge card creator, your memory notes 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Knowledge card creator, your memory notes?
由 Jay(@goog)开发并维护,当前版本 v1.6.5。