Install
openclaw skills install kcardKnowledge Card generator. Extracts key knowledge from user-provided material (text, files, URLs), determines optimal card type (concept/memo/process/comparison), applies cognitive science principles (chunking, dual coding, elaboration), outputs structured Markdown, and renders it into a beautiful image. Use when user says "知识卡片", "kcard", "make a card", "knowledge card", or wants to turn notes/articles into memorable visual cards.
openclaw skills install kcardAccept any of: pasted text, file path, URL, or image.
web_fetch toolExtract 3–7 core knowledge points. Prioritize: definitions > mechanisms > examples > details.
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.
Follow these when structuring the card:
Use the template from references/card-templates.md. Output a single Markdown file.
Naming convention: kcard_<topic>_<type>.md (e.g., kcard_react-hooks_concept.md)
Save to user's specified path or default: ~/.openclaw/workspace/kcards/
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:
Present the final image to the user.
Always output: