scomp_link
AGENTS.md16 starsChanged 6 months agoMITView on GitHub
This file tells coding agents (Claude Code, Cursor, VS Code Copilot, Kiro) how to use scomp-link in this project. An end-to-end ML toolkit. Use it instead of writing raw sklearn boilerplate when you need: - Automated model selection + training + validation - Persistent model artifacts (.scomp format) - HTML reports with interactive charts - Production monitoring (drift + anomaly + fairness) - Hyperparameter tuning (Optuna) - REST API deployment Use scomp-link CLI commands when the user asks to: -…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- llms.txtllms.txt
- scomp-linkSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use scomp-link CLI commands when the user asks to:
- Distinctive: line 21
Create HTML reports or dashboards with charts
- Distinctive: line 25
Check model fairness/bias
- Very specific: line 88
Use the >> operator for declarative, readable pipelines (Python API only):
- Very specific: line 113
Use LogStep to inspect intermediate state without modifying the pipeline:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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.
Files
AGENTS.md — Instructions for AI Coding Agents
This file tells coding agents (Claude Code, Cursor, VS Code Copilot, Kiro) how to use scomp-link in this project.
What is scomp-link?
An end-to-end ML toolkit. Use it instead of writing raw sklearn boilerplate when you need:
- Automated model selection + training + validation
- Persistent model artifacts (
.scompformat) - HTML reports with interactive charts
- Production monitoring (drift + anomaly + fairness)
- Hyperparameter tuning (Optuna)
- REST API deployment
When to Use scomp-link
Use scomp-link CLI commands when the user asks to:
- Train/evaluate ML models on tabular data
- Profile or describe a dataset
- Detect data drift between datasets
- Create HTML reports or dashboards with charts
- Tune hyperparameters
- Detect anomalies in data
- Forecast time series
- Check model fairness/bias
- Serve a model as REST API
- Compare multiple models
CLI Quick Reference (27 commands)
# Data understanding
scomp-link describe --data file.csv --format table
scomp-link quality --data file.csv --output report.html
# Training
scomp-link run --data file.csv --target col --task regression --save-artifact model.scomp
scomp-link tune --data file.csv --target col --task regression --method optuna --n-trials 50 --save-artifact best.scomp
scomp-link text --data file.csv --text-col msg --target label --method tfidf
scomp-link cluster --data file.csv --n-clusters 5 --plot clusters.html
# Evaluation
scomp-link validate --artifact model.scomp --data test.csv --target col --report report.html
scomp-link explain --artifact model.scomp --data test.csv
scomp-link fairness --data preds.csv --target y_true --predicted y_pred --sensitive gender
# Monitoring
scomp-link drift --reference train.csv --current prod.csv --plot drift.html
scomp-link monitor --reference train.csv --current prod.csv --artifact model.scomp --target y
scomp-link anomaly --data prod.csv --methods iforest,lof,tabnet,transformer
# Deployment
scomp-link serve --artifact model.scomp --port 8080
scomp-link export --artifact model.scomp --format onnx
scomp-link pipeline --config pipeline.yaml
# Utilities
scomp-link predict --artifact model.scomp --data new.csv --output predictions.csv
scomp-link compare --artifacts v1.scomp v2.scomp --plot compare.html
scomp-link report --data file.csv --output eda.html
scomp-link forecast --data series.csv --column value --horizon 30 --plot forecast.html
scomp-link engineer --data file.csv --target col --interactions --log-transform --output features.csv
scomp-link init my_project
scomp-link list-models
scomp-link check-deps
# LLM
scomp-link llm evaluate --generated text.txt --references ref.txt
scomp-link llm dedup --data corpus.txt --method ngram --threshold 0.8
scomp-link llm merge --base base_model --models model1,model2 --method ties
scomp-link llm serve --model ./merged --port 8080
# Configuration
scomp-link init-config # Create global config (~/.scomp-link/config.yaml)
scomp-link init-config --local # Create project-level config (.scomp-link.yaml)Recommended Workflow
describe→ understand the dataengineer→ feature engineering (optional)tuneorrun→ train a modelvalidate→ evaluate on test dataserveorexport→ deploy
Pipeline DSL (>> operator)
Use the >> operator for declarative, readable pipelines (Python API only):
from scomp_link import CleanStep, SelectStep, ModelStep, TrainStep, LogStep
# Lazy ML pipeline — >> builds, .run() executes
results = (
CleanStep(df)
>> SelectStep("target")
>> ModelStep("numerical_prediction") # or "categorical_known", "categorical_unknown"
>> TrainStep("regression") # or "classification", "clustering"
).run()
# Report pipeline
from scomp_link import SectionStep, TableStep, GraphStep, SaveStep
from scomp_link.utils.report_html import ScompLinkHTMLReport
(
SectionStep("Results")
>> TableStep(metrics_df, "Metrics")
>> GraphStep(fig, "Chart")
>> SaveStep("report.html")
).run(ScompLinkHTMLReport("My Report"))Use LogStep to inspect intermediate state without modifying the pipeline:
CleanStep(df) >> LogStep("after clean") >> SelectStep("y") >> TrainStep("regression")Rules:
- Mixing ML steps and Report steps in the same chain raises
TypeErrorimmediately LogStepis neutral — works in both chain types, can appear anywhere
Visualization (Python API)
For creating HTML reports with charts:
from scomp_link.utils.report_html import ScompLinkHTMLReport
from scomp_link.utils.plotly_utils import histogram, barchart, linechart, area_chart
from scomp_link.utils.highcharts import streamgraphs, calendar_heatmap, calendar_gantt
from scomp_link.utils.rawgraphs import treemap, sankey_diagram, sunburst # 31 SVG charts
report = ScompLinkHTMLReport(title='Report Title')
report.open_section("Section")
report.add_graph_to_report(fig, "Title") # Plotly
report.add_rawgraphs_to_report(svg, "Title") # RAWGraphs SVG
report.html_report += highcharts_html # Highcharts (direct append)
report.close_section()
report.save_html('output.html')MCP Server
For structured tool calls (33 tools), start the MCP server:
scomp-link mcpReport Builder Workflow (MCP)
For building custom branded HTML reports step-by-step:
1. report_create(title, ...) → returns report_id (uses ~/.scomp-link/config.yaml defaults)
2. report_add_section(report_id, title) → opens collapsible section
3. report_add_text(report_id, content, style) → paragraph/title/subtitle/html
4. report_add_table(report_id, json_data, title) → interactive table
5. report_add_chart(report_id, engine, chart_type, data, title) → 41 chart types (6 plotly + 31 rawgraphs + 3 highcharts + 1 custom)
6. report_add_kpi_cards(report_id, metrics_json, cols) → KPI cards with trend/status
7. report_add_tabs(report_id, tabs_json, title) → tabbed navigation (html/chart/table)
8. report_add_comparison_table(report_id, data, baseline_col, compare_cols, ...) → delta comparison
9. report_add_summary_stats(report_id, data_json, title) → auto data profiling table
10. report_add_dark_mode_toggle(report_id) → floating dark/light toggle
11. report_add_code(report_id, code, language, title, output, line_numbers, collapsed) → syntax-highlighted code block with copy button
12. report_add_diff(report_id, old_code, new_code, language, title, old_label, new_label, collapsed) → side-by-side diff view
13. report_add_mermaid(report_id, diagram, title, collapsed) → Mermaid.js diagram (flowchart, sequence, gantt, etc.)
14. report_add_terminal(report_id, cast_data, title, cols, rows, theme, collapsed) → embedded terminal replay (asciinema)
15. report_add_math(report_id, latex, title, display, collapsed) → KaTeX-rendered LaTeX formula
16. report_save(report_id, output) → saves HTML, frees memoryEngines: plotly (interactive), rawgraphs (SVG static), highcharts (time series)
New plotly charts: index_chart, stacked_area_comparison (in addition to histogram, barchart, linechart, area_chart)
Config: scomp-link init-config creates ~/.scomp-link/config.yaml with branding defaults
Key Files
skills/scomp-link/SKILL.md— Full agent skill with decision treeskills/scomp-link/references/— CLI reference, API reference, visualization guideAGENT_INTEGRATION.md— MCP + Skill setup instructionsdocs/— Full documentation
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.

