Skip to content

AI assistants ​

Coding assistants (Claude Code, Cursor, Copilot…) know little about a recent library: they invent props or copy another library's API. SurgeUI gives them its documentation in a form they read directly.

What is available ​

ResourceContent
/llms.txtDocumentation index (llmstxt.org format): usage rules, then one line per page
/llms-full.txtThe whole English documentation in one file
/llms-fr.txt, /llms-full-fr.txtThe same, in French
/api.jsonAPI manifest: props (type, default, required, description), events, slots and exposed methods of every component, extracted from the types
.md pagesEvery page exists in Markdown: add .md to its address, for example /en/components/button.md
AGENTS.mdUsage guide shipped in the npm package (node_modules/@surgeui/vue/AGENTS.md), matching the installed version: setup, rules, component catalog, APIs removed in 4.0
dist/api.jsonThe API manifest, also shipped in the package (@surgeui/vue/api.json): the exact API of the installed version

The Markdown versions leave out the live demos: only the text, code examples and API tables.

Usage ​

In a project, point the assistant instructions (CLAUDE.md, AGENTS.md, Cursor rules) to the package guide:

md
## UI
Components: @surgeui/vue. Before using one, read
node_modules/@surgeui/vue/AGENTS.md, then the component page
(https://surgeui.com/en/components/<name>.md) for its props.

In a conversation, give the address of llms.txt, or of the page of the component at hand: the assistant reads it before writing code.

Checking: with the global types ("types": ["@surgeui/vue/global"]), vue-tsc reports an invented prop. An assistant that runs the type check fixes this kind of mistake by itself.

Context7 ​

The repository has a context7.json file that guides indexing by Context7, used by many assistants through MCP: English documentation, the AGENTS.md guide and usage rules.

Publié sous licence MIT.