natsufox/tapestry/visual-card
Claude Code and agent skill by natsufox/tapestry
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install natsufox/tapestry/visual-cardSKILL.md
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:
- A self-contained HTML file with embedded styles and export functionality
- 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
Step 2: Run the Context Preparation Script
This prints a JSON object with three keys:
source.content: the raw chapter markdownsource.frontmatter: parsed metadata (title, author, date, etc.)template_specification: full natural language spec of the 7 template blocksinstructions: 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:
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
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:
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:
- Extract or synthesize a framework - Identify the core structural model (2-6 components)
- Create a memorable acronym - Make the framework easy to remember
- Write a provocative thesis - Strong, opinionated claim in the title area
- Dark panel = narrative - Problems, transitions, paradigm shifts
- Light panel = insights - Actionable numbered takeaways (3-4 items)
- Bottom formula - Distill into one equation-style summary
Output Format
By default, generate both HTML and PNG:
- HTML file: Self-contained with embedded CSS, Google Fonts, and html2canvas for browser export
- 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 workflowvisual-card/_scripts/prepare_card_context.py: Prepares context (source + template spec) for Agentvisual-card/_scripts/generate_card_from_synthesis.py: Generates HTML/PNG from Agent synthesisvisual-card/_scripts/html2png.py: Playwright-based HTML to PNG renderervisual-card/_scripts/generate_card_legacy.py: Legacy hardcoded extraction (fallback)visual-card/_templates/card_template.html: Canonical HTML/CSS templatevisual-card/_templates/card_template_spec.md: Natural language specification for Agent (describes 7 blocks, quality criteria, examples)_assets/: Additional assets (if needed)
Example Usage
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
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tapestry/visual-card/SKILL.md
Popularity
- Repository stars
- 57
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 26 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/natsufox/tapestry/visual-card)