aws-ai-ml

Created about 20 hours ago, updated about 19 hours ago

attributes
descriptionSelects, customizes, evaluates and deploys AI models on Amazon SageMaker. Use for dataset preparation, eval sets, dataset quality evaluation, or synthetic data generation, including transforming or validating training data (deduplicate/remove duplicates, split, merge, filter, clean, reformat, language-filter, detect or redact PII/personal information, or replace awk/sort/uniq/jq); auto-labeling or classifying data; human review in chat or Label Studio; choosing a model from SageMaker JumpStart or Hub, SageMakerPublicHub, or model catalog; fine-tuning models on SageMaker with SFT/DPO/RLVR/RLAIF; running Training or Processing jobs; evaluating models, gap analysis, and next steps; deploying to SageMaker or Bedrock; endpoint health, failures, latency, logs, metrics, errors, diagnosis, or optimization; configuring IAM/S3; managing MLflow; or using HyperPod, Serverless Model Customization, Nova/OSS deployment, and PySDK v3. NOT for SageMaker Ground Truth labeling jobs, Feature Store, or general AWS infrastructure.
licenseApache 2.0
license_urlhttps://github.com/aws/agent-toolkit-for-aws/blob/903433d67cc4eeab334355620373f33a0c162dd4/LICENSE
metadata{"version": "9"}
nameaws-ai-ml
notice_urlhttps://github.com/aws/agent-toolkit-for-aws/blob/903433d67cc4eeab334355620373f33a0c162dd4/NOTICE
publisherAWS
repository_urlhttps://github.com/aws/agent-toolkit-for-aws
source_urlhttps://github.com/aws/agent-toolkit-for-aws/blob/903433d67cc4eeab334355620373f33a0c162dd4/skills/core-skills/aws-ai-ml/SKILL.md
upstream_revision903433d67cc4eeab334355620373f33a0c162dd4

AWS AI/ML Model Customization

Domain expertise for fine-tuning and deploying models on Amazon SageMaker. Covers the full model customization lifecycle from planning through production deployment.

Skill update check

Run this check before any routed reference. Mention it only when an update exists or the check fails.

  1. If the system instructions, conversation, or tool results show that an aws-ai-ml update was already checked or handled, continue with the active Skill.
  2. For Kiro, Claude Code, or Codex, use its Agent Toolkit identifier as <agent>: kiro, claude-code, or codex, respectively. For other agents, continue with the active Skill.
  3. Run aws agent-toolkit check-skill-updates --agent <agent> --output json --no-cli-pager. Agent Toolkit selects its service region. Read only the aws-ai-ml result and its path; path names the installed SKILL.md. If no result or no update exists, continue with the active Skill. If the check fails, report the error and continue with the active Skill.
  4. If an update exists, show the installed version, latest version, and returned path. Explain that updating replaces the complete installed Skill and has no built-in undo, so local changes may be lost. The update creates no billable AWS resources. Ask whether to update now, then stop and wait. ⏸
  5. If the user declines, continue with the active Skill. Only after explicit approval, run aws agent-toolkit update-skill --skill-name aws-ai-ml --agent <agent> --no-cli-pager.
  6. If the update succeeds, immediately read the complete updated SKILL.md from the path returned by the check. The updated instructions replace the ones loaded earlier; continue the original workflow with them. If the update fails, report the error and stop the original workflow because the installed version is unknown.

Routing

Match the user's intent to the appropriate reference folder and load only that content.

