Token导航 LogoToken导航

Agent Skill · 研究检索

visual-explainer(视觉解释器)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

visual-explainer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 71,838。

总安装 192周安装 8GitHub Stars 3下载 64核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:visual-explainer(视觉解释器)
来源仓库:https://github.com/davistroy/claude-marketplace
仓库路径:skills/visual-explainer
安装命令:
npx skills add https://github.com/davistroy/claude-marketplace --skill visual-explainer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/davistroy/claude-marketplace --skill visual-explainer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

visual-explainer 将文本或文档转化为 AI 生成的信息图表页面。采用 Gemini Pro 3 生成 4K 图像,并由 Claude Sonnet Vision 迭代评估质量。适用于报告摘要、概念图解或数据分析结果的视觉化呈现需求。支持多页输出与证据溯源,自动标注数据来源与更新时间。

生成前需明确目标受众与展示场景,避免过度复杂影响可读性。

来源仓库内路径:skills/visual-explainer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/davistroy/claude-marketplace --skill visual-ex…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

visual-explainer 怎么安装?

在终端执行 npx skills add https://github.com/davistroy/claude-marketplace --skill visual-explainer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

visual-explainer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

visual-explainer 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

visual-explainer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

visual-explainer 用的人多吗?

公开数据是累计安装 192 次,近一周安装 8 次,下载 64 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

visual-explainer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
visual-explainer

视觉解释器 · 本页

1923接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Visual Concept Explainer

You are orchestrating a visual concept explanation workflow that transforms text or documents into AI-generated infographic pages. The tool uses Gemini Pro 3 (via google-genai SDK) for 4K image generation and Claude Sonnet Vision for quality evaluation with iterative refinement.

Proactive Triggers

Suggest this skill when:

  1. User has a document, report, or concept they want visualized as infographic pages
  2. After generating a report or analysis that would benefit from a visual summary
  3. User mentions creating infographics, visual explanations, or concept diagrams
  4. User asks to make a document more visually appealing or presentation-ready
  5. User wants to transform a whitepaper, guide, or technical document into visual content

Infographic Mode (Recommended)

The --infographic flag enables information-dense infographic generation optimized for 11x17 inch printing at 4K resolution. This mode:

  • Adaptive page count (1-6 pages) based on document complexity, word count, and content types
  • Zone-based layouts with explicit text placement, typography specifications, and content zones
  • 8 page types: Hero Summary, Problem Landscape, Framework Overview, Framework Deep-Dive, Comparison Matrix, Dimensions/Variations, Reference/Action, Data/Evidence
  • Information density: Each page can hold 800-2000 words of readable text plus diagrams, tables, and charts

Page Type Selection

The system automatically selects appropriate page types based on content:

Content PatternPage TypePurpose
Executive summary neededHero SummaryOne-page overview with key stats
Challenges, pain pointsProblem LandscapeIssues visualization with severity
Multi-step processesFramework OverviewVisual framework with connections
Deep component analysisFramework Deep-DiveDetailed component exploration
Multiple options to compareComparison MatrixSide-by-side analysis table
Variations, types, categoriesDimensions/VariationsCategory breakdown visualization
Statistics, research dataData/EvidenceCharts and data visualization
Action items, checklistsReference/ActionActionable takeaways and guides

Technical Notes

Image Generation:

  • Uses google-genai SDK with model from $GOOGLE_IMAGE_MODEL env var, falling back to gemini-3-pro-image-preview (default as of 2026-03-31 — verify with provider if errors occur)
  • Configuration: response_modalities=["IMAGE"] with ImageConfig for aspect ratio/size
  • 4K images are approximately 6-7.5MB each (JPEG format)

Image Evaluation:

  • Claude Vision API has 5MB limit for base64-encoded images
  • Tool automatically resizes images >3.5MB before evaluation (accounts for base64 overhead)
  • Uses PIL/Pillow for high-quality LANCZOS resampling

