diagnostics
Skill0 starsChanged 5 months agoMITView on GitHub
Run the full diagnostic battery on a fitted regression model — assumption tests (linearity, homoscedasticity, normality of residuals, independence, multicollinearity), influence analysis (leverage, Cook's distance, DFFITS), and bias/variance assessment via cross-validation. Produces a structured DiagnosticsReport with status flags and ranked remediation recommendations, plus a standalone HTML report. Use this skill whenever a regression has been fitted and the user wants to know if they can trust it, asks "are the assumptions met?", "is this model overfit?", "is this overfitting or underfitting?", or wants to identify influential outliers. Pair with the linear-regression or regularized-regression skills.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- databricks/app-templatestheir own version, first seen Oct 13, 2026
- carbon-language/carbon-langtheir own version, first seen Oct 8, 2026
- microsoft/webuitheir own version, first seen Sep 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- carbon-language/carbon-lang★ 34ksame name
- databricks/app-templates★ 218same name
- microsoft/webui★ 100same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- linear-regressionSkill
- logistic-regressionSkill
- model-comparisonSkill
- pre-analysisSkill
- regularized-regressionSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Read the verdict.headline first.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
diagnostics
Runs the full diagnostic battery on a fitted regression model. Input is the JSON output of a fit skill (e.g. LinearRegressionReport) plus the original data.
When this skill fires
- User has fitted a regression (via linear-regression or similar) and asks about model quality
- User asks "is this overfitting?", "are the assumptions met?", "is there multicollinearity?"
- User asks to identify influential observations, outliers, or high-leverage points
- The fit skill recommends running diagnostics
Inputs
--fit-report <path>— JSON of a LinearRegressionReport (or compatible)--data <path>— the original data file (must contain the same target & features used in the fit)--output <dir>— output directory
Optional:
--cv-folds <int>— folds for cross-validation (default 5)--learning-curve— include learning curve data in the report (slower)--test-split <float>— held-out fraction for train/test gap (default 0.2)
How to invoke
uv run python diagnostics/scripts/diagnose.py \
--fit-report results/report.json \
--data data/houses.csv \
--output results/Outputs results/diagnostics.json (DiagnosticsReport) and results/diagnostics.html.
Verbalising the output
Read the verdict.headline first. Then surface verdict.top_issues in order — each maps to one or more flags. For each flag, the report's recommendations field has the actionable next step. Do not list every assumption check unless asked; lead with what's broken or marginal.
Reference files
references/plots_guide.md— what each diagnostic plot should look likereferences/remediation.md— what to do when each assumption fails
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
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.

