agentleFS
gjbexgjbex/scientific-computing-skills/skills/scientific-data-analysis-and-visualization/SKILL.md

scientific-data-analysis-and-visualization

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Analyze and visualize scientific results in a defensible,

The file

Show its rules and text

We split this skill into the rules it gives an agent

31 rules. About 0 are common, 25 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈25

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when turning scientific outputs, benchmark results, simulation data, measurements, or validation results into tables, …

    line 10
  2. Distinctive:

    Use this skill when:

    line 28
  3. Distinctive:

    When this skill applies:

    line 42
  4. Distinctive:

    Read the repository AGENTS.md first, if present.

    line 44
  5. Distinctive:

    Prefer reproducible scripts or notebooks that can be rerun from documented inputs.

    line 48
  6. Distinctive:

    Do not optimize for decorative plots before the comparison, uncertainty, and scientific claim are clear.

    line 53
  7. Distinctive:

    Do not migrate plotting frameworks only for preference.

    line 71
  8. Distinctive:

    Start from the comparison or claim the user needs to support.

    line 77
  9. Distinctive:

    Keep filtering, grouping, normalization, and aggregation explicit.

    line 79
  10. Distinctive:

    Check missing data, failed runs, censored values, and outliers before plotting.

    line 80
  11. Distinctive:

    Keep raw measurements available when summaries could hide important variability.

    line 84
  12. Very specific:

    Use gnuplot as a practical option when:

    line 111
  13. Very specific:

    Keep gnuplot scripts under version control when they are part of the repository contract.

    line 119
  14. Distinctive:

    Prefer a checked-in script such as:

    line 123
  15. Very specific:

    Do not use ad hoc interactive gnuplot sessions as the only way to reproduce a figure.

    line 135
  16. Distinctive:

    If uncertainty is unknown, say so explicitly instead of implying precision.

    line 149
  17. Distinctive:

    avoid comparing debug builds with optimized builds unless that is the point.

    line 159
  18. Very specific:

    Use scientific-cli-benchmark for timing collection and scientific-profiling for bottleneck diagnosis.

    line 162
  19. Distinctive:

    Keep analysis scripts under version control.

    line 167
  20. Distinctive:

    Keep generated figures and tables in documented output locations.

    line 168
  21. Distinctive:

    Avoid committing generated plots unless they are part of the repository's documentation or release contract.

    line 169
  22. Distinctive:

    Prefer one obvious command to regenerate important figures or reports.

    line 174
  23. Very specific:

    Use scientific-reproducibility when run metadata or provenance capture needs implementation work.

    line 176
  24. Distinctive:

    Keep notebooks as reviewable analysis artifacts, not the only home of core logic.

    line 181
  25. Very specific:

    Use scientific-notebook-workflows if that skill is added later.

    line 189
  26. Distinctive:

    When producing a result summary:

    line 193
  27. Distinctive:

    call out caveats, missing data, and untested explanations.

    line 199
  28. Distinctive:

    Check figure files or tables were regenerated where expected.

    line 208
  29. Distinctive:

    Verify that ignored/generated artifacts are handled intentionally.

    line 211
  30. Distinctive:

    If data are too large to analyze fully, use a documented subset and state the limitation.

    line 212
  31. Distinctive:

    When using this skill, briefly note:

    line 227

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Scientific Data Analysis And Visualization

Use this skill when turning scientific outputs, benchmark results, simulation data, measurements, or validation results into tables, figures, summaries, or decision-relevant analysis.

Repository AGENTS.md instructions take precedence over this skill.

Purpose

Apply a pragmatic default for:

  • choosing analyses and visualizations that match the scientific question;
  • preserving provenance from raw data to derived figures and tables;
  • showing uncertainty, variability, and comparison baselines honestly;
  • making analysis scripts rerunnable and reviewable;
  • avoiding misleading plots, aggregations, and statistical summaries.

When To Use

Use this skill when:

  • benchmark, profiling, simulation, experiment, or validation outputs need to be summarized;
  • results need figures, tables, or comparison reports;
  • the user asks what a dataset or result set shows;
  • uncertainty, variance, scaling, or outliers affect interpretation;
  • analysis code or plotting workflows need cleanup.

This skill is mostly programming-language and framework agnostic. Use the repository's existing analysis stack when it is already clear and working.

Working Approach

When this skill applies:

  1. Read the repository AGENTS.md first, if present.
  2. Identify the scientific question before choosing a plot or statistic.
  3. Inspect data provenance, units, dimensions, and missing-value behavior.
  4. Separate raw data, cleaned data, derived summaries, and generated figures.
  5. Prefer reproducible scripts or notebooks that can be rerun from documented inputs.
  6. State what was analyzed, what was visualized, and what interpretation limits remain.

Do not optimize for decorative plots before the comparison, uncertainty, and scientific claim are clear.

Language and Framework Position

Prefer repository-native tools:

  • Python projects may use Matplotlib, Seaborn, Plotly, Altair, pandas, Polars, NumPy, xarray, or domain-specific libraries;
  • R projects may use ggplot2, tidyverse, data.table, lattice, or base graphics;
  • Julia projects may use Makie, Plots, Gadfly, AlgebraOfGraphics, DataFrames, or domain-specific plotting tools;
  • command-line workflows may produce CSV, JSON, Parquet, NetCDF, HDF5, images, or Markdown/HTML reports.
  • command-line workflows may use gnuplot when it is available and the project benefits from lightweight, scriptable plotting without a larger language runtime.

