Buckets:

HuggingFaceDocBuilder's picture
download
raw
11 kB
import{s as Nt,n as Vt,o as Xt}from"../chunks/scheduler.b8c17244.js";import{S as Zt,i as te,e as a,s as i,c as p,h as ee,a as o,d as n,b as s,f as Jt,g as u,j as r,k as Lt,l as ne,m as l,n as m,t as f,o as h,p as g}from"../chunks/index.d374165a.js";import{C as le,H as c,E as ie}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.200f62db.js";function se(St){let d,J,R,N,x,V,v,X,w,Mt="<strong>Agent skills</strong> are the foundational building block of agent context. This unit covers what they are, how they’re structured, and how to install and write them.",Z,y,tt,C,At="Ask Claude Code to “publish a dataset to Hugging Face” with no extra context, and the agent has to guess at authentication, schema, and required fields. It may get stuck, ask clarifying questions, or fill in plausible but wrong values.",et,b,Ht="Give the same agent authentication instructions, the dataset schema, the API format, and pointers to common pitfalls, and the task finishes faster and more reliably.",nt,$,qt="<p>Code agents are only as good as the context you give them.</p> <p>Context engineering is the practice of structuring that context so the agent can find and use it.</p>",lt,T,Ut="This principle runs through the rest of the course. It’s the same reason communities publish shared contexts and teams invest in keeping their documentation close to the agent.",it,_,st,P,Et="A <strong>skill</strong> is a self-contained package of knowledge that makes an agent good at one specific task. Skills are portable across projects and agents, reusable once installed, structured in a format agents can parse, and extensible through links to scripts and APIs.",at,L,Wt="A skill is essentially an onboarding document for an agent: the same kind of step-by-step guide you’d give a new colleague, but written so the agent can load it on demand.",ot,S,rt,M,Kt="Skills differ from long prompts in one key way: they are structured, reusable, and discoverable. They live beyond a single conversation and can be loaded only when relevant. The next lesson goes deeper on this.",pt,A,ut,H,zt="By the end of this unit, you’ll understand what skills are and why they matter, the Agent Skills Specification (the open standard for skill structure), the SKILL.md format, how to use skills with agents, how to build your first skill from scratch, and how to debug them when they don’t work.",mt,q,ft,U,It='There’s a formal standard for how skills are structured, called the <strong>Agent Skills Specification</strong>, maintained at <a href="https://agentskills.io" rel="nofollow">agentskills.io</a>.',ht,k,Ft="<p>The Agent Skills Specification defines a portable format for packaging agent knowledge, originally created by Anthropic and now adopted by 30+ code agents worldwide.</p>",gt,E,Ot="This spec ensures:",dt,W,jt="<li>Skills work across different agents and platforms</li> <li>Agents can automatically discover and load relevant skills</li> <li>Communities can share and improve skills together</li> <li>Tools and platforms can be built to support skill workflows</li>",ct,K,$t,z,Bt="Without skills, context engineering looks like long repetitive prompts in every conversation, scattered wiki pages, and team members rebuilding the same context independently. With skills, context is defined once, updated in one place, composable across domains, and loaded by the agent on demand.",kt,I,Gt='<img src="https://huggingface.co/datasets/mcp-course/images/resolve/main/unit1/skill-discovery-flow.svg" alt="How agents discover and load skills through progressive disclosure"/>',xt,F,vt,O,Qt="Before diving in, make sure you have:",wt,j,Yt="<li>A code agent set up (Claude Code, Codex, or open source)</li> <li>Python installed for running helper scripts</li> <li>A Hugging Face account</li> <li>Familiarity with the command line</li>",yt,B,Rt="If you’re not set up yet, go back to Unit 0 and complete the tool setup section.",Ct,G,bt,Q,Dt="Skills are portable, structured context that make agents better at specific tasks. They follow the Agent Skills Specification for cross-agent compatibility, and they sit at the heart of context engineering.",Tt,Y,_t,D,Pt;return x=new le({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),v=new c({props:{title:"Unit 1: Agent Skills",local:"unit-1-agent-skills",headingTag:"h1"}}),y=new c({props:{title:"Why Context Engineering Matters",local:"why-context-engineering-matters",headingTag:"h2"}}),_=new c({props:{title:"What Are Agent Skills?",local:"what-are-agent-skills",headingTag:"h2"}}),S=new c({props:{title:"From Prompts to Portable Knowledge",local:"from-prompts-to-portable-knowledge",headingTag:"h2"}}),A=new c({props:{title:"What You’ll Learn in Unit 1",local:"what-youll-learn-in-unit-1",headingTag:"h2"}}),q=new c({props:{title:"The Agent Skills Specification",local:"the-agent-skills-specification",headingTag:"h2"}}),K=new c({props:{title:"Why Skills Matter",local:"why-skills-matter",headingTag:"h2"}}),F=new c({props:{title:"Prerequisites for Unit 1",local:"prerequisites-for-unit-1",headingTag:"h2"}}),G=new c({props:{title:"Key Takeaways",local:"key-takeaways",headingTag:"h2"}}),Y=new ie({props:{source:"https://github.com/huggingface/context-course/blob/main/units/en/unit1/introduction.mdx"}}),{c(){d=a("meta"),J=i(),R=a("p"),N=i(),p(x.$$.fragment),V=i(),p(v.$$.fragment),X=i(),w=a("p"),w.innerHTML=Mt,Z=i(),p(y.$$.fragment),tt=i(),C=a("p"),C.textContent=At,et=i(),b=a("p"),b.textContent=Ht,nt=i(),$=a("blockquote"),$.innerHTML=qt,lt=i(),T=a("p"),T.textContent=Ut,it=i(),p(_.$$.fragment),st=i(),P=a("p"),P.innerHTML=Et,at=i(),L=a("p"),L.textContent=Wt,ot=i(),p(S.$$.fragment),rt=i(),M=a("p"),M.textContent=Kt,pt=i(),p(A.$$.fragment),ut=i(),H=a("p"),H.textContent=zt,mt=i(),p(q.$$.fragment),ft=i(),U=a("p"),U.innerHTML=It,ht=i(),k=a("blockquote"),k.innerHTML=Ft,gt=i(),E=a("p"),E.textContent=Ot,dt=i(),W=a("ul"),W.innerHTML=jt,ct=i(),p(K.$$.fragment),$t=i(),z=a("p"),z.textContent=Bt,kt=i(),I=a("p"),I.innerHTML=Gt,xt=i(),p(F.$$.fragment),vt=i(),O=a("p"),O.textContent=Qt,wt=i(),j=a("ul"),j.innerHTML=Yt,yt=i(),B=a("p"),B.textContent=Rt,Ct=i(),p(G.$$.fragment),bt=i(),Q=a("p"),Q.textContent=Dt,Tt=i(),p(Y.$$.fragment),_t=i(),D=a("p"),this.h()},l(t){const e=ee("svelte-u9bgzb",document.head);d=o(e,"META",{name:!0,content:!0}),e.forEach(n),J=s(t),R=o(t,"P",{}),Jt(R).forEach(n),N=s(t),u(x.$$.fragment,t),V=s(t),u(v.$$.fragment,t),X=s(t),w=o(t,"P",{"data-svelte-h":!0}),r(w)!=="svelte-p60ak1"&&(w.innerHTML=Mt),Z=s(t),u(y.$$.fragment,t),tt=s(t),C=o(t,"P",{"data-svelte-h":!0}),r(C)!=="svelte-zffimr"&&(C.textContent=At),et=s(t),b=o(t,"P",{"data-svelte-h":!0}),r(b)!=="svelte-13escnb"&&(b.textContent=Ht),nt=s(t),$=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r($)!=="svelte-40o4hn"&&($.innerHTML=qt),lt=s(t),T=o(t,"P",{"data-svelte-h":!0}),r(T)!=="svelte-1b4f201"&&(T.textContent=Ut),it=s(t),u(_.$$.fragment,t),st=s(t),P=o(t,"P",{"data-svelte-h":!0}),r(P)!=="svelte-1jzcvi7"&&(P.innerHTML=Et),at=s(t),L=o(t,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1ui4rw8"&&(L.textContent=Wt),ot=s(t),u(S.$$.fragment,t),rt=s(t),M=o(t,"P",{"data-svelte-h":!0}),r(M)!=="svelte-6zf1ir"&&(M.textContent=Kt),pt=s(t),u(A.$$.fragment,t),ut=s(t),H=o(t,"P",{"data-svelte-h":!0}),r(H)!=="svelte-1v0axxs"&&(H.textContent=zt),mt=s(t),u(q.$$.fragment,t),ft=s(t),U=o(t,"P",{"data-svelte-h":!0}),r(U)!=="svelte-1gcq7ht"&&(U.innerHTML=It),ht=s(t),k=o(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r(k)!=="svelte-y6nr9k"&&(k.innerHTML=Ft),gt=s(t),E=o(t,"P",{"data-svelte-h":!0}),r(E)!=="svelte-196sp0u"&&(E.textContent=Ot),dt=s(t),W=o(t,"UL",{"data-svelte-h":!0}),r(W)!=="svelte-1x9ehnp"&&(W.innerHTML=jt),ct=s(t),u(K.$$.fragment,t),$t=s(t),z=o(t,"P",{"data-svelte-h":!0}),r(z)!=="svelte-1sj4ico"&&(z.textContent=Bt),kt=s(t),I=o(t,"P",{"data-svelte-h":!0}),r(I)!=="svelte-1pbuzcn"&&(I.innerHTML=Gt),xt=s(t),u(F.$$.fragment,t),vt=s(t),O=o(t,"P",{"data-svelte-h":!0}),r(O)!=="svelte-adyhah"&&(O.textContent=Qt),wt=s(t),j=o(t,"UL",{"data-svelte-h":!0}),r(j)!=="svelte-1m2wnl8"&&(j.innerHTML=Yt),yt=s(t),B=o(t,"P",{"data-svelte-h":!0}),r(B)!=="svelte-1ai76ol"&&(B.textContent=Rt),Ct=s(t),u(G.$$.fragment,t),bt=s(t),Q=o(t,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-7i8d6e"&&(Q.textContent=Dt),Tt=s(t),u(Y.$$.fragment,t),_t=s(t),D=o(t,"P",{}),Jt(D).forEach(n),this.h()},h(){Lt(d,"name","hf:doc:metadata"),Lt(d,"content",ae),Lt($,"class","tip"),Lt(k,"class","tip")},m(t,e){ne(document.head,d),l(t,J,e),l(t,R,e),l(t,N,e),m(x,t,e),l(t,V,e),m(v,t,e),l(t,X,e),l(t,w,e),l(t,Z,e),m(y,t,e),l(t,tt,e),l(t,C,e),l(t,et,e),l(t,b,e),l(t,nt,e),l(t,$,e),l(t,lt,e),l(t,T,e),l(t,it,e),m(_,t,e),l(t,st,e),l(t,P,e),l(t,at,e),l(t,L,e),l(t,ot,e),m(S,t,e),l(t,rt,e),l(t,M,e),l(t,pt,e),m(A,t,e),l(t,ut,e),l(t,H,e),l(t,mt,e),m(q,t,e),l(t,ft,e),l(t,U,e),l(t,ht,e),l(t,k,e),l(t,gt,e),l(t,E,e),l(t,dt,e),l(t,W,e),l(t,ct,e),m(K,t,e),l(t,$t,e),l(t,z,e),l(t,kt,e),l(t,I,e),l(t,xt,e),m(F,t,e),l(t,vt,e),l(t,O,e),l(t,wt,e),l(t,j,e),l(t,yt,e),l(t,B,e),l(t,Ct,e),m(G,t,e),l(t,bt,e),l(t,Q,e),l(t,Tt,e),m(Y,t,e),l(t,_t,e),l(t,D,e),Pt=!0},p:Vt,i(t){Pt||(f(x.$$.fragment,t),f(v.$$.fragment,t),f(y.$$.fragment,t),f(_.$$.fragment,t),f(S.$$.fragment,t),f(A.$$.fragment,t),f(q.$$.fragment,t),f(K.$$.fragment,t),f(F.$$.fragment,t),f(G.$$.fragment,t),f(Y.$$.fragment,t),Pt=!0)},o(t){h(x.$$.fragment,t),h(v.$$.fragment,t),h(y.$$.fragment,t),h(_.$$.fragment,t),h(S.$$.fragment,t),h(A.$$.fragment,t),h(q.$$.fragment,t),h(K.$$.fragment,t),h(F.$$.fragment,t),h(G.$$.fragment,t),h(Y.$$.fragment,t),Pt=!1},d(t){t&&(n(J),n(R),n(N),n(V),n(X),n(w),n(Z),n(tt),n(C),n(et),n(b),n(nt),n($),n(lt),n(T),n(it),n(st),n(P),n(at),n(L),n(ot),n(rt),n(M),n(pt),n(ut),n(H),n(mt),n(ft),n(U),n(ht),n(k),n(gt),n(E),n(dt),n(W),n(ct),n($t),n(z),n(kt),n(I),n(xt),n(vt),n(O),n(wt),n(j),n(yt),n(B),n(Ct),n(bt),n(Q),n(Tt),n(_t),n(D)),n(d),g(x,t),g(v,t),g(y,t),g(_,t),g(S,t),g(A,t),g(q,t),g(K,t),g(F,t),g(G,t),g(Y,t)}}}const ae='{"title":"Unit 1: Agent Skills","local":"unit-1-agent-skills","sections":[{"title":"Why Context Engineering Matters","local":"why-context-engineering-matters","sections":[],"depth":2},{"title":"What Are Agent Skills?","local":"what-are-agent-skills","sections":[],"depth":2},{"title":"From Prompts to Portable Knowledge","local":"from-prompts-to-portable-knowledge","sections":[],"depth":2},{"title":"What You’ll Learn in Unit 1","local":"what-youll-learn-in-unit-1","sections":[],"depth":2},{"title":"The Agent Skills Specification","local":"the-agent-skills-specification","sections":[],"depth":2},{"title":"Why Skills Matter","local":"why-skills-matter","sections":[],"depth":2},{"title":"Prerequisites for Unit 1","local":"prerequisites-for-unit-1","sections":[],"depth":2},{"title":"Key Takeaways","local":"key-takeaways","sections":[],"depth":2}],"depth":1}';function oe(St){return Xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class me extends Zt{constructor(d){super(),te(this,d,oe,se,Nt,{})}}export{me as component};

Xet Storage Details

Size:
11 kB
·
Xet hash:
c0974f3a0aeecf46a76a9e4e574d0bb824b7d6a353dd3593b121dff5b8a9ca4c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.