installskill

Skills / huggingface/skills

hf-cloud-sagemaker-iam-preflight

Checks for a usable SageMaker execution role before creating endpoints or training jobs.

Pinned commit
aafb3adfb809Committed 2026-11-26
Files
519 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
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.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install huggingface/skills skills/hf-cloud-sagemaker-iam-preflight --agent claude-code --pin aafb3adfb80951cc90836cc6fd17bb345aa49eef

gh picks the directory for the agent, names the folder after the source directory (hf-cloud-sagemaker-iam-preflight), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 4bebe75046f6b5c55b29a0cf203a4e46aaffe16a.

skills CLIpinned

$ npx skills add huggingface/skills@aafb3adfb80951cc90836cc6fd17bb345aa49eef --skill hf-cloud-sagemaker-iam-preflight -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/huggingface/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet aafb3adfb80951cc90836cc6fd17bb345aa49eef
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/hf-cloud-sagemaker-iam-preflight" .claude/skills/hf-cloud-sagemaker-iam-preflight

No extra tooling. Files land byte for byte as published in .claude/skills/hf-cloud-sagemaker-iam-preflight, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/hf-cloud-sagemaker-iam-preflight && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expected0c3b7563daa843a04e9840a5c21a75d65de496ef956ecd1fb46253713bc0a27c

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Data · 2Scripts · 2SKILL.md · 1

Runs commands6

Code that spawns other processes, or shell code blocks in the instructions.

2 in scripts · 4 in docs and other text files

Network accessNo match

Calls that fetch from or send to a remote host.

Installs packagesNo match

Commands that pull and run third-party packages at use time.

Reads env or credentialsNo match

References to environment variables, tokens, keys or credential files.

Privileged or destructiveNo match

sudo, recursive deletes, permission changes and similar commands.

Dynamic or encoded codeNo match

eval, exec, base64 decoding and remote-script piping, which hide what runs.

Outside hosts mentioned

No URLs found.

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
0c3b7563daa843a04e9840a5c21a75d65de496ef956ecd1fb46253713bc0a27c
Git tree SHA
4bebe75046f6b5c55b29a0cf203a4e46aaffe16a
PathKindSizeSHA-256
SKILL.mdSKILL.md6.9 KBa4ff26c2af2c0ce8…
references/minimum-permissions.jsonData1.0 KB100c4dc345e69f5a…
references/trust-policy.jsonData197 Bbbc7c7b5775c8bb2…
scripts/check_role.pyScripts · executable6.7 KB567af89033ca686c…
scripts/create_role.pyScripts · executable3.8 KBeb9e9b68f2f2020b…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
615limit 1,024 characters
SKILL.md body
99 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)

Change history

No changes recorded since the first snapshot on 2026-11-28.

Follow changes to this skill in a feed reader: Atom feed · all skills

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.