/localdata-mcp:regression <database-name> <target-column>from localdata-mcp
Builds and evaluates regression models to predict a target variable from database features, including linear baselines and alternatives like ridge, lasso, and polynomial.
Ships in localdata-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build, evaluate, and compare regression models to predict a target variable from features.
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.
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.
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).
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.
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.
Interpret baseline results. Check for:
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:
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.
Present the final model. Report:
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (chrisgve/localdata-mcp) — no native marketplace selected
npx claudepluginhub p/chrisgve-localdata-mcp18 skills in this plugin
/ab-testAnalyze an A/B test experiment and provide a clear ship/iterate/no-ship recommendation. Use when evaluating experiment results./analyze-correlationsRun correlation analysis on connected data, identify strong relationships, and suggest regression models. Use when exploring relationships between variables./anomaly-detectionDetect outliers and anomalies in data using isolation forest or local outlier factor. Use when identifying unusual observations or suspicious patterns./cluster-analysisDiscover natural groupings in data using clustering algorithms with evaluation and visualization. Use when segmenting data or finding patterns./data-pipelineRun an end-to-end data analysis pipeline — connect, profile, analyze, and report. Use when performing a complete analysis workflow./data-qualityRun a thorough data quality assessment — completeness, consistency, validity, and uniqueness. Use when you need to understand data fitness before analysis.Other plugins' skills for the same job