[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-huggingface-hf-cloud-aws-context-discovery":3,"mdc-p7qgbr-key":33,"related-org-huggingface-hf-cloud-aws-context-discovery":665,"related-repo-huggingface-hf-cloud-aws-context-discovery":833},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":28,"sourceUrl":31,"mdContent":32},"hf-cloud-aws-context-discovery","discover local AWS environment context","Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like \"use my AWS account\", \"deploy to AWS\", \"use my profile\", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"huggingface","Hugging Face","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fhuggingface.png",[12,16,19],{"name":13,"slug":14,"type":15},"Configuration","configuration","tag",{"name":17,"slug":18,"type":15},"CLI","cli",{"name":20,"slug":21,"type":15},"AWS","aws",10861,"https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fskills","2026-07-08T05:55:33.716099",null,721,[],{"repoUrl":23,"stars":22,"forks":26,"topics":29,"description":30},[],"Give your agents the power of the Hugging Face ecosystem","https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fhf-cloud-aws-context-discovery","---\nname: hf-cloud-aws-context-discovery\ndescription: Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like \"use my AWS account\", \"deploy to AWS\", \"use my profile\", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.\n---\n\n# AWS Context Discovery\n\nBefore doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers.\n\n## What to discover\n\nRun these at the start of the AWS work and remember the results for the rest of the session.\n\n### 1. Active profile\n\n`AWS_PROFILE` env var, else `default`. If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in `~\u002F.aws\u002Fconfig`, surface that clearly.\n\n### 2. Region\n\nResolution order — stop at the first one that produces a value:\n1. Region the user explicitly named in this conversation\n2. `AWS_REGION` env var\n3. `AWS_DEFAULT_REGION` env var\n4. `region` field on the active profile in `~\u002F.aws\u002Fconfig`\n5. Ask the user — but only after the first four have failed\n\nDo not fall back to `us-east-1` or any other hardcoded default.\n\n### 3. Credentials, account ID, caller ARN\n\n```bash\naws sts get-caller-identity --profile \u003Cprofile> --region \u003Cregion>\n```\n\nThree purposes in one call: confirms credentials are valid (stop if not), returns the `Account` ID (needed for ARN construction), returns the `Arn` of the caller.\n\n### 4. Identify SSO \u002F assumed-role principals\n\nThe `Arn` field tells you what kind of principal this is. The pattern matters because it determines what IAM operations the caller can do.\n\n| ARN pattern | Type | IAM write capability |\n|---|---|---|\n| `arn:aws:iam::\u003Cacct>:user\u002F\u003Cname>` | IAM user | Depends on attached policies |\n| `arn:aws:sts::\u003Cacct>:assumed-role\u002FAWSReservedSSO_\u003C...>\u002F\u003Cemail>` | **SSO assumed-role** | Typically **none** — can't create\u002Fmodify IAM roles |\n| `arn:aws:sts::\u003Cacct>:assumed-role\u002F\u003Crole>\u002F\u003Csession>` | Regular assumed-role | Depends on the role |\n\n**If the caller is SSO**, surface this immediately before later skills hit `iam:CreateRole` and fail:\n\n> Heads up: you're authenticated via SSO (`AWSReservedSSO_\u003CPermissionSet>_...`). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.\n\nThis is the highest-leverage thing this skill does. Surfacing it now turns a confusing mid-deployment error into a five-second conversation.\n\n## Commands to run\n\n```bash\n# Effective profile and region (faster than parsing config files)\naws configure list\n\n# Validate credentials and get identity\naws sts get-caller-identity\naws sts get-caller-identity --profile \u003Cprofile-name>  # if a profile was named\n```\n\n`aws configure list` handles env-var overrides and shows the resolved effective values. Prefer it over parsing `~\u002F.aws\u002Fconfig` yourself. If you need to read raw config (e.g. to list profiles), `~\u002F.aws\u002Fconfig` and `~\u002F.aws\u002Fcredentials` are plain INI files — read-only.\n\n## What to report back\n\nOne or two lines, not a wall of text:\n\n> Working with profile `my-profile` in `eu-west-1`, account `123456789012`. You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.\n\nDon't ask the user to confirm the region you just read from their config — they configured it; that is the confirmation.\n\nIf something is wrong (credentials expired, profile doesn't exist, no region anywhere), stop and surface the specific error before continuing.\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,47,53,60,65,72,100,106,111,163,176,182,266,287,293,305,415,433,450,455,461,573,606,612,617,649,654,659],{"type":39,"tag":40,"props":41,"children":43},"element","h1",{"id":42},"aws-context-discovery",[44],{"type":45,"value":46},"text","AWS Context Discovery",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Before doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers.",{"type":39,"tag":54,"props":55,"children":57},"h2",{"id":56},"what-to-discover",[58],{"type":45,"value":59},"What to discover",{"type":39,"tag":48,"props":61,"children":62},{},[63],{"type":45,"value":64},"Run these at the start of the AWS work and remember the results for the rest of the session.",{"type":39,"tag":66,"props":67,"children":69},"h3",{"id":68},"_1-active-profile",[70],{"type":45,"value":71},"1. Active profile",{"type":39,"tag":48,"props":73,"children":74},{},[75,82,84,90,92,98],{"type":39,"tag":76,"props":77,"children":79},"code",{"className":78},[],[80],{"type":45,"value":81},"AWS_PROFILE",{"type":45,"value":83}," env var, else ",{"type":39,"tag":76,"props":85,"children":87},{"className":86},[],[88],{"type":45,"value":89},"default",{"type":45,"value":91},". If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in ",{"type":39,"tag":76,"props":93,"children":95},{"className":94},[],[96],{"type":45,"value":97},"~\u002F.aws\u002Fconfig",{"type":45,"value":99},", surface that clearly.",{"type":39,"tag":66,"props":101,"children":103},{"id":102},"_2-region",[104],{"type":45,"value":105},"2. Region",{"type":39,"tag":48,"props":107,"children":108},{},[109],{"type":45,"value":110},"Resolution order — stop at the first one that produces a value:",{"type":39,"tag":112,"props":113,"children":114},"ol",{},[115,121,132,142,158],{"type":39,"tag":116,"props":117,"children":118},"li",{},[119],{"type":45,"value":120},"Region the user explicitly named in this conversation",{"type":39,"tag":116,"props":122,"children":123},{},[124,130],{"type":39,"tag":76,"props":125,"children":127},{"className":126},[],[128],{"type":45,"value":129},"AWS_REGION",{"type":45,"value":131}," env var",{"type":39,"tag":116,"props":133,"children":134},{},[135,141],{"type":39,"tag":76,"props":136,"children":138},{"className":137},[],[139],{"type":45,"value":140},"AWS_DEFAULT_REGION",{"type":45,"value":131},{"type":39,"tag":116,"props":143,"children":144},{},[145,151,153],{"type":39,"tag":76,"props":146,"children":148},{"className":147},[],[149],{"type":45,"value":150},"region",{"type":45,"value":152}," field on the active profile in ",{"type":39,"tag":76,"props":154,"children":156},{"className":155},[],[157],{"type":45,"value":97},{"type":39,"tag":116,"props":159,"children":160},{},[161],{"type":45,"value":162},"Ask the user — but only after the first four have failed",{"type":39,"tag":48,"props":164,"children":165},{},[166,168,174],{"type":45,"value":167},"Do not fall back to ",{"type":39,"tag":76,"props":169,"children":171},{"className":170},[],[172],{"type":45,"value":173},"us-east-1",{"type":45,"value":175}," or any other hardcoded default.",{"type":39,"tag":66,"props":177,"children":179},{"id":178},"_3-credentials-account-id-caller-arn",[180],{"type":45,"value":181},"3. Credentials, account ID, caller ARN",{"type":39,"tag":183,"props":184,"children":189},"pre",{"className":185,"code":186,"language":187,"meta":188,"style":188},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","aws sts get-caller-identity --profile \u003Cprofile> --region \u003Cregion>\n","bash","",[190],{"type":39,"tag":76,"props":191,"children":192},{"__ignoreMap":188},[193],{"type":39,"tag":194,"props":195,"children":198},"span",{"class":196,"line":197},"line",1,[199,204,210,215,220,226,231,237,242,247,251,256,261],{"type":39,"tag":194,"props":200,"children":202},{"style":201},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[203],{"type":45,"value":21},{"type":39,"tag":194,"props":205,"children":207},{"style":206},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[208],{"type":45,"value":209}," sts",{"type":39,"tag":194,"props":211,"children":212},{"style":206},[213],{"type":45,"value":214}," get-caller-identity",{"type":39,"tag":194,"props":216,"children":217},{"style":206},[218],{"type":45,"value":219}," --profile",{"type":39,"tag":194,"props":221,"children":223},{"style":222},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[224],{"type":45,"value":225}," \u003C",{"type":39,"tag":194,"props":227,"children":228},{"style":206},[229],{"type":45,"value":230},"profil",{"type":39,"tag":194,"props":232,"children":234},{"style":233},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[235],{"type":45,"value":236},"e",{"type":39,"tag":194,"props":238,"children":239},{"style":222},[240],{"type":45,"value":241},">",{"type":39,"tag":194,"props":243,"children":244},{"style":206},[245],{"type":45,"value":246}," --region",{"type":39,"tag":194,"props":248,"children":249},{"style":222},[250],{"type":45,"value":225},{"type":39,"tag":194,"props":252,"children":253},{"style":206},[254],{"type":45,"value":255},"regio",{"type":39,"tag":194,"props":257,"children":258},{"style":233},[259],{"type":45,"value":260},"n",{"type":39,"tag":194,"props":262,"children":263},{"style":222},[264],{"type":45,"value":265},">\n",{"type":39,"tag":48,"props":267,"children":268},{},[269,271,277,279,285],{"type":45,"value":270},"Three purposes in one call: confirms credentials are valid (stop if not), returns the ",{"type":39,"tag":76,"props":272,"children":274},{"className":273},[],[275],{"type":45,"value":276},"Account",{"type":45,"value":278}," ID (needed for ARN construction), returns the ",{"type":39,"tag":76,"props":280,"children":282},{"className":281},[],[283],{"type":45,"value":284},"Arn",{"type":45,"value":286}," of the caller.",{"type":39,"tag":66,"props":288,"children":290},{"id":289},"_4-identify-sso-assumed-role-principals",[291],{"type":45,"value":292},"4. Identify SSO \u002F assumed-role principals",{"type":39,"tag":48,"props":294,"children":295},{},[296,298,303],{"type":45,"value":297},"The ",{"type":39,"tag":76,"props":299,"children":301},{"className":300},[],[302],{"type":45,"value":284},{"type":45,"value":304}," field tells you what kind of principal this is. The pattern matters because it determines what IAM operations the caller can do.",{"type":39,"tag":306,"props":307,"children":308},"table",{},[309,333],{"type":39,"tag":310,"props":311,"children":312},"thead",{},[313],{"type":39,"tag":314,"props":315,"children":316},"tr",{},[317,323,328],{"type":39,"tag":318,"props":319,"children":320},"th",{},[321],{"type":45,"value":322},"ARN pattern",{"type":39,"tag":318,"props":324,"children":325},{},[326],{"type":45,"value":327},"Type",{"type":39,"tag":318,"props":329,"children":330},{},[331],{"type":45,"value":332},"IAM write capability",{"type":39,"tag":334,"props":335,"children":336},"tbody",{},[337,360,393],{"type":39,"tag":314,"props":338,"children":339},{},[340,350,355],{"type":39,"tag":341,"props":342,"children":343},"td",{},[344],{"type":39,"tag":76,"props":345,"children":347},{"className":346},[],[348],{"type":45,"value":349},"arn:aws:iam::\u003Cacct>:user\u002F\u003Cname>",{"type":39,"tag":341,"props":351,"children":352},{},[353],{"type":45,"value":354},"IAM user",{"type":39,"tag":341,"props":356,"children":357},{},[358],{"type":45,"value":359},"Depends on attached policies",{"type":39,"tag":314,"props":361,"children":362},{},[363,372,381],{"type":39,"tag":341,"props":364,"children":365},{},[366],{"type":39,"tag":76,"props":367,"children":369},{"className":368},[],[370],{"type":45,"value":371},"arn:aws:sts::\u003Cacct>:assumed-role\u002FAWSReservedSSO_\u003C...>\u002F\u003Cemail>",{"type":39,"tag":341,"props":373,"children":374},{},[375],{"type":39,"tag":376,"props":377,"children":378},"strong",{},[379],{"type":45,"value":380},"SSO assumed-role",{"type":39,"tag":341,"props":382,"children":383},{},[384,386,391],{"type":45,"value":385},"Typically ",{"type":39,"tag":376,"props":387,"children":388},{},[389],{"type":45,"value":390},"none",{"type":45,"value":392}," — can't create\u002Fmodify IAM roles",{"type":39,"tag":314,"props":394,"children":395},{},[396,405,410],{"type":39,"tag":341,"props":397,"children":398},{},[399],{"type":39,"tag":76,"props":400,"children":402},{"className":401},[],[403],{"type":45,"value":404},"arn:aws:sts::\u003Cacct>:assumed-role\u002F\u003Crole>\u002F\u003Csession>",{"type":39,"tag":341,"props":406,"children":407},{},[408],{"type":45,"value":409},"Regular assumed-role",{"type":39,"tag":341,"props":411,"children":412},{},[413],{"type":45,"value":414},"Depends on the role",{"type":39,"tag":48,"props":416,"children":417},{},[418,423,425,431],{"type":39,"tag":376,"props":419,"children":420},{},[421],{"type":45,"value":422},"If the caller is SSO",{"type":45,"value":424},", surface this immediately before later skills hit ",{"type":39,"tag":76,"props":426,"children":428},{"className":427},[],[429],{"type":45,"value":430},"iam:CreateRole",{"type":45,"value":432}," and fail:",{"type":39,"tag":434,"props":435,"children":436},"blockquote",{},[437],{"type":39,"tag":48,"props":438,"children":439},{},[440,442,448],{"type":45,"value":441},"Heads up: you're authenticated via SSO (",{"type":39,"tag":76,"props":443,"children":445},{"className":444},[],[446],{"type":45,"value":447},"AWSReservedSSO_\u003CPermissionSet>_...",{"type":45,"value":449},"). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.",{"type":39,"tag":48,"props":451,"children":452},{},[453],{"type":45,"value":454},"This is the highest-leverage thing this skill does. Surfacing it now turns a confusing mid-deployment error into a five-second conversation.",{"type":39,"tag":54,"props":456,"children":458},{"id":457},"commands-to-run",[459],{"type":45,"value":460},"Commands to run",{"type":39,"tag":183,"props":462,"children":464},{"className":185,"code":463,"language":187,"meta":188,"style":188},"# Effective profile and region (faster than parsing config files)\naws configure list\n\n# Validate credentials and get identity\naws sts get-caller-identity\naws sts get-caller-identity --profile \u003Cprofile-name>  # if a profile was named\n",[465],{"type":39,"tag":76,"props":466,"children":467},{"__ignoreMap":188},[468,477,495,505,514,531],{"type":39,"tag":194,"props":469,"children":470},{"class":196,"line":197},[471],{"type":39,"tag":194,"props":472,"children":474},{"style":473},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[475],{"type":45,"value":476},"# Effective profile and region (faster than parsing config files)\n",{"type":39,"tag":194,"props":478,"children":480},{"class":196,"line":479},2,[481,485,490],{"type":39,"tag":194,"props":482,"children":483},{"style":201},[484],{"type":45,"value":21},{"type":39,"tag":194,"props":486,"children":487},{"style":206},[488],{"type":45,"value":489}," configure",{"type":39,"tag":194,"props":491,"children":492},{"style":206},[493],{"type":45,"value":494}," list\n",{"type":39,"tag":194,"props":496,"children":498},{"class":196,"line":497},3,[499],{"type":39,"tag":194,"props":500,"children":502},{"emptyLinePlaceholder":501},true,[503],{"type":45,"value":504},"\n",{"type":39,"tag":194,"props":506,"children":508},{"class":196,"line":507},4,[509],{"type":39,"tag":194,"props":510,"children":511},{"style":473},[512],{"type":45,"value":513},"# Validate credentials and get identity\n",{"type":39,"tag":194,"props":515,"children":517},{"class":196,"line":516},5,[518,522,526],{"type":39,"tag":194,"props":519,"children":520},{"style":201},[521],{"type":45,"value":21},{"type":39,"tag":194,"props":523,"children":524},{"style":206},[525],{"type":45,"value":209},{"type":39,"tag":194,"props":527,"children":528},{"style":206},[529],{"type":45,"value":530}," get-caller-identity\n",{"type":39,"tag":194,"props":532,"children":534},{"class":196,"line":533},6,[535,539,543,547,551,555,560,564,568],{"type":39,"tag":194,"props":536,"children":537},{"style":201},[538],{"type":45,"value":21},{"type":39,"tag":194,"props":540,"children":541},{"style":206},[542],{"type":45,"value":209},{"type":39,"tag":194,"props":544,"children":545},{"style":206},[546],{"type":45,"value":214},{"type":39,"tag":194,"props":548,"children":549},{"style":206},[550],{"type":45,"value":219},{"type":39,"tag":194,"props":552,"children":553},{"style":222},[554],{"type":45,"value":225},{"type":39,"tag":194,"props":556,"children":557},{"style":206},[558],{"type":45,"value":559},"profile-nam",{"type":39,"tag":194,"props":561,"children":562},{"style":233},[563],{"type":45,"value":236},{"type":39,"tag":194,"props":565,"children":566},{"style":222},[567],{"type":45,"value":241},{"type":39,"tag":194,"props":569,"children":570},{"style":473},[571],{"type":45,"value":572},"  # if a profile was named\n",{"type":39,"tag":48,"props":574,"children":575},{},[576,582,584,589,591,596,598,604],{"type":39,"tag":76,"props":577,"children":579},{"className":578},[],[580],{"type":45,"value":581},"aws configure list",{"type":45,"value":583}," handles env-var overrides and shows the resolved effective values. Prefer it over parsing ",{"type":39,"tag":76,"props":585,"children":587},{"className":586},[],[588],{"type":45,"value":97},{"type":45,"value":590}," yourself. If you need to read raw config (e.g. to list profiles), ",{"type":39,"tag":76,"props":592,"children":594},{"className":593},[],[595],{"type":45,"value":97},{"type":45,"value":597}," and ",{"type":39,"tag":76,"props":599,"children":601},{"className":600},[],[602],{"type":45,"value":603},"~\u002F.aws\u002Fcredentials",{"type":45,"value":605}," are plain INI files — read-only.",{"type":39,"tag":54,"props":607,"children":609},{"id":608},"what-to-report-back",[610],{"type":45,"value":611},"What to report back",{"type":39,"tag":48,"props":613,"children":614},{},[615],{"type":45,"value":616},"One or two lines, not a wall of text:",{"type":39,"tag":434,"props":618,"children":619},{},[620],{"type":39,"tag":48,"props":621,"children":622},{},[623,625,631,633,639,641,647],{"type":45,"value":624},"Working with profile ",{"type":39,"tag":76,"props":626,"children":628},{"className":627},[],[629],{"type":45,"value":630},"my-profile",{"type":45,"value":632}," in ",{"type":39,"tag":76,"props":634,"children":636},{"className":635},[],[637],{"type":45,"value":638},"eu-west-1",{"type":45,"value":640},", account ",{"type":39,"tag":76,"props":642,"children":644},{"className":643},[],[645],{"type":45,"value":646},"123456789012",{"type":45,"value":648},". You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.",{"type":39,"tag":48,"props":650,"children":651},{},[652],{"type":45,"value":653},"Don't ask the user to confirm the region you just read from their config — they configured it; that is the confirmation.",{"type":39,"tag":48,"props":655,"children":656},{},[657],{"type":45,"value":658},"If something is wrong (credentials expired, profile doesn't exist, no region anywhere), stop and surface the specific error before continuing.",{"type":39,"tag":660,"props":661,"children":662},"style",{},[663],{"type":45,"value":664},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":666,"total":832},[667,690,706,719,725,738,751,766,780,790,803,817],{"slug":668,"name":668,"fn":669,"description":670,"org":671,"tags":672,"stars":687,"repoUrl":688,"updatedAt":689},"train-sentence-transformers","train sentence-transformers models","Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder; dense or static embedding model; for retrieval, similarity, clustering, classification, paraphrase mining, dedup, multimodal), `CrossEncoder` (reranker; pair scoring for two-stage retrieval \u002F pair classification), and `SparseEncoder` (SPLADE, sparse embedding model; for learned-sparse retrieval). Covers loss selection, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[673,676,678,681,684],{"name":674,"slug":675,"type":15},"Deep Learning","deep-learning",{"name":9,"slug":677,"type":15},"hugging-face",{"name":679,"slug":680,"type":15},"LLM","llm",{"name":682,"slug":683,"type":15},"Python","python",{"name":685,"slug":686,"type":15},"Search","search",18914,"https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fsentence-transformers","2026-05-08T05:09:16.820066",{"slug":691,"name":691,"fn":692,"description":693,"org":694,"tags":695,"stars":703,"repoUrl":704,"updatedAt":705},"trl-training","train and fine-tune LLMs with TRL","Train and fine-tune transformer language models using TRL (Transformers Reinforcement Learning). Supports SFT, DPO, GRPO, KTO, RLOO and Reward Model training via CLI commands.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[696,699,700,701,702],{"name":697,"slug":698,"type":15},"AI Infrastructure","ai-infrastructure",{"name":674,"slug":675,"type":15},{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},{"name":682,"slug":683,"type":15},18850,"https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftrl","2026-04-06T18:25:32.746828",{"slug":707,"name":707,"fn":708,"description":709,"org":710,"tags":711,"stars":22,"repoUrl":23,"updatedAt":718},"hf-cli","manage Hugging Face Hub resources via CLI","Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[712,713,716,717],{"name":17,"slug":18,"type":15},{"name":714,"slug":715,"type":15},"Datasets","datasets",{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},"2026-04-06T18:25:34.020855",{"slug":4,"name":4,"fn":5,"description":6,"org":720,"tags":721,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[722,723,724],{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"slug":726,"name":726,"fn":727,"description":728,"org":729,"tags":730,"stars":22,"repoUrl":23,"updatedAt":737},"hf-cloud-python-env-setup","set up Python environments for AWS","Set up an isolated Python environment for SageMaker \u002F AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run `pip install`, when about to invoke `boto3`, when creating or activating a virtualenv, or when the user asks to \"set up the environment\". Never use system Python and never `pip install` into it. Always isolate. This skill prevents the most common failure modes: wrong Python version, dependency conflicts, and stale SDKs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[731,732,733,736],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":734,"slug":735,"type":15},"Engineering","engineering",{"name":682,"slug":683,"type":15},"2026-07-08T05:55:32.505017",{"slug":739,"name":739,"fn":740,"description":741,"org":742,"tags":743,"stars":22,"repoUrl":23,"updatedAt":750},"hf-cloud-sagemaker-deployment-planner","plan model deployments to Amazon SageMaker","Plan and coordinate the deployment of a model to Amazon SageMaker AI. Use this skill whenever the user wants to deploy, host, serve, or expose a model on SageMaker or AWS — including phrases like \"deploy a model\", \"host this LLM on AWS\", \"serve this embedding model\", \"deploy a reranker\", \"deploy a text-to-image \u002F diffusion model\", \"host this for async inference\", \"create an endpoint\", \"serve my fine-tuned model\", or any request that involves making a model available for inference on AWS. Use this even when the user is vague (e.g. \"I just want to get this running on AWS, you figure it out\"). Works for text-generation LLMs, embedding models, rerankers, classifiers, text-to-image \u002F diffusion models — picks the right serving stack and chooses between real-time and async inference. This is the entry-point skill for SageMaker deployment work — it asks clarifying questions, picks a deployment pathway, and coordinates the other deployment skills.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[744,745,746,749],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},"Deployment","deployment",{"name":9,"slug":677,"type":15},"2026-07-08T05:55:37.387689",{"slug":752,"name":752,"fn":753,"description":754,"org":755,"tags":756,"stars":22,"repoUrl":23,"updatedAt":765},"hf-cloud-sagemaker-iam-preflight","configure SageMaker IAM roles","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.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[757,758,759,762],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":760,"slug":761,"type":15},"Permissions","permissions",{"name":763,"slug":764,"type":15},"Security","security","2026-07-08T05:55:34.948771",{"slug":767,"name":767,"fn":768,"description":769,"org":770,"tags":771,"stars":22,"repoUrl":23,"updatedAt":779},"hf-cloud-sagemaker-production-defaults","create production-ready SageMaker endpoints","Create a SageMaker endpoint (real-time or async) with autoscaling, CloudWatch alarms, and tagging enabled by default. Use this skill whenever about to create a SageMaker endpoint, write deployment code that calls `create_endpoint`, or finalize a deployment after the image URI and IAM role are known. Provides deploy.py for real-time endpoints and deploy_async.py for async endpoints (with genuine scale-to-zero support). This is the last step in the SageMaker deployment workflow. Never generate a bare `create_endpoint` call without these defaults — endpoints without autoscaling or alarms are demos, not deployments.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[772,773,774,775,776],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},{"name":9,"slug":677,"type":15},{"name":777,"slug":778,"type":15},"Monitoring","monitoring","2026-07-08T05:55:38.664702",{"slug":781,"name":781,"fn":782,"description":783,"org":784,"tags":785,"stars":22,"repoUrl":23,"updatedAt":789},"hf-cloud-serving-image-selection","select SageMaker serving containers","Pick the right serving container for a SageMaker model deployment and find its current image URI. Use this skill whenever about to deploy a model to a SageMaker endpoint and an image URI needs to be chosen — including when the user says \"deploy this LLM\", \"host this HuggingFace model\", \"serve this fine-tuned model\", \"deploy this embedding model\", \"host a reranker\", \"serve a sentence-transformers model\", or when about to hardcode any container URI in deployment code. HuggingFace-curated Deep Learning Containers are ALWAYS preferred: HuggingFace vLLM (LLMs and generative rerankers), HuggingFace vLLM-Omni (multimodal), TEI (embeddings\u002Fcross-encoder rerankers), HF Inference Toolkit (other transformers). Generic images (AWS vLLM, DJL-LMI, SGLang) are used only when no HuggingFace image is compatible — never merely because they carry a newer version. Never hardcode a container URI from memory and never default to TGI. Prevents stale-image failures and wrong-region URIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[786,787,788],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},"2026-07-08T05:55:36.173465",{"slug":791,"name":791,"fn":792,"description":793,"org":794,"tags":795,"stars":22,"repoUrl":23,"updatedAt":802},"hf-mcp","access Hugging Face Hub via MCP","Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run compute jobs, and use Gradio Spaces as AI tools. Available when connected to the HF MCP server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[796,797,798,799],{"name":714,"slug":715,"type":15},{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},{"name":800,"slug":801,"type":15},"MCP","mcp","2026-04-06T18:25:50.364185",{"slug":804,"name":804,"fn":805,"description":806,"org":807,"tags":808,"stars":22,"repoUrl":23,"updatedAt":816},"hf-mem","estimate memory for Hugging Face models","Hugging Face CLI to estimate the required memory to load Safetensors or GGUF model weights for inference from the Hugging Face Hub",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[809,810,811,812,813],{"name":697,"slug":698,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},{"name":814,"slug":815,"type":15},"Performance","performance","2026-06-13T07:23:57.101435",{"slug":818,"name":818,"fn":819,"description":820,"org":821,"tags":822,"stars":22,"repoUrl":23,"updatedAt":831},"huggingface-best","find and compare Hugging Face models","Use when the user asks about finding the best, top, or recommended model for a task, wants to know what AI model to use, or wants to compare models by benchmark scores. Triggers on: \"best model for X\", \"what model should I use for\", \"top models for [task]\", \"which model runs on my laptop\u002Fmachine\u002Fdevice\", \"recommend a model for\", \"what LLM should I use for\", \"compare models for\", \"what's state of the art for\", or any question about choosing an AI model for a specific use case. Always use this skill when the user wants model recommendations or comparisons, even if they don't explicitly mention HuggingFace or benchmarks.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[823,826,827,828],{"name":824,"slug":825,"type":15},"Analytics","analytics",{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},{"name":829,"slug":830,"type":15},"Research","research","2026-04-24T05:09:45.870658",37,{"items":834,"total":883},[835,842,848,855,862,869,877],{"slug":707,"name":707,"fn":708,"description":709,"org":836,"tags":837,"stars":22,"repoUrl":23,"updatedAt":718},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[838,839,840,841],{"name":17,"slug":18,"type":15},{"name":714,"slug":715,"type":15},{"name":9,"slug":677,"type":15},{"name":679,"slug":680,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":843,"tags":844,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[845,846,847],{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"slug":726,"name":726,"fn":727,"description":728,"org":849,"tags":850,"stars":22,"repoUrl":23,"updatedAt":737},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[851,852,853,854],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":734,"slug":735,"type":15},{"name":682,"slug":683,"type":15},{"slug":739,"name":739,"fn":740,"description":741,"org":856,"tags":857,"stars":22,"repoUrl":23,"updatedAt":750},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[858,859,860,861],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},{"name":9,"slug":677,"type":15},{"slug":752,"name":752,"fn":753,"description":754,"org":863,"tags":864,"stars":22,"repoUrl":23,"updatedAt":765},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[865,866,867,868],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":760,"slug":761,"type":15},{"name":763,"slug":764,"type":15},{"slug":767,"name":767,"fn":768,"description":769,"org":870,"tags":871,"stars":22,"repoUrl":23,"updatedAt":779},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[872,873,874,875,876],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},{"name":9,"slug":677,"type":15},{"name":777,"slug":778,"type":15},{"slug":781,"name":781,"fn":782,"description":783,"org":878,"tags":879,"stars":22,"repoUrl":23,"updatedAt":789},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[880,881,882],{"name":697,"slug":698,"type":15},{"name":20,"slug":21,"type":15},{"name":747,"slug":748,"type":15},24]