Logo Visual Card

Visual Card

Cộng đồng
NatsuFox
visual-card

Generate professional visual note cards (视觉笔记卡片/信息图) from knowledge base content as single-page HTML infographics with PNG export. Use when users want to create visual summaries, knowledge cards, infographics, or poster-style visualizations of topics from the knowledge base.

Tổng quan

Nhà phát hànhNatsuFox
Kho mãTapestry
Tên kỹ năngvisual-card
Sao
64
Bản fork
5
Tệp đi kèm
8
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được NatsuFox công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Visual Card trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/NatsuFox/Tapestry/tree/main/skills/tapestry/visual-card
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NatsuFox/Tapestry.git /tmp/Tapestry
mkdir -p .claude/skills
cp -r /tmp/Tapestry/skills/tapestry/visual-card .claude/skills/visual-card
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Visual Card trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Visual Card ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Visual Card với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Tapestry Visual Card

Generate professional visual note cards from knowledge base content: $ARGUMENTS

When to use this skill

Use this skill when:

  • A user wants to create a visual note card or infographic from KB content
  • The user asks to "visualize", "create a card", "make an infographic", or "generate a visual summary"
  • The user mentions 视觉笔记, 知识卡片, 信息图, or one-pager summary
  • You need to present knowledge base content in a shareable, poster-style format
  • The user wants to export KB content for social media or presentations

Purpose

This skill transforms structured knowledge base content into beautiful, information-dense visual cards following an editorial magazine aesthetic. It produces:

  1. A self-contained HTML file with embedded styles and export functionality
  2. A high-quality PNG image (via Playwright rendering)

The cards follow a fixed layout structure optimized for readability and social sharing.

Workflow

Architecture: Agent-Driven Content Synthesis

This skill uses an Agent-driven approach where the Agent reads the template specification and autonomously decides how to map source content to template blocks.

Key principle: The template structure is fixed (7 display blocks), but content mapping is intelligent and adaptive.

Step 1: Identify the Source Content

Resolve the target from the argument:

  • If a specific chapter path is provided (e.g., "ai-and-development-tools/ai-agent-architecture.md"), use that chapter
  • If a topic is provided (e.g., "ai-and-development-tools"), offer to generate cards for its chapters
  • If no argument, list available topics and ask the user to choose