User intent Reference When to use
Plan a model customization project, discover scope of work, resume or modify a plan references/planning/ User's request relates to model customization or deployment (fine-tuning, training, building, customizing, reviewing data, deploying or standing up a model — including selecting or deploying an off-the-shelf or base model with no training — or getting advice on approach). Always co-activate with other intents to discover full scope. Load this reference FIRST when the request matches multiple rows in this table — read its plan templates before routing to a single-action reference. Building an evaluation or test dataset from the user's own files, tables, documents, traces or logs, or from a public benchmark or dataset they name ("build an eval set from my data", "make a test set from these files", "turn my traces into an evaluation dataset", "build an eval set from this public benchmark") is this row's action even when another row's trigger appears too: the gate in references/planning/overview.md sends it to references/planning/references/eval-dataset-construction-plan.md. A split, filter or conversion of a dataset the user already has stays with dataset-transformation.
Define the business problem, success criteria, or use case spec references/use-case-specification/ User says "define my use case", "capture requirements", "what should I decide up front", or as default first step in any plan. Skip only if user explicitly declines. Not for building an eval set from the user's own data or a public benchmark or dataset they name (references/planning/references/eval-dataset-construction-plan.md).
Select or change a base model references/model-selection/ User asks which model to use, mentions a model name or family, or wants to evaluate what's available. Always activate model-selection even for known model names because the exact Hub model ID must be resolved. Recommended: route to use-case-specification first to capture requirements — this produces better filtering results. Routing to use-case-specification first is not required if user provides a specific model name/ID or declines. If intent is ambiguous (fine-tune vs deploy as-is), model-selection MUST confirm which path before proceeding. Base model filtering for deployment MUST go through select-for-deployment.md and its scripts for any final recommendation.
Choose a fine-tuning technique (SFT, DPO, RLVR, RLAIF) references/finetuning-technique/ User has decided to fine-tune and needs to choose a technique, or technique needs validation against the selected model's recipes. Requires a base model to be selected first.
Discover and understand existing catalog data to use (train / query / export / reuse / audit), or turn a raw data file or CloudWatch logs/traces into a SageMaker dataset references/data-discovery/ User says "find a dataset to train/fine-tune on", "I need a dataset for X / to build an X model", "what datasets do I have for X", "is there data about X I can reuse", "find the X table", "explain this dataset/table's schema", "query this table", "write / export / copy this table to S3", "audit / inventory / list the databases or tables in my catalog", "my data is at s3://...", "register this file as a dataset", "import my data file", or names a local file to make into a dataset. ALSO when the data to turn into a dataset already sits in a CloudWatch log group (not a file on disk) — one of four sources: Bedrock model-invocation logs, a SageMaker endpoint's OpenTelemetry (OTel) inference traces, SageMaker online-eval results, or Bedrock AgentCore runtime OTel spans. Triggers: "pull my endpoint traces into a dataset", "turn my Bedrock invocation logs into a dataset", "make a dataset from my online-eval results", "turn my AgentCore agent's runtime traces into a dataset", or naming the log group directly (for example: /aws/sagemaker/Endpoints/ with its traces stream, /aws/bedrock-agentcore/runtimes/, or the customer's Bedrock-invocation group). NOT for the traces model-quality monitoring flagged, named by id or as every trace that failed a criteria (use model-deployment). Also for references that need a dataset ARN and have only a file. Read references/data-discovery/overview.md, then the sub-workflow file it names, before answering or running any command. It routes to catalog (discover or audit existing data), query (query or export catalog data), dataset-import (turn a raw data file into a SageMaker dataset), or cloudwatch-extraction (turn CloudWatch logs/traces into a dataset — prefer it over hand-rolled raw CloudWatch/Logs-Insights calls; a direct ad-hoc query is fine when the user explicitly asks). Not for building an eval set from the user's own data (references/planning/references/eval-dataset-construction-plan.md).
Validate dataset quality and format, run quality metrics, assess diversity references/dataset-quality/ MUST LOAD when the user wants to check, validate, or evaluate a dataset. It checks the dataset's format, runs one dataset quality evaluation job (built-in metrics and spec-driven checks) and ends in a report; duplicate questions go to its deduplication sub-reference (removing duplicates stays with dataset-transformation), composition questions to its taxonomy sub-reference (us-east-1 only). This is the ONLY validated workflow for dataset quality; do not attempt it from general knowledge. Use when the user says "is my dataset okay", "check my training data", "check data quality", "run DQ metrics", "how good is my training data", "check diversity", "check toxicity", "what languages are in my dataset", "is my data all English", "does my data contain PII", "run a scorecard", "I have my own data", "evaluate my dataset", "quality evaluation", "find duplicates", "how many duplicates", "near-duplicates", "audit duplicates before removing", "what's in my dataset", "what topics does my data cover", "taxonomy of my data", "is my data balanced across tasks", or before starting any fine-tuning job. Not for building an eval set from the user's own data or a public benchmark or dataset they name (references/planning/references/eval-dataset-construction-plan.md).
Transform, deduplicate, split, merge, filter, convert schema, or clean a dataset (CodeGen, built-in operations, or BYOC) references/dataset-transformation/ User says "transform", "custom transform", "convert", "reformat", "deduplicate", "remove duplicates", "dedupe", "split", "partition", "train/validation/test split", "propose a train/eval/holdout split", "merge", "combine datasets", "filter", "keep only English rows", "filter by language", "remove PII", "redact personal data", "clean", "normalize", "fix encoding", "convert schema", "derive a field", "edit field values", "bring my own code", "run my transformer.py", "run this transformation locally", or asks to replace awk/sort/uniq/jq for a local or S3 dataset. Covers CodeGen, BYOC, and the built-in DataTransformation operators described by the live schema and operator mapping. Always route here instead of writing an ad-hoc transformation script or shell one-liner. Not for building an eval set from the user's own data or a public benchmark or dataset they name (references/planning/references/eval-dataset-construction-plan.md).
Generate synthetic data for training, database seeding, augmentation, tabular data, or any use case requiring realistic generated data references/synthetic-dataset-generation/ MUST LOAD for ANY request to generate, create, make, produce, or mock up data — records, rows, entries, samples, listings, or a table/dataset — regardless of size, regardless of whether it is fictional/example/mock data, and regardless of whether the user mentions SageMaker, training, or AI/ML. Triggers include: "generate data", "synthetic data", "augment data", "seed database", "tabular data generation", "create training data", "I need more data", "generate samples", "generate N product listings", "create N fake/mock customers", "make a sample orders table", "generate a dataset with N rows", "give me mock data as CSV/Parquet/SQLite", and any similar phrasing. A small count (e.g., 10–15 rows), fictional content, or a plain CSV/tabular ask does NOT exempt the request — still load this reference and use its workflow. Can run standalone (no finetuning-technique needed) for non-training use cases. MUST run before dataset-quality when both are present in the plan. Do NOT generate the data inline from general knowledge — this reference contains the validated generation workflow. Not for building an eval set from the user's own data or a public benchmark or dataset they name (references/planning/references/eval-dataset-construction-plan.md).
Set up human annotation or review cycles via local chat review or Label Studio references/human-in-the-loop/ MUST LOAD when user mentions annotation, human review, Label Studio, or applying annotations. Triggers: "set up annotation", "review samples", "set up Label Studio", "annotations are done", "summarize annotation results", "apply the annotations", "incorporate human feedback", "human review", "manual review", "annotate my data", "need human feedback", "annotation project", "annotators", "labeling team", "annotation spec", "corrections from annotators". This reference contains the ONLY validated workflow for human annotation — do not attempt annotation setup from general knowledge. Does NOT modify the dataset directly — always delegates edits to dataset-transformation. Not for building an eval set from the user's own data or a public benchmark or dataset they name (references/planning/references/eval-dataset-construction-plan.md).
Automatically label unlabeled data with a labeling spec and a model jury references/auto-labeling/ MUST LOAD; the only validated workflow for labeling by a model. Load when the user mentions labeling, tagging or classifying data at scale, a labeling spec, a refinement loop, or which spec ships, even without the word "label". When people will label or review the rows themselves ("have my team label this", "annotators", "annotate my data"), route to human-in-the-loop instead; auto-labeling hands its own review set there. Triggers: "label my data", "label my dataset", "auto-label", "classify my samples", "I have unlabeled data", "NER tagging", "sentiment labeling", "tag each", "label the rest", "labeling spec", "refine my labeling", "refine my spec", "run the refinement loop", "which spec do I ship", "measure labeling accuracy", "label corpus", "confidence routing", "tag support tickets", "label these rows".
Generate fine-tuning code and start training, or search for better fine-tuning hyperparameters references/finetuning/ User says "start training", "fine-tune my model", "I'm ready to train", or plan reaches the finetuning step. Supports SFT, DPO, RLVR, RLAIF trainers. Also for hyperparameter search: "optimize hyperparameters", "find the best learning rate", "which values should I use", "tune hyperparameters", "grid search", or resume, retry or check on a sweep or HPO job (finetuning routes these to its hyperparameter-optimization sub-reference). NOT for trials the user fixes, each scored and the best picked: that is a pipeline sweep (pipelines row).
Write and run your own training loop with SageMaker Training Sessions references/finetuning/references/training-sessions/ User wants to write or control their own training loop instead of setting hyperparameters on managed fine-tuning, or names SageMaker Training Sessions. Triggers: "write my own training loop", "managed fine-tuning is too much of a black box", "run my own training code and let SageMaker handle the GPUs", "control each training step myself", "train with a method from this paper", "write the RL loop myself", "change how advantages or the loss are computed", "control when the sampler is refreshed". Also use for status, stop, cleanup, or resume of an existing Training Session ("how's my training run going", "my training crashed, pick up where it left off", "stop it but keep my model"). Plain fine-tuning requests with no custom-loop need stay with finetuning, and so does a custom reward function on its own (RLVR).
Compose a multi-step SageMaker Pipeline (chain, gate, fan-out, or re-run a multi-step flow) references/pipelines/ Only when the request meets the compose criteria in references/pipelines/overview.md workflow step 1. Triggers: "make it a re-runnable pipeline", a chain of automated stages ("clean it, then fine-tune, then score it"), a serverless fine-tune whose model is evaluated next, a metric gate ("only keep it if accuracy is at least 0.8"), N jobs and then a script over all their outputs, or trials the user fixes with each scored and the best picked. Otherwise stay interactive. NOT for a single operation, even a repeated one, such as one evaluation of a model that already exists: route it to its capability row. NOT for exploration, debugging, steering a running job, or work where a human decides the next step. NOT for inspecting or stopping an existing pipeline's executions (use the aws sagemaker pipeline-execution commands). Starting an existing pipeline on new inputs, or changing its shape, belongs here.
Train a model with a SageMaker Training job references/training-jobs/ Use when the goal is to fit or update model parameters and produce model artifacts or checkpoints. Covers recipes, JumpStart traditional ML, custom training scripts or containers on the user's own instances or training plan (a named instance type, training plan, train.py or custom image), distributed training, training-job diagnosis, and importing a training job or model weights in S3 the user already has, to register, evaluate or deploy them. A request about such a job, in any status, reads the onboarding reference before any plan.
Process data with a SageMaker Processing job references/processing-jobs/ Use when the goal is preprocessing, feature engineering, evaluation, transformation, or ETL without model training as the primary operation. Covers scripts, framework processors, Spark, custom containers, Athena, Redshift, and processing-job diagnosis.
Evaluate or benchmark a trained model references/model-evaluation/ User says "evaluate my model", "run a benchmark", "test model performance", "compare models" when the models still need evaluating. Comparing models whose evaluations are complete goes to gap-analysis; a new or fixed scorer means a new evaluation here. Supports LLM-as-Judge and Custom Scorer.
Optimize a prompt as a low-cost baseline before fine-tuning references/prompt-optimization/ User says "optimize my prompt", "improve my prompt", "run prompt optimization", "run APO", or "baseline the prompt against my eval criteria". A proposal to optimize the prompt after an evaluation comes from next-step-recommender (decision optimize_prompt), and starts here once the user accepts it.
Diagnose where an evaluated model fails, with the managed GapAnalysis job (failure categories, per-split scores, comparisons) references/gap-analysis/ MUST LOAD when user asks about model failures, weaknesses, or gap analysis on evaluation results, or wants a GapAnalysis job. Triggers: "where is my model failing", "diagnose model weaknesses", "gap analysis", "classify failures", "what failure patterns", "diagnose weaknesses", "failure patterns in eval", "failure taxonomy", "what's still broken", "error categories", "run a GapAnalysis job", "collect my GapAnalysis job", "GapAnalysis API", "GapAnalysis results", "approve the derived threshold", and any comparison of evaluations that are already complete: "compare W with S", "compare W and S on my QA set", "is W better than S", "is the difference significant", "per-label scores", "are any failures the scorer's fault", "is my eval file tagged", "every row already has a split". This reference contains the ONLY validated workflow for failure diagnosis — do not attempt failure classification from general knowledge. The GapAnalysis job needs a completed GenAIEvaluation job and a version-qualified EvaluationCriteria. NOT for deciding what to do next or recommending from the job's report (next-step-recommender).
Recommend what to do next from evaluation results and the GapAnalysis job's output: fix the measurement or evaluator, change data or targets, optimize the prompt, train with a technique, or stop references/next-step-recommender/ User says "here are my eval results, what next?", "what should I try next?", "how do I improve this model?", "training didn't help, what now?", "should I keep training or stop?", "what does my GapAnalysis job say I should do", "recommend a next step from my GapAnalysis report", "what to do after my GapAnalysis job". A request for a recommendation or next step from a gap analysis report also goes here once gap-analysis has produced the job; running or collecting the job stays with gap-analysis. Needs a completed evaluation and the output of the GapAnalysis job that gap-analysis ran on it (gap-analysis runs first when there is none); reads only that output, and submits no job. NOT for diagnosing failures only (gap-analysis), a direct which-technique question without evaluation results (finetuning-technique), a direct request to optimize a prompt (prompt-optimization), or comparing scored candidates (leaderboard).
Compare candidates already scored on the project leaderboard references/leaderboard/ User says "which of my candidates is best", "show me the leaderboard", "how does v5 compare to v4", "is candidate v5 production-ready", "did my results land on the leaderboard", or "deploy the best candidate" (this reference selects the candidate; model-deployment deploys it). Also after an evaluation completes when the user asks how it compares with candidates already on the leaderboard. Read-only. NOT for running an evaluation (model-evaluation), comparing models row by row, by split or by significance (gap-analysis), deploying a candidate that is already chosen (model-deployment directly), or MLflow run details (manage-mlflow / model-evaluation); adding external scores to the leaderboard has no validated workflow yet — see the reference's Out of Scope.
Deploy, benchmark, or optimize a model on an endpoint or Bedrock references/model-deployment/ User says "deploy my model", "create an endpoint", or "make it available" (plain deploy) — or, for the inference-optimization sub-workflows on SageMaker Real-Time Endpoints only, "benchmark my endpoint" / "compare benchmark runs" (benchmarking), or states a performance/cost/latency/throughput goal for a new deployment such as "find the cheapest instance", or asks for an AI Recommendation Job or to right-size a model already on an endpoint (recommendations). Handles Nova vs OSS deployment pathways.
Set up IAM roles, S3 buckets, SDK configuration references/sdk-getting-started/ User says "set up", "getting started", "check my environment", "configure SDK", or as first step in any plan involving SageMaker training/evaluation/deployment.
Manage project directory and artifacts references/directory-management/ Starting a new project, resuming existing one, or when PLAN.md needs to be associated with a project directory.
Create, describe, or manage a SageMaker Project, or trace a result back to the inputs that produced it references/projects/ User says "create a project", "what's in my project", "is this job in my project", "associate this with my project", or agent needs to establish project context for resource tracking. ALSO for the provenance of a single result — which dataset, scorer, or criteria bar an evaluation or training run actually consumed, and at which version: "which data was it scored against", "which version of the bar did it pass", "can I reproduce this result", and which conversation or session a result came out of. ALSO for sharing project files with teammates through the project repo: "commit my work", "commit and push", "share this with my team", "what did my team push", or accepting the offer to commit after a finished step. Resource discovery walks a project's whole inventory; the same reference's result-provenance workflow walks one result's own lineage. NOT for interpreting whether a score is good enough (use leaderboard or eval-criteria) — that is a judgment about the number, whereas which bar a run was held to, and which version of it, is provenance and is owned here.
Set up, update, or delete a SageMaker Managed MLflow app references/manage-mlflow/ User says "set up MLflow", "create MLflow app", "update my MLflow app", "delete my MLflow app", "I need an MLflow server", asks "what is SageMaker MLflow", or a workflow needs an MLflow backend and none is connected.
Diagnose a failing or unhealthy SageMaker endpoint references/endpoint-diagnostics/ User reports endpoint errors, latency, inference failures, or a deployment that failed. "What's the status of my endpoint?", "Is my endpoint erroring?", "My endpoint failed — why?", "How many instances are running behind my endpoint?", "Is the latency my model or SageMaker?", "Show me the container logs for my endpoint." NOT for training-job issues, endpoint deletion, scaling changes, or new deployments.
Measure whether retrieval from a Bedrock Knowledge Base (RAG) improves a candidate model references/rag/ "Would retrieval from my knowledge base help before I fine-tune?", "enable RAG and score it again", "add similar labeled examples from my knowledge base to each prompt" (dynamic few-shot), "ground the model in my documents and see if it scores better". Starts after the candidate's baseline evaluation. NOT for building a RAG application or creating a Knowledge Base (see the reference's Out of Scope), few-shot demos while labeling (auto-labeling), fixed examples written into the prompt (prompt authoring), or rewriting the prompt itself (prompt-optimization).
Run commands on SageMaker HyperPod cluster nodes references/hyperpod/ User has a HyperPod cluster (EKS or Slurm) and wants to run a command on its nodes, for example to check GPUs or disk space, read a log or config file, or install a package. "Run nvidia-smi on my HyperPod node", "show me the slurmd log on a node in my HyperPod cluster." NOT for SageMaker training jobs, serverless fine-tuning, or endpoints (use training-jobs, finetuning, or endpoint-diagnostics).
Reduce GPU inference cost or latency with a shared KV cache references/kv-cache-handoff.md User self-hosts open-weight LLMs on GPUs (EC2, EKS, or similar) using vLLM, SGLang, or TensorRT-LLM and asks about reducing inference cost, improving time-to-first-token, sharing KV cache across replicas, setting up ElastiCache for KV tensor storage, configuring LMCache, or adding a distributed L2 cache to their inference fleet. NOT for SageMaker managed endpoint optimization (route to model-deployment instead).

