agentleFS
ChrisGVEChrisGVE/localdata-mcp/skills/modeling/regression/SKILL.md

regression

Skill4 starsChanged 15 months agoApache-2.0View on GitHub

Build and evaluate regression models to predict a target variable. Use when modeling relationships between features and an outcome.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Explore available features: Call describe_database with the database name.

    line 16
  2. Very specific:

    Extract and inspect data: Call execute_query to select the target column and candidate feature columns.

    line 18
  3. Very specific:

    Build a linear baseline: Call analyze_regression with the database name, target column, feature columns, and model type "linear".

    line 20
  4. Very specific:

    Evaluate baseline performance: Call evaluate_model_performance to get detailed metrics: RMSE, MAE, R-squared, and residual analysis.

    line 22
  5. Distinctive:

    Interpret baseline results: Check for:

    line 24
  6. Very specific:

    Try alternative models if needed: If the linear baseline performs poorly (R-squared below 0.5 or patterned residuals), call …

    line 30

≈ “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

Regression

Build, evaluate, and compare regression models to predict a target variable from features.

Steps

  1. Parse arguments. Extract the database name and target column from $ARGUMENTS. The first argument is the database name, the second is the target variable to predict.
  2. Explore available features. Call describe_database with the database name. Identify numeric columns as potential predictors. Note the target column's distribution (continuous vs discrete) to confirm regression is appropriate.
  3. Extract and inspect data. Call execute_query to select the target column and candidate feature columns. Check for nulls, outliers, and sufficient row count (at least 30 observations per feature as a rule of thumb).
  4. Build a linear baseline. Call analyze_regression with the database name, target column, feature columns, and model type "linear". Review the results: R-squared, adjusted R-squared, coefficients, p-values, and residual diagnostics.
  5. Evaluate baseline performance. Call evaluate_model_performance to get detailed metrics: RMSE, MAE, R-squared, and residual analysis. Assess whether the linear model captures the relationship adequately.
  6. Interpret baseline results. Check for:
    • R-squared below 0.3: poor fit, consider non-linear models
    • Features with p-values above 0.05: candidates for removal
    • Multicollinearity: correlated predictors inflating variance
    • Residual patterns: non-random residuals suggest model misspecification
  7. Try alternative models if needed. If the linear baseline performs poorly (R-squared below 0.5 or patterned residuals), call analyze_regression with alternative model types:
    • "ridge" for multicollinearity issues
    • "lasso" for feature selection (many predictors)
    • "polynomial" for curved relationships
  8. Compare models. For each model fitted, compare R-squared, RMSE, and MAE. Select the model with the best balance of performance and interpretability. Simpler models are preferred when performance is comparable.
  9. Present the final model. Report:
    • Selected model type and rationale
    • Key performance metrics (R-squared, RMSE, MAE)
    • Most important features and their coefficients
    • Practical interpretation of the model equation
    • Limitations and assumptions
  10. Recommend next steps. Suggest validating on held-out data, running /localdata-mcp:analyze-correlations to find additional predictors, or using /localdata-mcp:cluster-analysis to identify subgroups where the model performs differently.

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.