bash
# List available topics
ls -d data/books/*/

Step 2: Run the Context Preparation Script

bash
python visual-card/_scripts/generate_card.py --chapter "<topic>/<chapter.md>"

This prints a JSON object with three keys:

  • source.content: the raw chapter markdown
  • source.frontmatter: parsed metadata (title, author, date, etc.)
  • template_specification: full natural language spec of the 7 template blocks
  • instructions: task description

Step 3: Read the Template Specification

Read visual-card/_templates/card_template_spec.md to understand:

  • What each of the 7 blocks is for
  • Quality criteria for content selection
  • Expected JSON output format with examples

Step 4: Synthesize the Content Mapping (Agent Task)

Analyze the source content against the template spec and produce a synthesis JSON. Write it to a temp file:

bash
# Write synthesis to temp file
cat > /tmp/card_synthesis.json << 'EOF'
{
  "metadata": {
    "chapter": "<chapter-name>",
    "title_en": "<English title, 3-8 words>",
    "title_cn": "<Chinese title>",
    "topic_label": "<TOPIC LABEL IN CAPS>",
    "source_label": "<SOURCE IN CAPS>",
    "thesis": "<one sentence with <strong>keyword</strong> embedded>"
  },
  "framework": {
    "formula": "<A × B × C format>",
    "formula_subtext": "<what the formula means>",
    "label": "<FRAMEWORK NAME>",
    "components": [
      {"letter": "A", "name": "Component Name", "description": "One-line description"}
    ]
  },
  "insights": [
    {"number": "01", "title": "Insight Title", "description": "2-3 sentence insight description"}
  ],
  "dark_panel": {
    "icon": "⚡",
    "section_title": "<Section Title>",
    "block1": {"title": "<Block 1 Title>", "items": ["item 1", "item 2", "item 3"]},
    "block2": {"title": "<Block 2 Title>", "items": ["item 1", "item 2", "item 3", "item 4"]},
    "conclusion": {"label": "核心洞察", "text": "<conclusion text>", "highlight": "<highlighted phrase>"}
  },
  "closing_thought": {
    "text": "<memorable closing insight>",
    "attribution": "<author or source>"
  }
}
EOF

Content decisions to make:

  • Framework: Identify 2-6 core concepts that structure the topic (acronym or logical grouping)
  • Insights: Select 3-5 most surprising, actionable, or paradigm-shifting points
  • Dark panel: Narrative flow — overview → key mechanics → conclusion
  • Thesis: A single provocative claim that captures the article's core argument
  • Closing thought: A memorable synthesis that gives the reader something to carry away

Step 5: Generate HTML/PNG from Synthesis

bash
python visual-card/_scripts/generate_card_from_synthesis.py \
  --synthesis /tmp/card_synthesis.json \
  --chapter "<topic>/<chapter.md>"

This renders the synthesis into the HTML template and exports PNG via Playwright.

Step 6: Present the Results

Report back with:

  • The generated PNG path (primary deliverable)
  • The HTML path (for browser-based editing/export)
  • A brief summary of the content mapping decisions made

Card Design System

The visual cards follow a fixed editorial layout:

┌──────────────────────────────────────────┐
│ TOPIC LABEL              SOURCE LABEL    │  ← Top Bar
├────────────────────┬─────────────────────┤
│ English Title      │ Thesis statement    │  ← Title Area
│ 中文标题            │ with key insight    │
├─────┬─────┬─────┬──┴──────────────────────┤
│  M  │  P  │  D  │  G  │                  │  ← Framework Row (2-6 cards)
├─────┴─────┴─────┴─────┴──────────────────┤
│ ⚡ Dark Panel      │ ★ Light Panel        │  ← Two-Column Content
│ (narrative/story)  │ (numbered insights)  │
├──────────────────────────────────────────┤
│ Formula = M × P × D × G    Closing note  │  ← Highlight Bar
├──────────────────────────────────────────┤
│ FRAMEWORK LABEL              BRAND NAME   │  ← Footer
└──────────────────────────────────────────┘

Color Palette

Default theme (customizable):

  • Primary: Deep teal #1a7a6d
  • Accent: Orange #e8713a
  • Background: Warm gray #f0ebe4
  • Dark panel: #1a1a1a

Typography

  • English display: Playfair Display (serif)
  • Chinese body: Noto Sans SC
  • Monospace/labels: JetBrains Mono

Content Strategy

When generating cards from KB content:

  1. Extract or synthesize a framework - Identify the core structural model (2-6 components)
  2. Create a memorable acronym - Make the framework easy to remember
  3. Write a provocative thesis - Strong, opinionated claim in the title area
  4. Dark panel = narrative - Problems, transitions, paradigm shifts
  5. Light panel = insights - Actionable numbered takeaways (3-4 items)
  6. Bottom formula - Distill into one equation-style summary

Output Format

By default, generate both HTML and PNG:

  1. HTML file: Self-contained with embedded CSS, Google Fonts, and html2canvas for browser export
  2. PNG file: High-quality render at 1.5× scale (1800px wide), optimized for social media

Output location: data/cards/YYYY-MM-DD-{topic-slug}/

Language Handling

CRITICAL: The card content language should match the source KB content language:

  • If the KB chapter is in Chinese, generate Chinese card content
  • If the KB chapter is in English, generate English card content
  • Always include bilingual titles (English + Chinese) regardless of content language
  • Technical terms and framework acronyms remain in their original language

Dependencies

The skill requires:

  • Python 3.8+
  • Playwright (for PNG rendering): pip install playwright && playwright install chromium

Dependencies are checked and installed automatically on first run.

Resources

  • visual-card/_scripts/generate_card.py: Main orchestrator for Agent-driven workflow
  • visual-card/_scripts/prepare_card_context.py: Prepares context (source + template spec) for Agent
  • visual-card/_scripts/generate_card_from_synthesis.py: Generates HTML/PNG from Agent synthesis
  • visual-card/_scripts/html2png.py: Playwright-based HTML to PNG renderer
  • visual-card/_scripts/generate_card_legacy.py: Legacy hardcoded extraction (fallback)
  • visual-card/_templates/card_template.html: Canonical HTML/CSS template
  • visual-card/_templates/card_template_spec.md: Natural language specification for Agent (describes 7 blocks, quality criteria, examples)
  • _assets/: Additional assets (if needed)

Example Usage

bash
# Generate a card for a specific chapter
python visual-card/_scripts/generate_card.py \
  --chapter "data/books/markets-and-trading/market-structure-and-signals"

# Generate with custom color scheme
python visual-card/_scripts/generate_card.py \
  --chapter "data/books/ai-and-research/model-training-and-optimization" \
  --primary-color "#2d5a8c" \
  --accent-color "#d4af37"

# Generate HTML only (skip PNG)
python visual-card/_scripts/generate_card.py \
  --chapter "data/books/community-qa-and-discussion/platform-discussions" \
  --html-only

Integration with Other Skills

This skill works best after:

  • Synthesis: Content is already organized in the knowledge base
  • Display: User has browsed the KB and identified interesting chapters

It can be chained with:

  • Display: Generate cards for all chapters in a topic
  • Feed: Create visual cards from feed items

Notes

  • Cards are 1200px wide by default (poster format)
  • PNG export uses device-scale-factor for high-DPI rendering
  • The floating action button (FAB) in HTML allows browser-based export at multiple resolutions
  • All cards include a copyright attribution to the original visual-note-card-skills project

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Visual Card làm được gì?

Generate professional visual note cards (视觉笔记卡片/信息图) from knowledge base content as single-page HTML infographics with PNG export. Use when users want to create visual summaries, knowledge cards, infographics, or poster-style visualizations of topics from the knowledge base.

Vì sao nên dùng Visual Card trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Visual Card là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Visual Card trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/NatsuFox/Tapestry/tree/main/skills/tapestry/visual-card. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Visual Card?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Visual Card với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Visual Card với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Visual Card có miễn phí không?

Có. Kỹ năng này được NatsuFox phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