Rules

  • Service boundary. This skill covers SageMaker, including deployment of a customized model to Bedrock. Measuring whether retrieval from an existing Bedrock Knowledge Base improves a candidate evaluated with SageMaker goes to rag. Other Bedrock-native work (invoking Bedrock's managed foundation models, Bedrock Agents, building a RAG application on or creating a Knowledge Base, evaluating the Knowledge Base itself with a Bedrock RAG evaluation job, Guardrails, AgentCore) is supported by AWS but has no validated workflow in this skill: let the user know and proceed with best-effort guidance using general AWS knowledge. If the user asks for a model on AWS without naming a service, compare SageMaker and Bedrock or ask one service-choice question. Do not select a service by default. The two services have different model catalogs, deployment paths, and pricing, and a default selection can send the user into an incorrect workflow.
  • Progressive disclosure. Load only the reference folder relevant to the current user intent. Do not load all references at once.
  • Best-effort help. If the user's request falls outside this skill's references, do not dead-end the conversation. Help them using general AWS knowledge and documentation, and inform the user that the guidance is not covered by this skill's validated workflows.
  • Region. REGION is the region the session's credentials resolve to, read once by the region check (references/sdk-getting-started/references/sagemaker-python-sdk-setup.md Step 2). Every call, script and generated code uses REGION.
    • Never pick a region: not for compliance, availability, price or capacity. A reference that lists where a service is offered is a check against REGION, not a list to choose from.
    • When the check returns nothing or cannot run, say so; the user sets the region. Do not ask the user which region to use.
    • When the user names a region that differs from REGION, say that it differs and confirm with them before any call there.
    • REGION was read, not assumed. Never list the region or the account among the assumptions stated to the user. Name the region only as a fact, where the catalog or the prices were read.
  • Usage attribution. Before running any AWS CLI command or packaged script, set AWS_SDK_UA_APP_ID to AWSSkill-SageMaker using the syntax for the current shell.
  • KV caching for self-hosted inference. When the user self-hosts inference on GPUs and asks about reducing cost or latency via distributed KV caching, hand off to the caching-for-llm-inference skill. See references/kv-cache-handoff.md. This is outside SageMaker's service boundary but is a common follow-on from model deployment to self-hosted GPUs.
  • Packaged scripts. The execution shell may lack the installed skill tree, so its documented paths can fail with No such file or directory. Read scripts and their imported support modules; never reconstruct them from memory. Follow Portable Artifact Support for unchanged command copies and generated criteria or monitoring bundles.
  • SDK environment prerequisite. Before activating auto-labeling, dataset-quality, synthetic-dataset-generation, dataset-transformation, finetuning, or model-evaluation, check whether sdk-getting-started has already run in this session (region, role, and VENV are in conversation context). If it has not run, activate sdk-getting-started first and complete it before proceeding to the requested reference. A failed from sagemaker.ai_registry import DataPreparer probe means the SDK is not installed yet, NOT that it is unavailable in this environment - you MUST run the sdk-getting-started install to completion (it owns the recipe) rather than reporting a capability limitation or hand-rolling a partial pip install.
  • SageMaker Projects (references/projects/overview.md).
    • Read the projects reference before answering a project ask. When the request is about a SageMaker Project itself, follow its Step 1 table before you answer, show a card or write a file, even after planning, because the planning summary leaves out the lifecycle reference's name-availability check and confirmation gate.
    • Offer a project before the first resource. Load the reference that owns the request first. Then, before the first call in the conversation that creates a project-trackable SageMaker resource, follow its § Offering a project. A reference's own text that says to proceed without asking about a project does not override this.
    • Offer to commit after a finished step. When the active project has a RepositoryUrl and a step just finished that changed project files (a plan task marked ✅, a finished run, a new script), follow references/projects/references/git-sync.md § Offering to commit.
  • Plan state. When the project has a <project-dir>/specs/PLAN.md, re-read it at the start of every task and mark a finished task ✅ before you load the next task's reference. Plan lifecycle § Task execution owns the rule.

Guardrail — where this skill's own files live (MCP vs local install)

This skill can be loaded two ways, and they resolve the skill's own bundled
files from different places. Determine how the skill was loaded before reading
a reference or running a script:

  • Loaded through the AWS MCP retrieve_skill tool: The skill is not
    installed on the local filesystem. You MUST fetch each reference or script
    via retrieve_skill with the file parameter, using its path relative to
    the skill root (e.g. file="references/dataset-transformation/overview.md"
    or file="references/dataset-transformation/scripts/dataset_split.py"), and
    run the script from the returned content. When a reference says to copy a
    packaged file into the project, write the returned content unchanged to that
    destination. Also fetch every skill module that script imports, so its
    imports resolve, and never regenerate a file from context. Do NOT
    file_read these paths locally — they do not exist on disk.
  • Installed locally (e.g. .kiro/skills/aws-ai-ml/ or
    ~/.claude/skills/aws-ai-ml/): Read and run files from the local skill
    directory using relative paths.

This distinction applies only to the skill's own packaged files. User data and
session artifacts are always read from and written to the user's working
directory. Never fetch or write customer data through retrieve_skill.


The license files are attached. Apache 2.0 · NOTICE

The attached ZIP contains the upstream supporting files and applicable license notices.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.