Platform Compatibility:

  • Windows: Folder names are sanitized to remove invalid characters (:, *, ?, ", <, >, |)
  • All platforms: Full Unicode support in Rich terminal UI

Tested Results (4 documents, 17 images):

  • Formats tested: URL (Substack), Markdown, DOCX
  • Average scores: 0.76-0.88 (all passing with threshold 0.75)
  • Generation time: 5-10 minutes per document (~2 min/image including analysis)
  • Only 1 retry needed across 17 images (image scored 0.72 → refined to 0.82)
  • Recommended pass threshold: 0.75-0.85 for good quality without excessive refinement

Input Validation

Required Arguments:

  • Input content (one of the following):

- Raw text (pasted directly) - Document path (.md, .txt, .docx, .pdf) - URL (to fetch and extract content)

Optional Arguments:

ParameterDefaultOptionsDescription
--infographicfalseflagRecommended. Generate information-dense infographic pages (11x17 format)
--max-iterations51-10Max refinement attempts per image
--aspect-ratio16:916:9, 1:1, 4:3, 9:16, 3:4Image aspect ratio
--resolutionhighlow, medium, highImage quality (high=4K/3200x1800)
--styleprofessional-cleanprofessional-clean, professional-sketch, or pathVisual style
--output-dir./outputpathOutput directory
--pass-threshold0.850.0-1.0Score required to pass evaluation
--concurrency31-10Max concurrent image generations
--no-cachefalseflagForce fresh concept analysis
--resumenullpathResume from checkpoint file
--dry-runfalseflagShow plan without generating
--setup-keysfalseflagForce re-check of API key availability (use /unlock to load keys)
--jsonfalseflagOutput results as JSON (for programmatic use). Returns structured metadata including image paths, scores, concept mappings, and generation statistics. Useful for downstream automation or integration with other tools.

Input Format Handling:

FormatHandling
.md, .txtDirect text extraction
.docxRequires python-docx - extracts paragraphs preserving headings
.pdfRequires PyPDF2 - extracts text content
URLRequires beautifulsoup4 - fetches and extracts main content
Web contentBest practice: Save as markdown first for reproducibility and future reference

DOCX Conversion Tip: For best results with DOCX files, pre-convert to markdown:

from docx import Document
doc = Document('document.docx')
with open('document.md', 'w') as f:
    for para in doc.paragraphs:
        style = para.style.name if para.style else ''
        if style.startswith('Heading'):
            level = int(style[-1]) if style[-1].isdigit() else 1
            f.write('#' * level + ' ' + para.text + '\n\n')
        else:
            f.write(para.text + '\n\n')

Environment Requirements (Secrets Policy): API keys must be loaded into the environment before use. The primary method is the /unlock skill, which loads secrets from Bitwarden Secrets Manager via the bws CLI (see CLAUDE.md Secrets Management Policy):

  • GOOGLE_API_KEY - For Gemini Pro 3 image generation
  • ANTHROPIC_API_KEY - For Claude concept analysis and image evaluation

Optional Model Configuration (non-sensitive, safe for.env):

  • GOOGLE_IMAGE_MODEL - Override Gemini image model (default: gemini-3-pro-image-preview, as of 2026-03-31 — verify with provider if errors occur)

If keys are not in the environment, suggest running /unlock before proceeding. Secrets policy compliance:

  • Do NOT write API keys to .env files or any configuration files
  • Do NOT guide users through creating .env files with API key values
  • Do NOT hardcode API keys in commands or scripts
  • Always direct users to /unlock or the Bitwarden Secrets Manager workflow

Tool vs Claude Responsibilities

Understanding what the Python tool handles vs what you (Claude) must do:

ComponentResponsibilityWhat It Does
visual-explainer (Python tool)Core pipelineConcept analysis, prompt generation, Gemini API calls, evaluation, refinement loop, output organization
You (Claude)Input collectionGather input text/path/URL from user
You (Claude)Interactive confirmationStyle selection, image count confirmation
You (Claude)Progress displayShow generation progress to user
You (Claude)Results presentationDisplay completion summary

Workflow

Phase 1: Setup and Dependency Check

The tool is bundled at ../tools/visual-explainer/ relative to this skill file.

Step 1: Set Up Tool Path

# Determine the plugin directory
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-/path/to/plugins/personal-plugin}"
TOOL_SRC="$PLUGIN_DIR/tools/visual-explainer/src"

Step 2: Check Dependencies

The tool automatically checks dependencies when run. You can also do a dry-run to verify setup:

PYTHONPATH="$TOOL_SRC" python -m visual_explainer --dry-run --input "test content"

Required packages:

  • Core: google-genai, anthropic, httpx, python-dotenv, pydantic, aiofiles, rich, pillow
  • Optional (format-specific): python-docx (DOCX), PyPDF2 (PDF), beautifulsoup4 (URLs)

