id: "hf-cloud-sagemaker-iam-preflight"
kind: "skill"
name: "hf-cloud-sagemaker-iam-preflight"
title: "Hf Cloud Sagemaker Iam Preflight"
description: "Ensure a usable SageMaker execution role exists before deploying or training. Use this skill whenever about to create a SageMaker endpoint, model, training job, or any resource that requires an execution role. Use it especially when the user has not provided a role ARN explicitly, when scripts are about to call `iam:CreateRole`, or when an AccessDenied error mentions an IAM action. Never blindly call `iam:CreateRole` — always check for existing roles first. This skill prevents the most common SageMaker deployment failure: trying to create IAM resources from an SSO principal that has no IAM write permissions."
category: "devops"
source:
  repository: "huggingface/skills"
  path: "skills/hf-cloud-sagemaker-iam-preflight/SKILL.md"
  commit: "5291c2b9365e06b175dc04817610c778623f4836"
  url: "https://github.com/huggingface/skills/tree/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight"
license:
  spdx: "Apache-2.0"
  from: "repository"
  redistributable: true
stars: 11365
updated_at: "2026-11-19T17:03:30Z"
score: 0.8778
rank: 48
files_count: 5
bytes: 19009
has_scripts: true
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:32:23Z"
  model: "claude-sonnet-5-5"
  score: 0.8778
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.8467
    smoke: "not_run"
    popularity: 0.59
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 5
    instructions: 4
    safety: 4
    injection: 5
    references: 5
    overall: 8
    verdict: "feature"
    rationale: "The description is specific about when to load it. The scope is one job: find or validate a SageMaker execution role before creating one. The ordered steps (validate the given role, discover and rank by last use, create only if none exists) are concrete, with a native CLI fallback. It stops cleanly for SSO principals and bans FullAccess. All referenced files exist. The one weakness is that create_role.py runs without an explicit confirmation step. There is no injection."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: ["python"]
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
  - client: "chat-mcp"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 7051
    sha256: "a4ff26c2af2c0ce82a4ab34c5cf5eadce5db4573ed2525745c4ee7b21f1773e4"
    url: "https://raw.githubusercontent.com/huggingface/skills/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md"
  - path: "references/minimum-permissions.json"
    bytes: 1043
    sha256: "100c4dc345e69f5a7afc3104a17591d126ddff808a648cd3e84fd0a4054beb09"
    url: "https://raw.githubusercontent.com/huggingface/skills/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight/references/minimum-permissions.json"
  - path: "references/trust-policy.json"
    bytes: 197
    sha256: "bbc7c7b5775c8bb26d3e3d5eb4240d7e55f2d728a81c3b97ee42155f6a4746de"
    url: "https://raw.githubusercontent.com/huggingface/skills/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight/references/trust-policy.json"
  - path: "scripts/check_role.py"
    bytes: 6862
    sha256: "567af89033ca686c8189302bc853b5c2ec0fc72d371ff86d0984a2de5541a962"
    url: "https://raw.githubusercontent.com/huggingface/skills/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py"
  - path: "scripts/create_role.py"
    bytes: 3856
    sha256: "eb9e9b68f2f2020b9b87ec07fd862b5bb98b5e02bc2088f1194bffdc845a631a"
    url: "https://raw.githubusercontent.com/huggingface/skills/5291c2b9365e06b175dc04817610c778623f4836/skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py"
alternates: []
icon: "https://versatile.sh/avatars/huggingface.png"
