Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

data-visualization数据可视化

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

451

周安装

19

GitHub Stars

12

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/delphine-l/claude_global --skill data-visualization

简介

data-visualization 用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备,适合让 Agent 清洗字段、汇总数据、发现异常或生成统计口径。

  • 它提供科学可视化最佳实践指导,避免常见误导性图表问题,适用于数据分析和报告制作场景。
  • 使用方式包括选择合适的图表类型、优化布局和调整元素大小,确保统计标注准确清晰。
  • 使用时需要确认数据来源、字段含义和时间范围,避免将样本数据当作全量事实处理。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Data Visualization Best Practices

Expert guidance for creating publication-quality scientific visualizations, avoiding common pitfalls, and optimizing figure clarity.

When to Use This Skill

  • Creating figures for scientific publications
  • Debugging misleading or distorted visualizations
  • Optimizing figure layouts and element sizes
  • Choosing appropriate plot types for data characteristics
  • Ensuring statistical annotations fit properly
  • Generating images for sharing with Claude or other AI tools

Supporting Files

This skill is organized into focused reference files. Load them as needed:

  • pitfalls-and-troubleshooting.md - Log-scale distortion, coordinate transform bugs, outlier handling philosophy, axis range optimization, float year labels
  • chart-recipes.md - Code recipes for temporal trends, boxplots, scatter plots, category proportions, stacked area charts, sample size legends, the dual-approach for outlier handling in publication figures
  • color-palettes.md - Okabe-Ito palette, Paul Tol palette, sequential/diverging schemes, colorblind-safe implementation in matplotlib/seaborn
  • claude-image-constraints.md - Claude API 8000px limit, safe figure size presets, resize helpers, Jupyter notebook oversized image fixes
  • figure-descriptions.md - Templates for writing publication-quality figure descriptions with proper statistical reporting
  • itol-reference.md - iTOL dataset formats (DATASET_STYLE, DATASET_BINARY, DATASET_COLORSTRIP), species name synchronization, troubleshooting
  • journal-requirements.md - Journal-specific figure specs (Nature, Science, Cell, PLOS, ACS, IEEE, Elsevier, BMC): dimensions, DPI, formats, panel labeling, file naming

Assets (importable in notebooks/scripts)

  • assets/publication.mplstyle - General publication style: plt.style.use('path/to/publication.mplstyle')
  • assets/nature.mplstyle - Nature journal style (89mm single column, 7pt fonts, 600 DPI)
  • assets/presentation.mplstyle - Larger fonts/lines for posters and slides
  • assets/color_palettes.py - Importable palette definitions (Okabe-Ito, Wong, Paul Tol), apply_palette() helper, DNA base colors

Scripts (helper utilities)

  • scripts/figure_export.py - save_publication_figure(), save_for_journal(), check_figure_size() - export in multiple formats with journal-specific DPI/format settings
  • scripts/style_presets.py - apply_publication_style(), configure_for_journal(), set_color_palette() - one-command journal configuration

Core Principles

1. Always Check Log-Scale Plots

KDE-based plots (violin, ridge) on log axes produce distorted shapes. Use boxplots or log-transform data first, then plot on linear axes. See pitfalls-and-troubleshooting.md for details.

2. Show All Data First, Filter Later

Default to showing ALL data points in initial visualizations (showfliers=True). Outliers may be biologically meaningful. Only filter after review with domain expert, and always document exclusions.

3. Use Colorblind-Safe Palettes

Use Okabe-Ito palette (recommended by Nature) for categorical data. Combine color with marker shapes for redundancy. Never use red-green combinations. See color-palettes.md for hex codes and implementation.

4. Respect Claude's Image Size Limit

Images shared with Claude must not exceed 8000 pixels in either dimension. Use safe figure size presets and the save_figure() helper. See claude-image-constraints.md.

5. Position Annotations Carefully

Use pure data coordinates or ax.transAxes (0-1 range) for text positioning. Never mix coordinate systems (e.g., ax.get_xaxis_transform() with data-scale y-values). See pitfalls-and-troubleshooting.md.

Chart Selection Quick Guide

Data TypeRecommended ChartWhen to Use
Distribution comparisonBoxplotLarge datasets, log scales, multiple groups
Distribution shapeHistogramAlways works on log scales, shows true frequency
Temporal trends (few points)Scatter + regression< 50 points per timepoint, continuous time
Temporal trends (many points)Boxplots by yearOverlapping points, discrete timepoints
Category proportions over timeStacked area + stacked bar (dual panel)Showing both relative and absolute trends
Categorical comparisonBar chart, violin (linear scale only)Group means or distributions
Phylogenetic annotationiTOL datasetsTree visualization with metadata

Publication Figure Checklist

Before Creating

  • Choose colorblind-safe palette (Okabe-Ito recommended)
  • Plan figure dimensions within Claude's 8000px limit
  • Decide on panel layout (side-by-side vs stacked)

During Creation

  • Include sample sizes in legends: Category (n=123)
  • Use integer year labels: ax.xaxis.set_major_locator(plt.MaxNLocator(integer=True))
  • Set explicit axis limits when adding annotations
  • Reduce element sizes for dense data (s=25, alpha=0.5)
  • Use bbox_inches='tight' when saving

After Creation

  • Verify image dimensions (max 7999x7999 for Claude)
  • Check annotations are within plot bounds
  • Test colorblind accessibility
  • Save at 300 DPI minimum for publication

For Temporal Analyses

  • Create both all-data and cleaned versions
  • Calculate statistics on FULL dataset (not cleaned)
  • Document outlier removal method and retention rate
  • Use clear file naming: figure.png vs figure_clean.png

Quick Reference: Safe Figure Sizes (300 DPI)

FIG_SIZES = {
    'single_column': (3.5, 4),      # 1050x1200 px
    'double_column': (7, 5),        # 2100x1500 px
    'full_page': (7, 9),            # 2100x2700 px
    'poster': (20, 15),             # 6000x4500 px
    'max_claude': (26, 26),         # 7800x7800 px
}

Quick Reference: Okabe-Ito Colors (3 Categories)

colors = {
    'Category_A': '#0072B2',    # Blue
    'Category_B': '#E69F00',    # Orange
    'Category_C': '#CC79A7'     # Reddish Purple
}

Best Practices Summary

  1. Always check log-scale plots - Verify KDE-based plots against histograms
  2. Test element sizes - Regenerate with different sizes for optimal clarity
  3. Explicit axis limits - Don't rely on auto-limits when annotations are added
  4. Consistent styling - Use seaborn context and style for publication consistency
  5. High DPI - Save at 300 DPI minimum (dpi=300, bbox_inches='tight')
  6. Optimize axis ranges - Zoom to data range when distributions are compressed
  7. Check image dimensions - Verify size before sharing with Claude (max 7999x7999)
  8. Set size constraints - Use safe figure sizes when generating images programmatically
  9. Temporal trends with outliers - Create both cleaned (publication) and full (verification) versions
  10. Include sample sizes - Always show n= in legends for comparative figures

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.11%
按下载量换算57

Claude

29.62%
按下载量换算47

Cursor

20.22%
按下载量换算32

Gemini CLI

9.5%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills