Token导航 LogoToken导航

Agent Skill · 研究检索

data-analysis-patterns(数据分析模式)

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

data-analysis-patterns 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 57,503。

总安装 432周安装 18GitHub Stars 12下载 144核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

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

data-analysis-patterns 指导在聚合、重算和维护分析完整性时的关键决策。解决类别定义变更、多源合并、类型转换等问题,确保分析准确性。适用于出版级分析或 pipeline 优化,平衡性能与正确性需求。特别关注复合键处理和 DataFrame 类型一致性,避免隐性错误累积。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/data-analysis-patterns

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

data-analysis-patterns 怎么安装?

在终端执行 npx skills add https://github.com/delphine-l/claude_global --skill data-analysis-patterns。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

data-analysis-patterns 支持哪些 AI 工具?

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

data-analysis-patterns 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

data-analysis-patterns 是免费的吗?

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

data-analysis-patterns 用的人多吗?

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

data-analysis-patterns 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
data-analysis-patterns

数据分析模式 · 本页

43212只读未明确有提醒

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

SKILL.md 原文

Data Analysis Patterns

Expert guidance for making critical decisions in data analysis workflows, particularly around aggregation, recalculation, and maintaining analytical integrity.

When to Use This Skill

  • Deciding whether to recalculate from raw data vs reuse aggregated data
  • Changing category definitions in existing analyses
  • Ensuring accuracy in publication-quality analyses
  • Handling conflated features that need separation
  • Optimizing analysis pipelines without sacrificing correctness
  • Merging multi-source datasets with composite keys
  • Handling DataFrame type conversion issues during enrichment

Core Patterns

1. Recalculating vs Reusing Aggregated Data

When you have pre-aggregated data but need different categories or groupings:

  • Recalculate from raw data when category definitions fundamentally change, previously conflated features need separation, aggregation criteria change, or publication accuracy is critical
  • Approximation may be acceptable for exploratory analysis, when categories align closely, or when raw data is unavailable
  • Rule: If you can't confidently map old to new without information loss, recalculate
For detailed patterns and code examples, see data-manipulation-recipes.md

2. Composite Keys for Multi-Source Data Merging

When merging datasets from multiple sources, a single identifier often isn't unique enough:

  • Create composite keys by concatenating multiple fields with a delimiter (| or ::)
  • Always verify uniqueness after creating the composite key
  • Handle duplicates explicitly before merging (latest date, then most complete record)
  • Remove composite key before final save (temporary working column)
For implementation details, see data-manipulation-recipes.md

3. Separating Conflated Features

When one metric combines multiple independent features, separate into independent analyses:

  • Identify which features are mixed in each category
  • Create separate category systems for each independent feature
  • Enables clear interpretation and future independent analysis
For examples, see data-manipulation-recipes.md

4. DataFrame Type Conversion During Enrichment

Type mismatches are common when enriching DataFrames from external sources:

  • Check target column dtype before assignment
  • Convert values to match target dtype (easier than converting whole column)
  • Use helper functions to encapsulate type checking logic
  • Handle NaN explicitly with pd.notna() checks
For the type-safe assignment pattern and examples, see data-manipulation-recipes.md

5. AWS Data Enrichment Patterns

When enriching tabular data from AWS S3 or external repositories:

  • Use multi-source path resolution (direct lookup + path inference)
  • Auto-detect most complete input file for idempotent re-runs
  • Add columns idempotently (check before adding)
  • Use TEST_MODE for initial validation before full enrichment
For implementation patterns, see enrichment-patterns.md

6. Critical Data Validation

Column names don't always match their content. Always verify against source code before using categorical columns:

  • Locate source script and verify assignment logic
  • Add assertions for biological plausibility
  • Test with known control samples
  • Document and fix any mismatches found
For the full verification workflow and prevention checklist, see validation-patterns.md

7. Data Provenance Verification

Derived columns may use inferior sources, causing silent data loss:

  • Compare derived column coverage against likely source columns
  • Cross-tabulate to verify mapping consistency
  • Prefer reclassifying from rich source columns over merging sparse external files
For diagnostic patterns, see validation-patterns.md

8. Organizing Analysis Text for Token Efficiency

Separate computation (notebooks) from interpretation (markdown files):

  • Create analysis_files/ directory with per-figure markdown files
  • Keep notebooks for code, analysis files for interpretation
  • Token reduction: 98% (1.1M tokens notebook vs 22K tokens analysis files)
For directory structure and writing guidelines, see analysis-organization.md

9. Multi-Factor Experimental Design Analysis

When experimental design has multiple factors:

  • Use three-category design to isolate individual factor effects
  • Compare pairs controlling for one factor at a time
  • Identify synergistic, dominant, or antagonistic interactions
For interpretation framework and examples, see analysis-interpretation.md

10. Interpreting Paradoxical Results

When one category performs better on metric X but worse on related metrics Y and Z:

  • Apply the trade-off hypothesis framework
  • Document counter-intuitive results transparently
  • Explore mechanistic explanations rather than dismissing findings
For documentation patterns, see analysis-interpretation.md

11. Species Name Reconciliation

When external services use different species names than your metadata:

  • Classify mismatches into systematic replacements vs name variants
  • Use fuzzy matching for variant detection
  • Propagate corrections to ALL related files
  • Version files to track correction stages
For reconciliation workflow and code, see species-reconciliation.md

12. Phylogenetic Tree Coverage Analysis

Track what percentage of your phylogenetic tree has data available:

  • Calculate coverage metric and identify missing species
  • Categorize missing as recoverable, phylogenetic context, or unknown
  • Recover Time Tree proxy replacements from deprecated datasets
  • Document expected vs unexpected missing data
For coverage analysis workflow, see species-reconciliation.md

13. Distinguishing True Variation from Power Limitations

When analyzing multiple groups, determine if lack of effect is real or insufficient power:

  • Power limitation indicators: Small sample, trend in expected direction, category imbalance, wide CIs
  • True null indicators: Large sample with narrow CIs, opposite direction from other groups, significant in some metrics but not others
  • Report appropriately: "insufficient power" vs "no effect despite adequate power"
For reporting recommendations and examples, see analysis-interpretation.md

14. Technology Confounding Analysis

Temporal trends may reflect technology adoption rather than methodology improvements:

  • Use three-stage approach: mixed-technology baseline, technology-controlled subset, comparison
  • Test orthogonality, persistence, and temporal patterns
  • Decision matrix for whether to pool across technologies
For the systematic testing approach, see analysis-interpretation.md

15. Data Consolidation and Enrichment Workflows

When working with multiple intermediate dataset versions:

  • Follow Consolidate -> Enrich -> Verify pattern
  • Always rebuild filtered subsets from enriched master (don't manually merge)
  • Extract accurate dates from repository filenames when release dates are unreliable
For workflow details, see enrichment-patterns.md

16. Data File Compression Strategies

For large data files, compress instead of delete:

  • Decision tree: active (keep) / regenerable (delete) / archive (compress)
  • BED/VCF/FASTA compress 70-90% with gzip
  • Update scripts to read compressed files directly
  • Document compression in READMEs
For compression benchmarks and workflows, see compression-strategies.md

Key Principles

  1. Default to recalculation when category definitions change, features were conflated, or publication accuracy is needed
  2. Document approximations when used, and validate against subsets of recalculated data
  3. Separate conflated features into independent analyses for clarity
  4. Always verify column names against source code before analysis
  5. Check dtype before assignment when enriching DataFrames
  6. Rebuild filtered subsets from master rather than manually merging new columns
  7. Test for technology confounding before pooling across technology generations
  8. Compress rather than delete data files that may be needed later

Best Practices

Assess Information Loss

Before deciding to reuse aggregated data, check: Can you perfectly reconstruct raw data from aggregates? If NO, recalculate.

Document Your Decision

"""
Data source: scaffold_telomere_data.csv (n=6,356 scaffolds)
Recalculated: 2026-01-29
Reason: Previous aggregation conflated terminal and interstitial presence
Method: [describe categorization logic]
"""

Validate Against Original if Possible

original_total = df['cat1'] + df['cat2'] + df['cat3'] + df['cat4']
new_total = df['new_cat1'] + df['new_cat2'] + df['new_cat3']
assert (original_total == new_total).all(), "Category totals don't match!"

Time vs Accuracy Trade-off

  • Exploration phase: Approximations okay, clearly documented
  • Publication phase: Always recalculate for accuracy
  • Intermediate: Recalculate once, save results, reuse those

Performance Considerations

Recalculation is often faster than you think:

# Modern pandas on 10,000+ rows
df['new_cat'] = df.apply(categorize_func, axis=1)
result = df.groupby('species').agg({'new_cat': 'value_counts'})
# Often < 1 second

Optimize: use vectorized operations, filter to relevant columns, cache intermediate results.

Supporting Files

FileContent
data-manipulation-recipes.mdRecalculation patterns, composite keys, conflated features, type conversion
enrichment-patterns.mdAWS enrichment, data consolidation, date extraction, filtered dataset rebuilding
validation-patterns.mdColumn name verification, data quality checks, data provenance
analysis-interpretation.mdMulti-factor design, paradoxical results, power limitations, technology confounding
species-reconciliation.mdSpecies name reconciliation, phylogenetic tree coverage
analysis-organization.mdToken-efficient analysis text organization, statistical results population
compression-strategies.mdFile compression decision tree, benchmarks, script updates

平台分布

Codex

34.74%
按下载量换算50

Claude

31.52%
按下载量换算45

Cursor

20.8%
按下载量换算30

Gemini CLI

8.89%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills