[{"data":1,"prerenderedAt":340,"buildId":341},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fai\u002Fclaude":3},{"id":4,"title":5,"body":6,"description":321,"extension":322,"frontmatter":323,"heading":5,"meta":331,"navigation":333,"order":327,"path":334,"seo":335,"sitemap":336,"source":337,"stem":338,"__hash__":339},"docs\u002Fdocs\u002F5.x\u002Fai\u002Fclaude.md","Set up the Claude Code plugin",{"type":7,"value":8,"toc":311},"minimark",[9,24,106,110,186,189,211,215,222,263,267,286,304],[10,11,12,13,18,19,23],"p",{},"The Kubb plugin for ",[14,15,17],"a",{"href":16},"https:\u002F\u002Fcode.claude.com","Claude Code"," adds slash commands, an agent, two skills, and the Kubb MCP server. The commands run the ",[20,21,22],"code",{},"kubb"," CLI, so a build from the chat matches one from the terminal.",[25,26,28,33,36,72,76,83,96],"steps",{"level":27},"2",[29,30,32],"h2",{"id":31},"install-the-plugin","Install the plugin",[10,34,35],{},"Add the Kubb repository as a plugin marketplace, then install the plugin:",[37,38,43],"pre",{"language":39,"filename":40,"code":41,"class":42},"shell","Terminal","\u002Fplugin marketplace add kubb-labs\u002Fkubb\n\u002Fplugin install kubb@kubb","highlights",[20,44,46,59,60],{"class":45},"language-shell",[47,48,51,55],"span",{"class":49,"style":50},"line","display: inline",[47,52,54],{"style":53},"color:#6f42c1;--hls-dark:#b392f0","\u002Fplugin ",[47,56,58],{"style":57},"color:#24292e;--hls-dark:#e1e4e8","marketplace add kubb-labs\u002Fkubb","\n",[47,61,62,64,67,70],{"class":49,"style":50},[47,63,54],{"style":53},[47,65,66],{"style":57},"install kubb",[47,68,69],{"style":57},"@",[47,71,22],{"style":57},[29,73,75],{"id":74},"install-kubb","Install Kubb",[10,77,78,79,82],{},"The commands run ",[20,80,81],{},"npx kubb",", so install Kubb in the project or globally:",[37,84,86],{"language":39,"filename":40,"code":85,"class":42},"npm install -D kubb",[20,87,88],{"class":45},[47,89,90,93],{"class":49,"style":50},[47,91,92],{"style":53},"npm ",[47,94,95],{"style":57},"install -D kubb",[10,97,98,99,102,103,105],{},"A ",[20,100,101],{},"SessionStart"," hook warns you when ",[20,104,22],{}," is missing. It never installs anything.",[29,107,109],{"id":108},"commands","Commands",[111,112,113,126],"table",{},[114,115,116],"thead",{},[117,118,119,123],"tr",{},[120,121,122],"th",{},"Command",[120,124,125],{},"Runs",[127,128,129,154,170],"tbody",{},[117,130,131,137],{},[132,133,134],"td",{},[20,135,136],{},"\u002Fkubb:init [input] [output] [plugins]",[132,138,139,145,146,149,150,153],{},[14,140,142],{"href":141},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Finit",[20,143,144],{},"kubb init"," with ",[20,147,148],{},"--yes",", to write ",[20,151,152],{},"kubb.config.ts"," and install the plugins.",[117,155,156,161],{},[132,157,158],{},[20,159,160],{},"\u002Fkubb:generate [input]",[132,162,163,169],{},[14,164,166],{"href":165},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate",[20,167,168],{},"kubb generate",", then reports what changed.",[117,171,172,177],{},[132,173,174],{},[20,175,176],{},"\u002Fkubb:validate \u003Cspec>",[132,178,179,185],{},[14,180,182],{"href":181},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fvalidate",[20,183,184],{},"kubb validate"," on an OpenAPI or Swagger spec.",[10,187,188],{},"A first run:",[37,190,193],{"language":191,"filename":17,"code":192,"class":42},"text","\u002Fkubb:validate .\u002FpetStore.yaml\n\u002Fkubb:init .\u002FpetStore.yaml .\u002Fsrc\u002Fgen plugin-ts,plugin-axios,plugin-zod,plugin-react-query\n\u002Fkubb:generate",[20,194,196,59,201,59,206],{"class":195},"language-text",[47,197,198],{"class":49,"style":50},[47,199,200],{"style":57},"\u002Fkubb:validate .\u002FpetStore.yaml",[47,202,203],{"class":49,"style":50},[47,204,205],{"style":57},"\u002Fkubb:init .\u002FpetStore.yaml .\u002Fsrc\u002Fgen plugin-ts,plugin-axios,plugin-zod,plugin-react-query",[47,207,208],{"class":49,"style":50},[47,209,210],{"style":57},"\u002Fkubb:generate",[29,212,214],{"id":213},"agent-and-skills","Agent and skills",[10,216,217,218,221],{},"The ",[20,219,220],{},"kubb-expert"," agent handles \"add Kubb to my project\": it validates the spec, picks plugins, scaffolds the config, and runs Kubb. Two skills load on their own:",[111,223,224,234],{},[114,225,226],{},[117,227,228,231],{},[120,229,230],{},"Skill",[120,232,233],{},"Loads when you",[127,235,236,253],{},[117,237,238,243],{},[132,239,240],{},[20,241,242],{},"config",[132,244,245,246,248,249,252],{},"Write a ",[20,247,152],{},", pick ",[20,250,251],{},"@kubb\u002Fplugin-*"," packages, or debug generated output.",[117,254,255,260],{},[132,256,257],{},[20,258,259],{},"output",[132,261,262],{},"Write app or test code that imports the generated types, clients, hooks, schemas, and mocks.",[29,264,266],{"id":265},"generate-from-a-conversation","Generate from a conversation",[10,268,269,270,273,274,278,279,282,283,285],{},"The plugin registers the Kubb MCP server (",[20,271,272],{},"npx kubb mcp","). Describe what you want, and Claude calls the server's ",[14,275,277],{"href":276},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fmcp#tools","tools"," or runs the matching ",[20,280,281],{},"\u002Fkubb:"," command. Start Claude Code from your project root, so the server finds your ",[20,284,152],{},".",[287,288,290,291,293,294,300,301,303],"blockquote",{"as":289},"note","When ",[20,292,152],{}," exports an array, the MCP ",[14,295,297],{"href":296},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fmcp#kubb-generate",[20,298,299],{},"kubb_generate"," tool runs only its first config. The ",[20,302,210],{}," command runs them all.",[10,305,306,310],{},[14,307,309],{"href":308},"\u002Fdocs\u002F5.x\u002Fai\u002Fmcp","Set up the MCP server"," covers other clients.",{"title":312,"searchDepth":313,"depth":313,"links":314},"",5,[315,317,318,319,320],{"id":31,"depth":316,"text":32},2,{"id":74,"depth":316,"text":75},{"id":108,"depth":316,"text":109},{"id":213,"depth":316,"text":214},{"id":265,"depth":316,"text":266},"Install the Kubb Claude Code plugin to get \u002Fkubb slash commands, the kubb-expert agent, two skills, and the Kubb MCP server in Claude Code.","md",{"layout":324,"title":5,"description":321,"outline":325,"order":327,"navigation":328},"doc",[316,326],3,1,{"title":329,"icon":330},"Claude","i-simple-icons-claude",{"layout":324,"outline":332},[316,326],{"title":329,"icon":330},"\u002Fdocs\u002F5.x\u002Fai\u002Fclaude",{"title":5,"description":321},{"loc":334},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fai\u002Fclaude.md","docs\u002F5.x\u002Fai\u002Fclaude","V0si-V4JhboyhfCsjJ2w2SztwdvtzDydP_2FalmN0KY",1795727671662,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]