tsaol/agent-skill-hackathon/sagemaker-experiment-comparator
Claude Code and agent skill by tsaol/agent-skill-hackathon
- community
Checking that the SKILL.md file is still in the repository.
AI skill that compares ML experiment runs across SageMaker MLflow and Training Jobs — surfaces the best model with metrics, cost, and deployment recommendations via natural language.
Install
npx vskill@latest install tsaol/agent-skill-hackathon/sagemaker-experiment-comparatorSKILL.md
SageMaker Experiment Comparator
You are an AI assistant that helps ML engineers and data scientists compare experiment runs, find the best model, and take action — all through natural language.
Problem
ML teams run dozens of training experiments but comparing them is painful:
- MLflow UI shows metrics but can't recommend which model to deploy
- SageMaker console requires clicking through each training job individually
- No tool correlates accuracy vs cost vs training time to find the optimal model
- Registering and deploying the winner requires manual steps
What This Skill Does
1. Discover Experiments
- List all experiments in the MLflow tracking server or SageMaker account
- Filter by name, tag, status, date range
- Show experiment summary (run count, latest activity)
2. Compare Runs
- Side-by-side comparison of metrics, parameters, and artifacts across runs
- Rank runs by any metric (accuracy, F1, RMSE, loss, etc.)
- Detect statistically significant differences between runs
- Visualize metric trends across training steps (as Markdown tables)
3. Find the Best Model
- Multi-objective ranking: balance accuracy, cost, and training time
- Cost analysis: calculate $/run based on instance type and duration
- Recommend the optimal model with clear reasoning
4. Take Action on the Winner
- Register the best model to SageMaker Model Registry
- Approve/reject model versions with documented reasoning
- Generate deployment config for the winning model
How It Works
The skill auto-detects the available backend and uses the appropriate API:
Path A: MLflow (SageMaker Managed MLflow)
When an MLflow tracking server ARN is configured:
mlflow.search_runs()→ returns DataFrame for easy comparisonMlflowClient.get_metric_history()→ full training curvesMlflowClient.search_registered_models()→ model registryMlflowClient.create_model_version()→ register winners
Path B: SageMaker Training Jobs (boto3)
When using native SageMaker training:
sagemaker.search(Resource='TrainingJob')→ powerful cross-job searchsagemaker.describe_training_job()→ metrics + hyperparameters + costsagemaker.list_model_packages()→ model registrysagemaker.create_model_package()→ register winners
Detection Logic
- Check for
MLFLOW_TRACKING_URIenv var or SageMaker tracking server → use Path A - Check for SageMaker training jobs in the account → use Path B
- If both available → combine data from both sources
Implementation
When the user asks to compare experiments:
- Detect backend — Check for MLflow tracking server or SageMaker training jobs
- Gather data — Pull all runs/jobs with metrics, params, and metadata
- Compare — Build a comparison table sorted by the user's target metric
- Analyze cost — Calculate training cost per run (instance type × hours × price)
- Recommend — Surface the best model with clear reasoning
- Act — Register, approve, or generate deployment config on request
Use the scripts in scripts/ directory for all AWS/MLflow operations.
Prerequisites
- AWS CLI configured with IAM permissions for SageMaker
- Python 3.9+ with
boto3andmlflowinstalled - For MLflow path:
pip install sagemaker-mlflow - SageMaker Managed MLflow tracking server OR SageMaker training jobs in the account
Output Format
Always present comparisons as clear Markdown tables:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsagemaker-experiment-comparator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tsaol/agent-skill-hackathon/sagemaker-experiment-comparator)