Do not migrate plotting frameworks only for preference. Change tools only when the current stack cannot represent the analysis clearly, reproducibly, or maintainably.

Analysis Design

  • Start from the comparison or claim the user needs to support.
  • Preserve units and scales through every derived table.
  • Keep filtering, grouping, normalization, and aggregation explicit.
  • Check missing data, failed runs, censored values, and outliers before plotting.
  • Compare like with like: same inputs, hardware context, compiler settings, seeds, versions, or data preprocessing where relevant.
  • Keep raw measurements available when summaries could hide important variability.

A figure should answer a question, not merely display available columns.

Visualization Choices

Prefer:

  • line plots for ordered trends, scaling curves, convergence, or time series;
  • scatter plots for relationships and outliers;
  • bar charts for a small number of categorical comparisons;
  • box, violin, or interval plots for distributions and variability;
  • heatmaps for dense matrix-like comparisons;
  • small multiples when comparisons share scales and structure;
  • tables when exact values matter more than visual pattern detection.

Avoid:

  • 3D plots unless the third dimension is genuinely useful;
  • dual axes unless the relationship is unambiguous and clearly labeled;
  • truncated axes that exaggerate differences without disclosure;
  • pie charts for scientific comparison work;
  • excessive smoothing that hides data or implies unsupported continuity.

Command-Line Plotting

Use gnuplot as a practical option when:

  • the project already has command-line data products such as CSV or TSV files;
  • plots should be generated in shell-oriented workflows or batch jobs;
  • installing a full Python/R/Julia plotting stack would be unnecessary;
  • the desired output is a simple, reproducible line, scatter, histogram, or comparison plot.

Keep gnuplot scripts under version control when they are part of the repository contract. Make input filenames, output filenames, terminal type, axis labels, units, and legends explicit.

Prefer a checked-in script such as:

scripts/plot-results.gp

with a documented command:

gnuplot scripts/plot-results.gp

Do not use ad hoc interactive gnuplot sessions as the only way to reproduce a figure.

Uncertainty and Variability

  • Show uncertainty when measurements or stochastic results vary.
  • Report sample size, repeats, and aggregation method.
  • Distinguish standard deviation, standard error, confidence intervals, and quantile intervals.
  • For benchmarks, report runtime variability and avoid overinterpreting tiny differences.
  • For stochastic workflows, show seed behavior or distributional summaries when one run is not representative.

If uncertainty is unknown, say so explicitly instead of implying precision.

Benchmark and Scaling Results

For performance results:

  • include baseline runtime and speedup where relevant;
  • show parallel efficiency when comparing thread or rank counts;
  • record hardware, compiler, runtime, affinity, and input size context;
  • separate warmup, failed, and timed runs;
  • avoid comparing debug builds with optimized builds unless that is the point;
  • include correctness checks that make timed cases comparable.

Use scientific-cli-benchmark for timing collection and scientific-profiling for bottleneck diagnosis.

Reproducible Analysis Artifacts

  • Keep analysis scripts under version control.
  • Keep generated figures and tables in documented output locations.
  • Avoid committing generated plots unless they are part of the repository's documentation or release contract.
  • Make figure generation deterministic when practical.
  • Record input data paths, filters, parameters, environment, and code version when figures support a public claim.
  • Prefer one obvious command to regenerate important figures or reports.

Use scientific-reproducibility when run metadata or provenance capture needs implementation work.

Notebooks

  • Keep notebooks as reviewable analysis artifacts, not the only home of core logic.
  • Factor reusable data loading, cleaning, and plotting helpers into scripts or modules when they are shared.
  • Strip or control outputs when notebook output churn would obscure review.
  • Provide a tiny input or cached summary for notebook smoke execution when notebooks are part of the project contract.

Use scientific-notebook-workflows if that skill is added later.

Reporting

When producing a result summary:

  • lead with the answer or main pattern;
  • state the data source, filters, and comparison baseline;
  • include enough numbers to verify the visual impression;
  • distinguish observation from interpretation;
  • call out caveats, missing data, and untested explanations;
  • include commands or scripts needed to regenerate the result.

Figures and tables should make the conclusion easier to audit, not harder.

Validation Defaults

  • Re-run the analysis script or smallest representative analysis when practical.
  • Check figure files or tables were regenerated where expected.
  • Inspect at least one generated figure or summary for axis labels, units, legends, scales, and missing context.
  • Verify that ignored/generated artifacts are handled intentionally.
  • If data are too large to analyze fully, use a documented subset and state the limitation.

Anti-Patterns

  • choosing a chart before defining the scientific question;
  • plotting only averages when variability determines the conclusion;
  • hiding failed runs or missing data without explanation;
  • comparing results from different environments without recording context;
  • committing large generated figures or tables without a release reason;
  • using notebook-only workflows that cannot be rerun;
  • overclaiming causality from descriptive plots.

Output Expectations

When using this skill, briefly note:

  • which data, filters, comparisons, and units were used;
  • which scripts, figures, tables, or reports were added or changed;
  • how uncertainty, variability, outliers, and failed runs were handled;
  • which regeneration or validation commands were run;
  • what interpretation limits remain.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.