Accept 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_ (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:
共 1 个版本