This guide explains how to enable AI tools like Cursor, Windsurf, and Claude to better understand Ant Design.
We support LLMs.txt files for making the Ant Design documentation available to large language models (LLMs). This feature helps AI tools better understand our component library, its APIs, and usage patterns.
We provide several LLMs.txt routes to help AI tools access our documentation:
Use the @Docs feature in Cursor to include the LLMs.txt files in your project. This helps Cursor provide more accurate code suggestions and documentation for Ant Design components.
Read more about @Docs in Cursor
Reference the LLMs.txt files using @ or in your .windsurf/rules files to enhance Windsurf's understanding of Ant Design components.
Read more about Windsurf Memories
In Claude Code, add LLMs.txt to the workspace Knowledge Base (Docs / Context Files) configuration. This allows the file to be referenced during code completion and explanation, improving understanding of Ant Design components.
Learn more about Claude Code document context configuration
In Gemini CLI, you can specify the LLMs.txt file path with the --context parameter or in .gemini/config.json, enabling Gemini to reference the document when answering or generating code.
Learn more about Gemini CLI context configuration
In Trae, place the LLMs.txt file into the project’s knowledge sources and enable referencing in the settings. This allows Trae to better support Ant Design components when generating or analyzing code.
Learn more about Trae knowledge sources
In Qoder, you can add LLMs.txt as an external knowledge file in .qoder/config.yml, or temporarily reference it in a conversation with @docs LLMs.txt, enhancing support for Ant Design components.
Learn more about Qoder configuration
Any AI tool that supports LLMs.txt can use these routes to better understand Ant Design. Simply point your tool to any of the routes above.