docscn

AI agents

Help coding agents use docscn, with the docscn skill and the docs as Markdown.

The docscn skill

docscn has an agent skill for coding agents such as Claude Code, Cursor and Codex. It tells the agent how to set up docs in a shadcn/ui project, migrate from Fumadocs UI, add the AI chat, and follow docscn's conventions: the @/components/docs/ import paths, shadcn/ui theme tokens instead of Fumadocs UI's, and editing components instead of using slots. For anything else, it reads these docs.

Install it into your project with the skills CLI:

npx skills add ruiyuwg/docscn

The CLI asks which agents to install it for. The skill's source is in skills/docscn.

shadcn/ui's MCP server

shadcn/ui's MCP server lets agents browse, search and install registry items, including docscn's. The CLI finds @docscn items through the registry index, but the MCP server only searches registries listed in components.json, so add docscn's:

components.json
{
  "registries": {
    "@docscn": "https://docscn.dev/r/{name}.json"
  }
}

Then set up the server for your agent (claude, cursor, vscode, codex or opencode):

npx shadcn@latest mcp init --client claude

Agents can then answer requests like "show me docscn's sidebar components" or "add docscn's docs block".

The docs as Markdown

These docs are also available as Markdown, for agents and LLMs to read:

URLContent
/llms.txtAn index of every page, with its description
/llms-full.txtEvery page in one file
/docs/<page>.mdOne page, for example /docs/getting-started.md

A request for the homepage or a docs page that prefers Markdown (Accept: text/markdown) also gets the Markdown: llms.txt for the homepage. The skill is also published for the Agent Skills discovery RFC at /.well-known/agent-skills/index.json. The Copy Markdown button at the top of each page copies it, and the menu next to it opens the page in ChatGPT, Claude and other AI tools.

To add the same to your own docs, see Page actions and Fumadocs' LLM guide. To let your readers ask questions about your docs, add the AI chat.