
CopilotKit Guide
Answers CopilotKit questions with pointers to current docs and source.
Install
npx skills add CopilotKit/CopilotKit --skill copilotkit -g -a claude-code -y- Repository
- CopilotKit/CopilotKit38.5k
- Category
- AI and agents
- Updated
- 3d ago
- License
- MIT
- Context cost
- Mediumabout 1,725 tokens
- Runs scripts
- No, instructions only
What it does
Use for any CopilotKit question, adding it to an app, chat UI, frontend or server tools, generative UI, shared state, human-in-the-loop, agent frameworks (LangGraph, CrewAI, Mastra, ADK, PydanticAI, and others), the runtime, Intelligence, threads, voice, or diagnosing something that is not working. Do not answer from memory: this skill exists to point you at the current documentation and source, both of which you can read.
CopilotKit
CopilotKit's APIs move. Anything written down in a skill file is a copy that starts drifting the day it is written, so this skill carries almost no API detail on purpose. It tells you where the current answer lives and how to get it.
Look it up before you write code. Not because the docs are more convenient, but because they are regenerated from the source and a recollection is not.
Reading the docs
There are two ways to read the current docs. Check which one this session has.
Without the MCP server: fetch the Markdown pages
This path always works. It needs only a way to fetch a URL.
- Any docs page as Markdown. Add
.mdto the page path:https://docs.copilotkit.ai/<path>.md. For example,https://docs.copilotkit.ai/quickstart.mdandhttps://docs.copilotkit.ai/backend/copilot-runtime.md. The response istext/markdown. A path that does not exist returns 404 with the bodyNot found. - To find a path. Start with
https://docs.copilotkit.ai/llms.txt. It is a short, curated index with links to the main pages. For a page it does not list, readhttps://docs.copilotkit.ai/sitemap.xml, which lists every page URL. Both indexes list HTML page URLs. Add.mdto a URL before you fetch it. The site root has no.mdform. Do not fetchllms-full.txtin one read. It holds every page and is several megabytes. - Links in this skill. A link such as quickstart is a docs path.
Fetch it as
https://docs.copilotkit.ai/quickstart.md. - Library source. Read the installed package in
node_modules/@copilotkit/, or the source athttps://github.com/CopilotKit/CopilotKitunderpackages/. - AG-UI protocol. The protocol has its own docs at
https://docs.ag-ui.com. Its index ishttps://docs.ag-ui.com/llms.txt, and its pages also take.md.

