mlflow-sagemaker
Skill89 starsChanged 35 days agoApache-2.0View on GitHub
Connect to SageMaker Managed MLflow (mlflow-app or mlflow-tracking-server ARN) as an MLflow backend, then hand off to the other MLflow skills. Triggers on a SageMaker MLflow ARN (arn:aws:sagemaker:...:mlflow-app/... or arn:aws:sagemaker:...:mlflow-tracking-server/...) or "SageMaker Managed MLflow".
- Installs packages
In this repository9 other files it gives its agents.
- mlflow-agent-improvementSkill
- mlflow-agentSkill
- mlflow-docsSkill
- mlflow-evaluationSkill
- mlflow-onboardingSkill
- mlflow-trace-analysisSkill
- mlflow-trace-instrumentationSkill
- mlflow-trace-metricsSkill
- mlflow-trace-retrievalSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
If missing, stop and give the user this installation command:
- Very specific: line 39
If exactly one is returned, use it.
- Very specific: line 56
After the connection verifies, hand off to the requested MLflow skill — it inherits the connected environment via MLFLOW_TRACKING_URI.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Connect to SageMaker MLflow
Connect using the sagemaker-mlflow plugin, an ARN tracking URI and AWS credentials.
Other MLflow skills inherit the connection through MLFLOW_TRACKING_URI.
Requires Python >= 3.10 (mlflow >= 3.8). Validate and report the fix — never auto-install the plugin or acquire credentials (mirrors the repo's Databricks pattern).
Step 1: Preconditions
python --version-> must be 3.10+. If older, STOP and tell the user.- Confirm AWS credentials resolve (env vars,
aws configure/ SSO, or an IAM role). If they error (ExpiredToken / no creds), STOP and ask the user to configure them. (scripts/verify_connection.pyalso checks this, via boto3.)
Step 2: Check the plugin
If missing, stop and give the user this installation command:
pip install sagemaker-mlflowRequired even if MLFLOW_TRACKING_URI is already an ARN — without it,
mlflow.set_tracking_uri() fails with UnsupportedModelRegistryStoreURIException.
Step 3: Select the resource ARN
- If the user already provided an ARN (or
MLFLOW_TRACKING_URIis set toarn:aws:sagemaker:...), use it as-is. - Otherwise, discover it in the user's region:
If exactly one is returned, use it; if several, list name/status/ARN and ask the user which to use. Bothpython scripts/discover_arns.pymlflow-appandmlflow-tracking-serverARNs work; the ARN is also shown on the resource's detail page in the SageMaker Studio console.
Then export it (the ARN is region-bound — a cross-region ARN will not authenticate):
export MLFLOW_TRACKING_URI="<arn>" # mlflow-app/<id> or mlflow-tracking-server/<name>
export AWS_DEFAULT_REGION="<region>" # AWS credentials resolved via the default chain (SigV4)Step 4: Verify
python scripts/verify_connection.py "$MLFLOW_TRACKING_URI"Checks all three prerequisites (plugin / credentials / ARN connectivity) and exits non-zero with a remediation hint on the first failure. Do not proceed until it passes.
After the connection verifies, hand off to the requested MLflow skill — it inherits the
connected environment via MLFLOW_TRACKING_URI.
Troubleshooting
UnsupportedModelRegistryStoreURIException— see Step 2, then repeat verification.AccessDenied/403— credentials are missing/expired, or the principal lacks MLflow permissions on the ARN. Check that credentials resolve, grantsagemaker-mlflow/sagemakerpermissions, and confirm the ARN region matchesAWS_DEFAULT_REGION.
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.