If packages are missing, install them:

pip install google-genai anthropic httpx python-dotenv pydantic aiofiles rich pillow
pip install python-docx PyPDF2 beautifulsoup4  # Optional, for specific formats

Phase 2: API Key Setup (if needed)

If API keys are missing:

API Key Setup Required
======================

This tool requires two API keys:
- GOOGLE_API_KEY - for Gemini Pro 3 image generation
- ANTHROPIC_API_KEY - for Claude concept analysis and image evaluation

Missing keys detected:
  - GOOGLE_API_KEY - not found
  - ANTHROPIC_API_KEY - not found

To load API keys from Bitwarden, run: /unlock
This loads secrets from Bitwarden Secrets Manager into the current environment.

See CLAUDE.md Secrets Management Policy for details on storing and retrieving secrets.

If keys are still missing after /unlock, ask the user to verify the secrets are stored in their Bitwarden vault. Do NOT offer to write keys to .env files or guide users through creating .env files with API keys.

Phase 3: Input Collection

If no input was provided in arguments, prompt:

I'll help you create visual explanations for your content.

Please provide your input in one of these formats:
1. Paste text directly
2. Provide a file path (e.g., ./docs/concept.md)
3. Provide a URL to fetch content from

Phase 4: Content Analysis

After receiving input, run concept analysis:

PYTHONPATH="$TOOL_SRC" python -m visual_explainer analyze \
  --input "<input_text_or_path>" \
  --output-json

Display the analysis summary:

Content Analysis
================
Document: "Understanding Quantum Entanglement"
Word Count: 1,847 words
Key Concepts: 5 concepts identified
Recommended Images: 3 images

Concept Flow:
1. Classical Physics Background
   -> 2. Quantum Superposition
   -> 3. Entanglement Phenomenon
   -> 4. Applications
   -> 5. Future Implications

Phase 5: Style Selection (Interactive)

Prompt for style selection:

Visual Style Selection
======================
What style would you prefer?

1. Professional Clean (Recommended)
   - Clean, corporate-ready with warm accents
   - Best for: Business, presentations, reports

2. Professional Sketch
   - Hand-drawn sketch aesthetic
   - Best for: Creative, educational, informal

3. Custom
   - Provide path to your own style JSON

4. Skip (use Professional Clean default)

Select style [1-4]:

Phase 6: Image Count Confirmation

Image Generation Plan
=====================
Based on analysis, I recommend 3 images:

Image 1: "The Classical Foundation"
  - Covers: Classical Physics Background
  - Intent: Establish baseline understanding

Image 2: "Quantum Superposition"
  - Covers: Superposition, probability states
  - Intent: Introduce quantum concepts

Image 3: "Entanglement Synthesis"
  - Covers: Entanglement, applications, future
  - Intent: Tie concepts together

Would you like to:
1. Proceed with 3 images (Recommended)
2. Use fewer images (condense concepts)
3. Use more images (expand detail)
4. Adjust settings (aspect ratio, iterations)

Phase 7: Generation Execution

Execute the full generation pipeline:

PYTHONPATH="$TOOL_SRC" python -m visual_explainer generate \
  --input "<input_text_or_path>" \
  --style "<selected_style>" \
  --max-iterations <n> \
  --aspect-ratio "<ratio>" \
  --resolution "<level>" \
  --output-dir "<output_path>" \
  --pass-threshold <threshold> \
  --concurrency <n>

Progress Display Format:

Starting Image Generation
=========================

Image 1 of 3: "The Classical Foundation"
----------------------------------------

Attempt 1/5:
  [=========>         ] Generating... (4.2s)
  Generated
  Evaluating...
    - Concept clarity: 72%
    - Visual appeal: 85%
    - Flow continuity: 60%
  Overall: 72% - NEEDS_REFINEMENT

Attempt 2/5:
  Refining: Adding visual flow indicators
  [=========>         ] Generating... (3.8s)
  Generated
  Evaluating...
    - Concept clarity: 91%
    - Visual appeal: 88%
    - Flow continuity: 85%
  Overall: 88% - PASS

Image 1 complete. Best version: Attempt 2

Image 2 of 3: "Quantum Superposition"
-------------------------------------
...

Phase 8: Completion Summary

Generation Complete
===================

Results:
  - Images generated: 3 of 3
  - Total attempts: 7
  - Average quality score: 89%
  - Estimated cost: $0.70

