Skip to content
AI assistants

Give an assistant the Kubb docs

Give an AI assistant current Kubb documentation through Context7 or the llms.txt and llms-full.txt files, so it writes a correct kubb.config.ts.

An assistant that reads the current docs writes a kubb.config.ts for Kubb v5, not an older version. Pick the option your assistant supports.

OptionWorks withContext it loads
Context7Assistants with the Context7 MCP server or skillThe pages that match your prompt
llms.txtAny assistant that reads URLs or pasted textAn index, or the full docs in one file

Context7

Context7 indexes the Kubb docs under the library ID /kubb-labs/kubb.

Set up Context7

Run the setup and select your assistant:

Terminal
npx ctx7 setup

The setup connects Context7 through MCP or installs its docs skill, as you choose.

Ask with Context7

Include use context7 in your prompt. Add the library ID to skip the library search:

Prompt
Create a kubb.config.ts that generates TypeScript types, a Fetch client, and React Query hooks
from ./petStore.yaml. Use Context7 library /kubb-labs/kubb.
Add a rule to your assistant's instructions to use Context7 for every Kubb question.

llms.txt

FileHolds
https://kubb.dev/llms.txtA table of contents with a one-line description per page
https://kubb.dev/llms-full.txtThe complete docs in one file

Use the full file for complete coverage:

Prompt
Read https://kubb.dev/llms-full.txt and answer questions about Kubb.

For a small context window, use the index so the assistant fetches pages on demand:

Prompt
Use https://kubb.dev/llms.txt to find relevant pages, then read them.