scientific-eda
- Repo stars 34
- License MIT
- Author updated Live
- Author repo skills
- Domain
- Data
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 94 / 100 · audit passed
- Author / version / license
- @ericmjl · MIT
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- Python
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: scientific-eda
description: Defensive exploratory data analysis for scientific data (CSV, FASTA, etc.). Context-first, human…
category: data
runtime: Python
---
# scientific-eda output preview
## PART A: Task fit
- Use case: Defensive exploratory data analysis for scientific data (CSV, FASTA, etc.). Context-first, human-guided; one plot at a time, ask why before executing, append-only journal per session, scripts with PEP723 and uv run, WebP plots. Use when opening data files for EDA or when the user wants guided scientific data exploration..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Usage / Requirements / What It Does” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Defensive exploratory data analysis for scientific data (CSV, FASTA, etc.). Context-first, human-guided; one plot at a time, ask why before executing, append-only journal per session, scripts with PEP723 and uv run, WebP plots. Use when opening data files for EDA or when the user wants guided scientific data exploration.”.
- **02** When the source has headings, the agent prioritizes “Usage / Requirements / What It Does” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “Usage / Requirements / What It Does”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: scientific-eda
description: Defensive exploratory data analysis for scientific data (CSV, FASTA, etc.). Context-first, human…
category: data
source: ericmjl/skills
---
# scientific-eda
## When to use
- Defensive exploratory data analysis for scientific data (CSV, FASTA, etc.). Context-first, human-guided; one plot at a…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Usage / Requirements / What It Does” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "scientific-eda" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Usage / Requirements / What It Does
rules -> SKILL.md triggers / order / output contract
runtime -> Python | read files, write/modify files, run shell commands | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Scientific exploratory data analysis
This skill guides defensive, human-led exploratory data analysis on scientific data. The agent does not open files and dump code; it captures problem context first, helps narrow to a single first step, takes instruction from the user, and asks "why?" before executing when the user requests a specific plot or table.
Usage
Use this skill when the user provides one or more data files (CSV, FASTA, or other scientific formats) and wants to explore or analyze them. Start by capturing context—do not load or plot data until the problem (biological, chemical, or data-science question) is clearly stated and the agent is aligned as a guided assistant.
Requirements
- uv for running Python scripts: every script uses PEP723 inline script metadata and is run with
uv run script.py. Do not run ad-hoc Python or raw interpreters; each script declares and manages its own dependencies. - Ability to read the relevant data formats (pandas, BioPython, etc.) via dependencies declared in the script block.
What It Does
- Context first – Capture and record the problem context (what question, what domain) before touching the data.
- Single first step – Help the user narrow to one first plot or one first summary (not a barrage of code or plots).
- Human-guided execution – Take instruction on what to do next; when the user says "make this plot" or "give me that table," ask why before doing it, then execute.
- Session layout – Each analysis is a session: one folder under
analysis/with a descriptive name and start date/time, containingjournal.md,plots/, andscripts/. - Journal – Append-only
journal.mdper session: record data shape (columns, rows, structure), what was done, and findings. - Scripts and plots – Throwaway scripts in
scripts/(PEP723,uv run); plots saved as WebP (not PNG) for small file size; all under the session folder. - Suggest next step – After each action, suggest the most logical next step and let the user decide.
How It Works
Phase 1: Capture context (before touching data)
- Do not open the data file and start coding or plotting.
- Ask for or confirm: the problem context—biological, chemical, or data-science question; what the user hopes to learn or decide; and any constraints (e.g. specific variables, subsets).
- Record this in the session’s
journal.md(see Phase 3). Only after context is recorded and agreed, proceed to inspect data shape and plan the first step.
Phase 2: Start a data analysis session
- Create one session folder under
analysis/(or a project-agreed base). Name it descriptive + ISO datetime at session start, e.g.analysis/2025-02-05T14-30-00-protein-binding/. - Canonical layout for each session folder:
journal.md– append-only running journal for this sessionplots/– all figures (WebP only for matplotlib)scripts/– disposable scripts that load data, summarize, or make plots
- Session folder name must include date/time and a short descriptive slug so sessions are sortable and identifiable. See references/session-structure.md for the canonical tree.
Phase 3: Journal (append-only, per session)
- Before each substantive action, read the session’s
journal.md. - Record in the journal:
- Data shape: after loading or inspecting the data, jot columns (and types if relevant), row count, and any structure (e.g. multi-index, FASTA count, key fields). Do this as soon as shape is known and after any major data step.
- What was done (which script, which plot, which summary)
- Findings, surprises, and follow-up ideas
- Use a timestamp per entry (e.g. ISO or compact
YYYY-MM-DD HH:MM). - Tags like
[SHAPE],[PLOT],[FINDING],[NEXT]keep the journal scannable. The journal is the session’s memory; use it to suggest the next step.
Phase 4: Understand shape, then one first step
- Shape of the data: Before proposing or making plots, ensure the agent (and user) knows: what columns/fields exist, how many rows/records, and any critical structure. Record this in
journal.mdunder a[SHAPE]entry. - Single first plot (or table): Help the user choose one first visualization or summary (e.g. one distribution, one overview table). Do not generate many plots at once; get alignment on that single step, then execute.
Phase 5: Human-guided execution and "ask why"
- Take instruction: The user may ask for a specific plot, table, or filter. Execute only after clarity.
- Ask why before doing: When the user says "make this plot" or "give me that table," briefly ask why (e.g. what decision or question it supports). Then run the script and record the outcome in the journal.
- After each action: Suggest the most logical next step (one step), and let the user confirm or redirect. Do not auto-execute a long pipeline.
Phase 6: Scripts (disposable, PEP723, uv run)
- All Python used for this EDA lives in scripts under the session’s
scripts/folder. - Every script has PEP723 inline script metadata at the top (
# /// script,requires-python,dependencies,# ///). Run withuv run script.py(oruv run scripts/script_name.pywith CWD = session folder). Do not run rawpythonor paste code in a REPL; the script is the unit of execution and owns its environment. - Scripts are throwaway: they are for this session’s plots and summaries, not production. Paths in scripts are relative to the session folder (e.g.
../data/file.csvor as agreed).
Phase 7: Plots (WebP only for matplotlib)
- Save all matplotlib (and similar) figures as WebP, not PNG, to keep image sizes small. Use e.g.
fig.savefig("plots/overview.webp", format="webp"). - Write plot files into the session’s
plots/directory. Name files descriptively (e.g.distribution_response.webp,first_ten_records.webp). - Reference these plots in the journal when you record what was done.
When EDA is in a Marimo notebook
When the user conducts this EDA workflow in a Marimo notebook (instead of scripts in scripts/), follow the same phases above (context first, one step, journal, ask why). In addition:
- Markdown before and after code: For each code cell in the notebook, add markdown cells before and after that explain what the code does and what the results mean. The markdown before sets up intent; the markdown after summarizes or interprets the output.
See references/marimo-notebook-eda.md for the canonical convention.
Guardrails
- Context before data – Do not open or analyze the data until the problem context is stated and recorded in the session journal.
- One first step – Propose and agree on a single first plot or summary; do not generate a large block of code or many plots in one go.
- Ask why – When the user requests a specific plot or table, ask why (what question or decision it serves) before executing.
- Journal as memory – Read and append to the session’s
journal.md; record data shape and findings so the next step is informed. - Scripts only via uv run – No ad-hoc Python; every script has PEP723 metadata and is run with
uv run script.py. - WebP for plots – Use WebP for matplotlib (and similar) output; do not save as PNG by default.
- Suggest, don’t assume – After each action, suggest one logical next step and wait for the user to confirm or change direction.
- Marimo notebooks – When EDA is in a Marimo notebook, add markdown cells before and after each code cell to explain intent and results (see references/marimo-notebook-eda.md).
Decide Fit First
Design Intent
How To Use It
Boundaries And Review