Skills for Real Engineers. Straight from my .agents directory.
hf-cloud-sagemaker-iam-preflight
Agent skill fromhuggingface/skills
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.
How to install hf-cloud-sagemaker-iam-preflight
npx skills add huggingface/skills# or add only this skill to Claude Code: copy the folder
skills/hf-cloud-sagemaker-iam-preflight/
# into
~/.claude/skills/hf-cloud-sagemaker-iam-preflight/ (all projects)
.claude/skills/hf-cloud-sagemaker-iam-preflight/ (one project)
1# SageMaker IAM Preflight23Every SageMaker resource needs an **execution role** — the IAM role SageMaker assumes to read model artifacts from S3, pull serving containers from ECR, and write logs. Most deployments fail here because the script tried to create a new role without checking if a usable one already existed, then blew up because the caller is an SSO principal.45This skill encodes the right order: discover, validate, only create if necessary.67## Running the helpers (cross-platform)89The helpers are Python so they run identically on Windows, macOS, and Linux:1011```bash12python3 scripts/check_role.py # macOS / Linux13python scripts/check_role.py # Windows (PowerShell / cmd)14```1516**Run them from the shell where the AWS CLI already works** — i.e. wherever `aws sts get-caller-identity` succeeds. The script shells out to that same `aws` binary and inherits the shell's profile, region, SSO session, proxy, and credential chain.17…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
2,955+ reusable AI agent skills for Claude Code, Codex, Cursor and Gemini CLI. AAS Core adds local catalog discovery, agent-owned selection and plan preview. CLI, MCP and plugins.