Output saved to:
  ./output/visual-explainer-quantum-entanglement-20260118-143052/

Final Images:
  1. 01-classical-foundation.jpg (Score: 88%)
  2. 02-quantum-superposition.jpg (Score: 91%)
  3. 03-entanglement-synthesis.jpg (Score: 88%)

Output Structure:
  metadata.json          # Full generation metadata
  concepts.json          # Extracted concepts
  summary.md             # Human-readable summary
  all-images/            # Final images only
    01-classical-foundation.jpg
    02-quantum-superposition.jpg
    03-entanglement-synthesis.jpg
  image-01/              # All attempts for image 1
    final.jpg
    prompt-v1.txt
    attempt-01.jpg
    evaluation-01.json
    ...

Would you like to:
1. View the summary report
2. Regenerate a specific image
3. Open output folder

Resume from Checkpoint

If generation was interrupted, resume with:

PYTHONPATH="$TOOL_SRC" python -m visual_explainer generate \
  --resume "./output/visual-explainer-[topic]-[timestamp]/checkpoint.json"

The checkpoint contains:

  • Generation state
  • Completed images
  • Current progress
  • Configuration used

Cost Estimation

Estimated costs per session:

ScenarioImagesAvg AttemptsEst. Total
Simple doc, 1 image12~$0.28
Medium doc, 3 images32.3~$0.95
Complex doc, 5 images53~$2.10

Component costs:

  • Gemini image generation: ~$0.10 per image
  • Claude concept analysis: ~$0.02 per document
  • Claude image evaluation: ~$0.03 per evaluation

Performance

ScenarioImagesExpected DurationEstimated API Cost
Simple document, 1 image12-4 minutes~$0.28
Medium document, 3 images35-10 minutes~$0.95
Complex document, 5 images512-20 minutes~$2.10
Infographic mode, 3 pages38-15 minutes~$1.20
Infographic mode, 6 pages615-30 minutes~$2.80

Duration scales linearly with image count. Each image takes approximately 2 minutes including Gemini generation, Claude evaluation, and potential refinement. Refinement retries (when score < pass threshold) add ~1.5 minutes per retry.

API cost breakdown per image: Gemini Pro 3 generation ~$0.10, Claude concept analysis ~$0.02/document (one-time), Claude image evaluation ~$0.03/evaluation. Costs increase with refinement retries. At default settings (max 5 iterations, 0.85 threshold), typical cost is $0.15-0.25 per final image. Use --dry-run to preview the generation plan without incurring any API costs.

Error Handling

ErrorResponse
Missing API keySuggest running /unlock to load keys from Bitwarden
Rate limit (429)Exponential backoff, respect Retry-After header
Safety filterLog, skip to next attempt with modified prompt
TimeoutRetry with increased timeout (up to 5 min)
All attempts exhaustedSelect best attempt, report scores
Network errorRetry up to 3 times with backoff

Examples

Infographic mode (recommended for complex documents):

/visual-explainer --input docs/architecture-overview.md --infographic

Infographic with dry-run preview:

/visual-explainer --input whitepaper.md --infographic --dry-run

Basic usage (interactive):

/visual-explainer

With document path:

/visual-explainer --input docs/architecture-overview.md

Custom settings:

/visual-explainer --input concept.txt --style professional-sketch --max-iterations 3 --aspect-ratio 1:1

High quality infographic:

/visual-explainer --input whitepaper.md --infographic --resolution high --max-iterations 7 --pass-threshold 0.90

Dry run (plan only):

/visual-explainer --input document.md --dry-run

Resume interrupted generation:

/visual-explainer --resume ./output/visual-explainer-topic-20260118/checkpoint.json

Execution Summary

Follow these steps in order:

  1. Setup - Parse arguments, set up tool path
  2. Dependency Check - Verify packages and API keys
  3. API Key Setup - If missing, guide user through setup wizard
  4. Input Collection - Get text/path/URL from user (if not provided)
  5. Content Analysis - Extract concepts, determine image count
  6. Style Selection - Let user choose or use default
  7. Image Count Confirmation - Confirm plan with user
  8. Generation Execution - Run full pipeline with progress display
  9. Completion Summary - Display results and output locations

平台分布

Codex

37.17%
按下载量换算24

Claude

28.05%
按下载量换算18

Cursor

19.1%
按下载量换算12

Gemini CLI

9.82%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills