import{s as Y,n as Q,o as P}from"../chunks/scheduler.f3b1e791.js";import{S as F,i as A,e as r,s as n,c as Z,h as D,a as o,d as t,b as a,f as z,g,j as T,k as X,l as q,m as s,n as $,t as v,o as E,p as L}from"../chunks/index.023a9934.js";import{C as O}from"../chunks/CodeBlock.5aa52fca.js";import{H as K,E as ee}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.9b009efe.js";function le(S){let i,J,k,h,d,y,c,N=`Use <code>kernel-builder skills add</code> to install the skills for AI coding assistants like Claude, Codex, and OpenCode.
Supported skills include:`,j,m,R="<li><code>cuda-kernels</code> (default)</li> <li><code>rocm-kernels</code></li>",x,p,_='Skill files are downloaded from the <code>huggingface/kernels</code> directory in this <a href="https://github.com/huggingface/kernels/tree/main/kernel-builder/skills" rel="nofollow">repository</a>.',U,M,H="Skills instruct agents how to deal with hardware-specific optimizations, integrate with libraries like diffusers and transformers, and benchmark kernel performance in consistent ways.",W,u,V="Examples:",C,b,I,f,B,w,G;return d=new K({props:{title:"kernel-builder skills add",local:"kernel-builder-skills-add",headingTag:"h3"}}),b=new O({props:{code:"JTNDQ29weUxMTVR4dE1lbnUlMjBjb250YWluZXJTdHlsZSUzRCUyMmZsb2F0JTNBJTIwcmlnaHQlM0IlMjBtYXJnaW4tbGVmdCUzQSUyMDEwcHglM0IlMjBkaXNwbGF5JTNBJTIwaW5saW5lLWZsZXglM0IlMjBwb3NpdGlvbiUzQSUyMHJlbGF0aXZlJTNCJTIwei1pbmRleCUzQSUyMDEwJTNCJTIyJTNFJTNDJTJGQ29weUxMTVR4dE1lbnUlM0UlMEElMEElMjMlMjBpbnN0YWxsJTIwZm9yJTIwQ2xhdWRlJTIwaW4lMjB0aGUlMjBjdXJyZW50JTIwcHJvamVjdCUwQWtlcm5lbC1idWlsZGVyJTIwc2tpbGxzJTIwYWRkJTIwLS1jbGF1ZGUlMEElMEElMjMlMjBpbnN0YWxsJTIwUk9DbSUyMGtlcm5lbHMlMjBza2lsbCUyMGZvciUyMENvZGV4JTBBa2VybmVsLWJ1aWxkZXIlMjBza2lsbHMlMjBhZGQlMjAtLXNraWxsJTIwcm9jbS1rZXJuZWxzJTIwLS1jb2RleCUwQSUwQSUyMyUyMGluc3RhbGwlMjBnbG9iYWxseSUyMGZvciUyMENvZGV4JTBBa2VybmVsLWJ1aWxkZXIlMjBza2lsbHMlMjBhZGQlMjAtLWNvZGV4JTIwLS1nbG9iYWwlMEElMEElMjMlMjBpbnN0YWxsJTIwZm9yJTIwbXVsdGlwbGUlMjBhc3Npc3RhbnRzJTBBa2VybmVsLWJ1aWxkZXIlMjBza2lsbHMlMjBhZGQlMjAtLWNsYXVkZSUyMC0tY29kZXglMjAtLW9wZW5jb2RlJTBBJTBBJTIzJTIwaW5zdGFsbCUyMHRvJTIwYSUyMGN1c3RvbSUyMGRlc3RpbmF0aW9uJTIwYW5kJTIwb3ZlcndyaXRlJTIwaWYlMjBhbHJlYWR5JTIwcHJlc2VudCUwQWtlcm5lbC1idWlsZGVyJTIwc2tpbGxzJTIwYWRkJTIwLS1kZXN0JTIwfiUyRm15LXNraWxscyUyMC0tZm9yY2U=",highlighted:`&lt;CopyLLMTxtMenu containerStyle=<span class="hljs-string">&quot;float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;&quot;</span>&gt;&lt;/CopyLLMTxtMenu&gt;

<span class="hljs-comment"># install for Claude in the current project</span>
kernel-builder skills add --claude

<span class="hljs-comment"># install ROCm kernels skill for Codex</span>
kernel-builder skills add --skill rocm-kernels --codex

<span class="hljs-comment"># install globally for Codex</span>
kernel-builder skills add --codex --global

<span class="hljs-comment"># install for multiple assistants</span>
kernel-builder skills add --claude --codex --opencode

<span class="hljs-comment"># install to a custom destination and overwrite if already present</span>
kernel-builder skills add --dest ~/my-skills --force`,wrap:!1}}),f=new ee({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/cli-skills.md"}}),{c(){i=r("meta"),J=n(),k=r("p"),h=n(),Z(d.$$.fragment),y=n(),c=r("p"),c.innerHTML=N,j=n(),m=r("ul"),m.innerHTML=R,x=n(),p=r("p"),p.innerHTML=_,U=n(),M=r("p"),M.textContent=H,W=n(),u=r("p"),u.textContent=V,C=n(),Z(b.$$.fragment),I=n(),Z(f.$$.fragment),B=n(),w=r("p"),this.h()},l(e){const l=D("svelte-u9bgzb",document.head);i=o(l,"META",{name:!0,content:!0}),l.forEach(t),J=a(e),k=o(e,"P",{}),z(k).forEach(t),h=a(e),g(d.$$.fragment,e),y=a(e),c=o(e,"P",{"data-svelte-h":!0}),T(c)!=="svelte-n2lu6b"&&(c.innerHTML=N),j=a(e),m=o(e,"UL",{"data-svelte-h":!0}),T(m)!=="svelte-1898ei8"&&(m.innerHTML=R),x=a(e),p=o(e,"P",{"data-svelte-h":!0}),T(p)!=="svelte-y8wod8"&&(p.innerHTML=_),U=a(e),M=o(e,"P",{"data-svelte-h":!0}),T(M)!=="svelte-sfhhkf"&&(M.textContent=H),W=a(e),u=o(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-kvfsh7"&&(u.textContent=V),C=a(e),g(b.$$.fragment,e),I=a(e),g(f.$$.fragment,e),B=a(e),w=o(e,"P",{}),z(w).forEach(t),this.h()},h(){X(i,"name","hf:doc:metadata"),X(i,"content",te)},m(e,l){q(document.head,i),s(e,J,l),s(e,k,l),s(e,h,l),$(d,e,l),s(e,y,l),s(e,c,l),s(e,j,l),s(e,m,l),s(e,x,l),s(e,p,l),s(e,U,l),s(e,M,l),s(e,W,l),s(e,u,l),s(e,C,l),$(b,e,l),s(e,I,l),$(f,e,l),s(e,B,l),s(e,w,l),G=!0},p:Q,i(e){G||(v(d.$$.fragment,e),v(b.$$.fragment,e),v(f.$$.fragment,e),G=!0)},o(e){E(d.$$.fragment,e),E(b.$$.fragment,e),E(f.$$.fragment,e),G=!1},d(e){e&&(t(J),t(k),t(h),t(y),t(c),t(j),t(m),t(x),t(p),t(U),t(M),t(W),t(u),t(C),t(I),t(B),t(w)),t(i),L(d,e),L(b,e),L(f,e)}}}const te='{"title":"kernel-builder skills add","local":"kernel-builder-skills-add","sections":[],"depth":3}';function se(S){return P(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends F{constructor(i){super(),A(this,i,se,le,Y,{})}}export{oe as component};
