agentleFS
WindcleaverDevWindcleaverDev/regkit/.agents/skills/pre-analysis/SKILL.md

pre-analysis

Skill0 starsChanged 5 months agoMITView on GitHub

Audit tabular data before fitting any regression — target distribution and skewness, feature types and missingness, multicollinearity (pairwise correlation + VIF), suspected nonlinearity, univariate outliers, and concrete modeling recommendations (which transforms to apply, which features to drop or combine, which estimator family to use). Produces a structured PreAnalysisReport and a standalone HTML report. Use this skill whenever the user is about to fit a model and hasn't done EDA yet, asks "what should I do with this data?", "should I transform anything?", "is this data ready to model?", or hands over a CSV with a target in mind but no clear modeling plan. Run this BEFORE linear-regression or logistic-regression to avoid refit cycles.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any fit skill — especially before linear-regression if heteroscedasticity or skew is plausible

    line 15
  2. Very specific:

    Read the warning block first (flags field, severity HIGH first).

    line 38
  3. Very specific:

    If target.recommendations includes log_transform, suggest passing --log-target to the subsequent fit skill.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

pre-analysis

Audits tabular data and recommends modeling choices before any fit. Produces a PreAnalysisReport JSON validating against the pack schema and a standalone HTML report.

When this skill fires

  • User has tabular data + identified target, but hasn't fitted yet
  • User asks for EDA, data audit, "what should I do with this data?"
  • User asks whether to transform variables before modeling
  • Before any fit skill — especially before linear-regression if heteroscedasticity or skew is plausible

Inputs

  • --data <path> — CSV or Parquet
  • --target <column> — target variable (continuous, binary, or count)
  • --features <a,b,c> — comma-separated predictor columns, or all to use every non-target column
  • --output <dir> — output directory

How to invoke

uv run python .agents/skills/pre-analysis/scripts/audit.py \
    --data path/to/data.csv \
    --target price \
    --features all \
    --output results/

Outputs results/pre_analysis.json (PreAnalysisReport) and results/pre_analysis.html.

Verbalising the output

Read the warning block first (flags field, severity HIGH first). Then walk through modeling_recommendations — these are the concrete actions the user should take before fitting. Do not skip the recommendations to dive into raw distributions; the recommendations are the deliverable.

If target.recommendations includes log_transform, suggest passing --log-target to the subsequent fit skill. If multicollinearity.flagged is non-empty, suggest either dropping features or using regularized-regression with ridge.

Chaining

The typical next step is one of:

  • linear-regression (continuous target, OK assumptions) — pass any recommended transforms
  • logistic-regression (binary target)
  • regularized-regression (multicollinearity flagged)

Reference files

  • references/transformations.md — when to log/sqrt/Box-Cox/Yeo-Johnson
  • references/encoding.md — categorical encoding choices
  • references/vif_remediation.md — what to do about multicollinearity

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.